TextBox Onblur
-
Friends, In my asp.net application i have to write function on textbox's onblur event. Can anyone please help me how to do this. Eg: I am having a textbox for email id. when user leave the textbox i have to get the part before @symbol in that. For that i have write event in textbox's onblur. Thanks and Regards,
Prya
-
Friends, In my asp.net application i have to write function on textbox's onblur event. Can anyone please help me how to do this. Eg: I am having a textbox for email id. when user leave the textbox i have to get the part before @symbol in that. For that i have write event in textbox's onblur. Thanks and Regards,
Prya
-
You can write a javascript function to do the task and call this function on onblur event of the textbox.
Best Regards, Apurva Kaushal
Can u pl. tellme how to give onblur event of textbox in .cs page
Prya
-
Can u pl. tellme how to give onblur event of textbox in .cs page
Prya
-
you can do it like this:
Textbox1.attributes.add(OnBlur,"Javascript:yourfunc();")
Best Regards, Apurva Kaushal
i have included master page in that aspx page. so there is a tag . So shall i place the and tags above this and write the function there. But when I tried in some where its giving problem while adding head tags before content tag. <div class="ForumSig">Prya</div></x-turndown>
-
i have included master page in that aspx page. so there is a tag . So shall i place the and tags above this and write the function there. But when I tried in some where its giving problem while adding head tags before content tag. <div class="ForumSig">Prya</div></x-turndown>
-
I think you can put the function there in the head tag itself. What is the problem you are getting on doing the same.
Best Regards, Apurva Kaushal
The Error I am getting is: Content is not supported outside 'script' or 'asp:content' regions.
Prya
-
The Error I am getting is: Content is not supported outside 'script' or 'asp:content' regions.
Prya
-
You can write a javascript function to do the task and call this function on onblur event of the textbox.
Best Regards, Apurva Kaushal
you can add the javsscript function inside the tag. call that javascript function with the help of .cs file.
Pankaj Gupta (Take it easy)