Click here to Skip to main content
Click here to Skip to main content
Alternatives (1)

Using C# code inside JavaScript code

By , 26 Aug 2010

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

31 Aug 2010  
Prosanta Kundu online
 
I always prefer this approach belowASPX pageIn aspx.cs page Page_LoadPage.ClientScript.RegisterClientScriptBlock(Page.GetType(), "pageVars", string.Format("var TextBox1 = '{0}';", TextBox1.ClientID),true);When required...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Ahmed_Said
Software Developer Asset Technology Group
Egypt Egypt
I'm a professional components designer, web developer, UX engineer and 3d designer as well, I'm 4 years experienced .net software engineer and 7 years experienced 3d designer using 3D Max. I'm very interested in RIA technologies, prototyping and UX engineering.
 
Ahmed Said
Senior .Net Software Engineer
Follow on   Twitter

| | Privacy | Mobile
Web02 | 2.8.140421.2 | Last Updated 26 Aug 2010
Article Copyright 2010 by Ahmed_Said
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid