Click here to Skip to main content
15,914,013 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: to get javactript variable value in code behind Pin
P_Elza30-Oct-07 22:43
P_Elza30-Oct-07 22:43 
AnswerRe: to get javactript variable value in code behind Pin
Sandeep Akhare30-Oct-07 23:09
Sandeep Akhare30-Oct-07 23:09 
i think this value that you are initialzing in javascript won't persist.
Do one thing Add hidden variable runat server and assign value to that hidden varaible and use that hidden varaible at server side like this

 var label1=document.getElementById('hidden');<br />
<br />
       label1.value="Sandeep";<br />

and at the server side just get the value from it
hidden.Value that will return you string

Thanks and Regards
Sandeep

If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "




GeneralRe: to get javactript variable value in code behind Pin
P_Elza30-Oct-07 23:30
P_Elza30-Oct-07 23:30 
GeneralRe: to get javactript variable value in code behind Pin
Sandeep Akhare30-Oct-07 23:36
Sandeep Akhare30-Oct-07 23:36 
GeneralRe: to get javactript variable value in code behind Pin
P_Elza30-Oct-07 23:40
P_Elza30-Oct-07 23:40 
GeneralRe: to get javactript variable value in code behind Pin
Sandeep Akhare30-Oct-07 23:47
Sandeep Akhare30-Oct-07 23:47 
GeneralRe: to get javactript variable value in code behind Pin
P_Elza30-Oct-07 23:54
P_Elza30-Oct-07 23:54 
GeneralRe: to get javactript variable value in code behind Pin
Sandeep Akhare30-Oct-07 23:58
Sandeep Akhare30-Oct-07 23:58 
GeneralRe: to get javactript variable value in code behind Pin
P_Elza31-Oct-07 0:02
P_Elza31-Oct-07 0:02 
GeneralRe: to get javactript variable value in code behind Pin
P_Elza31-Oct-07 0:05
P_Elza31-Oct-07 0:05 
GeneralRe: to get javactript variable value in code behind Pin
Sandeep Akhare31-Oct-07 0:14
Sandeep Akhare31-Oct-07 0:14 
GeneralRe: to get javactript variable value in code behind Pin
P_Elza31-Oct-07 0:28
P_Elza31-Oct-07 0:28 
AnswerRe: to get javactript variable value in code behind Pin
Christian Graus30-Oct-07 23:49
protectorChristian Graus30-Oct-07 23:49 
GeneralRe: to get javactript variable value in code behind Pin
P_Elza31-Oct-07 0:15
P_Elza31-Oct-07 0:15 
AnswerRe: to get javactript variable value in code behind Pin
Kasi Viswanathan30-Oct-07 22:30
Kasi Viswanathan30-Oct-07 22:30 
GeneralRe: to get javactript variable value in code behind Pin
Sandeep Akhare30-Oct-07 22:35
Sandeep Akhare30-Oct-07 22:35 
GeneralRe: to get javactript variable value in code behind Pin
P_Elza30-Oct-07 22:52
P_Elza30-Oct-07 22:52 
AnswerRe: to get javactript variable value in code behind Pin
Samariya prakash2-Nov-07 3:58
Samariya prakash2-Nov-07 3:58 
Questionbind the values to arraylist and hashtable..., Pin
Member 387988130-Oct-07 21:46
Member 387988130-Oct-07 21:46 
AnswerRe: bind the values to arraylist and hashtable..., Pin
r a j u u30-Oct-07 23:30
r a j u u30-Oct-07 23:30 
AnswerRe: bind the values to arraylist and hashtable..., Pin
r a j u u30-Oct-07 23:46
r a j u u30-Oct-07 23:46 
QuestionTracking download url of file in client machine Pin
bimannagar30-Oct-07 21:42
bimannagar30-Oct-07 21:42 
AnswerRe: Tracking download url of file in client machine Pin
Ghazi H. Wadi30-Oct-07 22:29
Ghazi H. Wadi30-Oct-07 22:29 
Questioncontent management sysrem Pin
saravanan0530-Oct-07 21:41
saravanan0530-Oct-07 21:41 
GeneralRe: content management sysrem Pin
John-ph30-Oct-07 22:30
John-ph30-Oct-07 22:30 

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.