| | |
Response.Write Enlarges Text
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2008
Posts: 104
Reputation:
Solved Threads: 18
Rather than using Response.Write to inject javascript from code behind, you can use the ClientScript.RegisterStartupScript function to achieve this. This may solve your issue. Here is a sample code
ASP.NET Syntax (Toggle Plain Text)
string jsScript = @"<script language='javascript'>alert('This is my JS Statement');</script>"; ClientScript.RegisterStartupScript(GetType(),"_script",jsScript );
Last edited by Aneesh_Argent; Mar 11th, 2009 at 3:06 am.
Falling down is not defeat...
Defeat is when you refuse to getup...
Defeat is when you refuse to getup...
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: got the asp.net membership/login blues.
- Next Thread: problem in crystal report
Views: 478 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 ajax appliances application asp asp.net beginner box browser businesslogiclayer button c# cac chat checkbox child class compatible complex content contenttype control countryselector courier database datagrid datagridview datalist deployment development dgv dialog dropdown dropdownmenu dynamic dynamically edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv folder form gridview gudi identity iis image javascript languages list maps menu mobile mssql nameisnotdeclared novell opera order problem profile ratings redirect refer registration relationaldatabases response.redirect rows search security select serializesmo.table sessionvariables silverlight smoobjects software sql ssl tracking treeview typeof validatedate validation vb vb.net vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment wizard xsl





