Click here to Skip to main content
16,004,727 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
Please be sure that txtHidden value is assigned in aspx
Code looks right check my code
this is javascript function

function HideContent()
{
var hiddenVar=document.getElementById('hidden');
hiddenVar.value="Sandeep";
}





And here is the .cs file code


protected void Page_Load(object sender, EventArgs e)
{
Button1.Attributes.Add("onclick", "javascript:HideContent();");
}
protected void Button1_Click(object sender, EventArgs e)
{

if (!String.IsNullOrEmpty(hidden.Value))
{

TextBox1.Text = hidden.Value;
}
}

It is working boss in my machine

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_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 
AnswerRe: content management sysrem Pin
John-ph30-Oct-07 22:58
John-ph30-Oct-07 22:58 
Questionis it Correct??????? Pin
Vanamaindia30-Oct-07 21:39
Vanamaindia30-Oct-07 21:39 
AnswerRe: is it Correct??????? Pin
Christian Graus30-Oct-07 22:26
protectorChristian Graus30-Oct-07 22:26 

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.