How to accept value from javascript in c#
-
confused: Hi, all I have a function change() in javascript which return a id. While I am recieving this ID in TextBox1.Text = change() // error can not convert void to string. Is there any way to solve this error. Please help me... Thanks Sapan Man are born to succed not to fail
-
confused: Hi, all I have a function change() in javascript which return a id. While I am recieving this ID in TextBox1.Text = change() // error can not convert void to string. Is there any way to solve this error. Please help me... Thanks Sapan Man are born to succed not to fail
First of all, this is the C# forum. You probably want the ASP.NET forum. Second, how can we tell you what's wrong with your code, if you don't post it ? Your control on the client side will have a different name to on the server side, and does not have a Text property. Half of the code you posted is C# and half is a javascript call. You need to find the control in javascript, and set it's value, using javascript.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
First of all, this is the C# forum. You probably want the ASP.NET forum. Second, how can we tell you what's wrong with your code, if you don't post it ? Your control on the client side will have a different name to on the server side, and does not have a Text property. Half of the code you posted is C# and half is a javascript call. You need to find the control in javascript, and set it's value, using javascript.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
the Same is posted it in the Asp.net Forum also.
Regards, Satips.:rose:
-
the Same is posted it in the Asp.net Forum also.
Regards, Satips.:rose:
Some people always take sheer pleasure of cross posting and spoiling the good fine fabric of discussion forums.
Vasudevan Deepak Kumar Personal Homepage Tech Gossips