Jump to content
Xtreme .Net Talk

vellaima

Avatar/Signature
  • Posts

    109
  • Joined

  • Last visited

Everything posted by vellaima

  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.
  16. Thanks a lot. Now i have understood the difference between Sessions and Cookies. :)
  17. In that case, when each user logs into the website does the IIS Server stores the session for each user? Is that what you are saying. Can you please explain as i am confused between cookies and sessions.
  18. Thanks for replying. I went to this following web-site. I think it is stored as cookies. I am not sure. http://www.aspalliance.com/aspxtreme/webapps/aspnetsessions.aspx
  19. vellaima

    Sessions

    Hi, When i browsed i came to know that Cookieless Sessions can be Used. Is it passed as a QueryString Also, if i use cookies which is not cookieless sessions is there a possiblity that the end user can disable cookies. If so, how to go about for it?
  20. I think the SQL which i have found it is a better solution. Since i am binding it to a checkbox inside ASP Repeater.
  21. I have found out the solution. It should be iif([modified] Is Null, 'False', 'True')
  22. Hog, i am using abc table as left join. In that case how to go abt for that?
  23. SQL="Select modified from ABC" Here modified is of datatype Yes/No in MS-ACCESS. How to write IIF(ISNULL) Statement for this column?
  24. Hi, Can anyone please tell me IIF(ISNULL) for Yes/No DataType in MS-ACCESS. Please do help me out.
×
×
  • Create New...