Click here to Skip to main content
15,898,615 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Running a program at the Client.. Pin
Christian Graus26-Mar-08 23:55
protectorChristian Graus26-Mar-08 23:55 
GeneralRe: Running a program at the Client.. Pin
Sandeep Akhare27-Mar-08 0:37
Sandeep Akhare27-Mar-08 0:37 
GeneralLINQ Objects is not serializable. Pin
CooperWu26-Mar-08 23:04
CooperWu26-Mar-08 23:04 
Generalunable to get sql server connection using provider:sqloledb Pin
jithbiz003326-Mar-08 22:43
jithbiz003326-Mar-08 22:43 
Generalget data from SQL2005 into SQL2000 Server Pin
meghamaharshi26-Mar-08 22:28
meghamaharshi26-Mar-08 22:28 
GeneralRe: get data from SQL2005 into SQL2000 Server Pin
eyeseetee26-Mar-08 22:45
eyeseetee26-Mar-08 22:45 
QuestionJavaScipt variables Pin
jonhbt26-Mar-08 22:15
jonhbt26-Mar-08 22:15 
GeneralRe: JavaScipt variables Pin
Christian Graus26-Mar-08 22:24
protectorChristian Graus26-Mar-08 22:24 
Basically, you need to use registerclientscriptblock to create a javascript variable which has the C# value as it's value. As in:


int c = "string";
RegisterClientScriptBlock("cStrig", "var str = '" + c + "'");

Of course you need to emit script tags as well, but that's the overall idea. You need to create a javascript variable that contains the value you want to pass through. The most likely reason to do this is to get the client side id of a control on the client side, where you use code like:

RegisterClientScriptBlock("textbox1", "var textbox1Id = '" + textbox1.ClientID + "'");

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: JavaScipt variables Pin
CooperWu26-Mar-08 23:00
CooperWu26-Mar-08 23:00 
QuestionUpdate panel and button [modified] Pin
Soumini Ramakrishnan26-Mar-08 21:40
Soumini Ramakrishnan26-Mar-08 21:40 
GeneralRe: Update panel and button Pin
Christian Graus26-Mar-08 22:01
protectorChristian Graus26-Mar-08 22:01 
GeneralRe: Update panel and button Pin
eyeseetee26-Mar-08 22:45
eyeseetee26-Mar-08 22:45 
GeneralRe: Update panel and button Pin
Sandeep Akhare26-Mar-08 22:58
Sandeep Akhare26-Mar-08 22:58 
GeneralRe: Update panel and button Pin
Soumini Ramakrishnan26-Mar-08 23:22
Soumini Ramakrishnan26-Mar-08 23:22 
GeneralRe: Update panel and button Pin
eyeseetee26-Mar-08 23:46
eyeseetee26-Mar-08 23:46 
GeneralRe: Update panel and button Pin
Sandeep Akhare26-Mar-08 23:47
Sandeep Akhare26-Mar-08 23:47 
Generallink Pin
trilokharry26-Mar-08 21:35
trilokharry26-Mar-08 21:35 
GeneralRe: link Pin
~V~26-Mar-08 21:52
~V~26-Mar-08 21:52 
GeneralAlert Function In asp.net Pin
~V~26-Mar-08 21:15
~V~26-Mar-08 21:15 
GeneralRe: Alert Function In asp.net Pin
rajanandal26-Mar-08 21:26
rajanandal26-Mar-08 21:26 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 21:40
~V~26-Mar-08 21:40 
GeneralRe: Alert Function In asp.net Pin
rajanandal26-Mar-08 22:02
rajanandal26-Mar-08 22:02 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 22:08
~V~26-Mar-08 22:08 
GeneralRe: Alert Function In asp.net Pin
Christian Graus26-Mar-08 22:04
protectorChristian Graus26-Mar-08 22:04 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 22:11
~V~26-Mar-08 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.