javascript in asp.net submit button ---- deadline near help plz
-
i have a asp.net form, i only have to show javascript alert with ok button after submiting the data to database, when user press ok it redirect to my home page. thanks in advance.
-
i have a asp.net form, i only have to show javascript alert with ok button after submiting the data to database, when user press ok it redirect to my home page. thanks in advance.
I'm not sure if this is what you meant but... Button.Attributes["onclick"] = "javascript:return confirm('Thank you for your submittion');"; Make sure you put that code in a place where a post back will occur otherwise the javascript won't get applied to the button onclick event. I'm not sure but you may be able to code that directly in the html source, instead of the code behind. Best of luck,
Cheers Disgyza Programmer Analyst
-
i have a asp.net form, i only have to show javascript alert with ok button after submiting the data to database, when user press ok it redirect to my home page. thanks in advance.
I am not sure that we can give alert msg after data submitted into database. But It is possible that when submitting the record like "Are you want to save the records". Server side action is happened when you try to insert records into database. Why do you try the client side for that time?
Balasubramanian K.