Jump to content
Xtreme .Net Talk

vellaima

Avatar/Signature
  • Posts

    109
  • Joined

  • Last visited

vellaima's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. It is fine. :)
  2. Bungpeng, please do go the following site to get the better understanding of Attributes.Add http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconWebFormsEventModel.asp
  3. Please do try the sample code by copying and pasting it as an aspx file. It worked perfectly for me.
  4. I am pasting the sample code for easy understanding. <%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(Source As Object, E As EventArgs) cls.Attributes.Add("onclick","return confirm('Are you Sure you want to delete?');") End Sub Sub clsthread(Source As Object, E As EventArgs) Dim scripts as String ="<script>alert('The record is deleted')"+"</"+"script>" RegisterClientScriptBlock("alert1",scripts) End Sub </script> <html> <head> </head> <body> <form runat="server"> <asp:Button id="cls" onclick="clsthread" runat="server" Text="Close Thread"></asp:Button> </form> </body> </html>
  5. Bungpeng, to my understanding I have done the same thing as you have mentioned. In the Page Load i have added an attribute for the "cls" button. The attribute i have added is On Clicking this button the JavaScript is getting fired. If the user clicks "Ok" then the clsthread method is executed. If he clicks "Cancel" then it is not executed. Please do excuse me if the method of explanation is incorrect. -Vidhya
  6. I have found out as to how to go about for it. Sub Page_Load(Source As Object, E As EventArgs) cls.Attributes.Add("onclick","return confirm('Are you Sure you want to delete?');") End Sub Sub clsthread(Source As Object, E As EventArgs) Dim scripts as String ="<script>alert('The record is deleted')"+"</"+"script>" RegisterClientScriptBlock("alert1",scripts) End Sub Here "cls" is the ASP Control Button. - Vidhya
  7. Hi, Dim scripts1 as String="<script>confirm('Are you sure?')"+"</"+"script>" RegisterClientScriptBlock("alert1",scripts1) In the above code i would like to capture whether the user has clicked Yes/No and do validations in the server accordingly. Is it possible? - Vidhya
  8. Thanks for the reply bungpeng. I have understood the difference between ASP Controls and HTML Controls. - Vidhya
  9. Can anyone please tell me the difference ASP Buttons and HTML Buttons? Can the end user view the asp buttons. Does it means that validations are done in the server side? Please do explain to me. Also i would like to know whether RegisterClientScriptBlock Method is used for client side scripting or else Msgbox will be displayed in Server. - Vidhya
  10. Thanks Derek for replying to my Questions even though it is repeated. I have learnt a lot which i didn't know from this forum. I really thank each and every one of you for helping me do efficient programming. :)
  11. Derek Stone, can you please tell me whether i am correct as i am confused now regarding Sessions. Can you please answer them if though it is repeated. 1) Is session's based on Cookies? The Session ID's are stored in Client's machine and not in server. 2) If "IsCookieless property to true" then the Session ID's are sent as a Query String Thanks, Vidhya
  12. Thanks bungpeng for this information. Can you please tell me whether HttpSessionState is a Session or Cookie. How can we extend the Session timing for more than 20 min? Is it possible by using script to extend the timing till the user closes the browser?
  13. quwiltw, just to be sure i am asking such question. Please do bear with it. Thanks for providing that SQL Statement. It is working perfectly well.
  14. Thanks Quwiltw for clarification. Since the rights is either M or V, can I use Max and Min in my SQL Statement.
  15. quwiltw, Can please clarify whether "max" means it displays last row added and "min" means it displays the very first row added as i am not using the primary key here.
×
×
  • Create New...