AJAX and ASP.NET and submit button
-
Two questions: 1. I have a ASP.NET application with ASP.NET form controls in it. I want to display some data from database with AJAX (no Atlas) when ASP.NET textbox loses focus, so I was wandering, how can I call AJAX function when textbox loses focus or I need to use a standard textbox? Anyway, I know how to do it with standard textbox, but, I want to use a ASP.NET control. 2. I've got two ASP.NET buttons, one for submiting, other for previewing the message (like the one you have it on CodeProject to preview the written message). I want the same functionalaty, but with ASP.NET button. I know that I can do it simply with standard button control. I've tried with RegisterStartupScript, but form first submits and then opens the popup window. I don't wanna to submit the form (with that prview button). Thanks.
-
Two questions: 1. I have a ASP.NET application with ASP.NET form controls in it. I want to display some data from database with AJAX (no Atlas) when ASP.NET textbox loses focus, so I was wandering, how can I call AJAX function when textbox loses focus or I need to use a standard textbox? Anyway, I know how to do it with standard textbox, but, I want to use a ASP.NET control. 2. I've got two ASP.NET buttons, one for submiting, other for previewing the message (like the one you have it on CodeProject to preview the written message). I want the same functionalaty, but with ASP.NET button. I know that I can do it simply with standard button control. I've tried with RegisterStartupScript, but form first submits and then opens the popup window. I don't wanna to submit the form (with that prview button). Thanks.
hi, try this link http://www.w3schools.com/ajax/ajax_example.asp[^]
Thanks & Regards... Amit
-
hi, try this link http://www.w3schools.com/ajax/ajax_example.asp[^]
Thanks & Regards... Amit
Thanks... Hmmm... There isn't anything to do with ASP.NET controls on that link... -- modified at 8:39 Monday 11th December, 2006
-
Thanks... Hmmm... There isn't anything to do with ASP.NET controls on that link... -- modified at 8:39 Monday 11th December, 2006
Perhaps you're missing the fact that ASP.NET controls are all rendered as standard html controls - eg. an ASP:Label is rendered as a tag... Since this is the case, everything else should fall into place, once you realise what objects are resulting from your asp.net objects...
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
-
Perhaps you're missing the fact that ASP.NET controls are all rendered as standard html controls - eg. an ASP:Label is rendered as a tag... Since this is the case, everything else should fall into place, once you realise what objects are resulting from your asp.net objects...
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
-
result!
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox