![]() |
|
|
|||||||
![]() |
ASP Net - how to call java script function after executived the server side code |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
hi:
i have a button, when i click it i want to store data to database and open a new window in general we use java script to open new window but how to call java script function after i executived the server side code thank you! Cheng Wei-Chao |
|
|
|
|
#2 |
|
Posts: n/a
|
One easy solution is to insert it into the response stream at the
appropriate line in the code behind [snip] Response.Write("<script>alert('hello,world')</script>"); -- ----------- Got TidBits? Get it here: www.networkip.net/tidbits "Cheng Wei-Chao" <> wrote in message news:03b901c3abf2$37976590$... > hi: > i have a button, when i click it > i want to store data to database and open a new > window > > in general we use java script to open new window > but how to call java script function after i > executived the server side code > > thank you! Vapor |
|
|
|
#3 |
|
Posts: n/a
|
Try the following and build on it
string script = "<script language='javascript'>\n script += "alert('hey there');\n" script += "</script>" RegisterStartupScript("StartUp",script) =?Utf-8?B?RGVtZXRyaQ==?= |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TRADING FEMALE CELEB INTERVIEWS ON DVD | stu | DVD Video | 1 | 05-26-2008 09:39 AM |
| help with master page and java script | alain23 | Software | 0 | 09-20-2007 06:02 AM |
| Re: Need Ideas For A New Server, Long Post | Gareth Church | A+ Certification | 2 | 07-27-2003 12:46 PM |