dotnet0824
asked on
ASP.NET C# RegisterClientScriptBlock
I want to convert this Javascript on Client page to the Code Behind C# page .....
string strCsharp = "CsharpPage"; //// Only this variable is being passed from Code Behind.. It has to be written on server side when a button is clicked....
<script language="javascript">
function GetPage()
{
var frm = document.forms[0];
frm.HiddenStudent.value = 'yes'; // Hiddenvariable
frm.HiddenGoToPage.value = 'Admin.aspx';
frm.HiddenCSHARPVALUE.valu e = strCsharp; //value being passed from csharp code behind
frm.document.action = 'GotoASPPage.asp';
frm.document.submit();
}
string strCsharp = "CsharpPage"; //// Only this variable is being passed from Code Behind.. It has to be written on server side when a button is clicked....
<script language="javascript">
function GetPage()
{
var frm = document.forms[0];
frm.HiddenStudent.value = 'yes'; // Hiddenvariable
frm.HiddenGoToPage.value = 'Admin.aspx';
frm.HiddenCSHARPVALUE.valu
frm.document.action = 'GotoASPPage.asp';
frm.document.submit();
}
ASKER
C# code Behind Page
private void Button_click Event
{
the script goes here //
}
private void Button_click Event
{
the script goes here //
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot.
ASKER