string status = ucFormWizard.SaveDataToDB(commandData[1], Convert.ToInt32(commandData[2]), commandData[3], commandData[4], commandData[5]); HiddenField hide = (HiddenField)ucFormWizard.FindControl("Hidden1"); hide.Value = status;
<asp:HiddenField ID="Hidden1" runat="server" /> function GetSlnForm() { var slnFormValue = document.getElementById('<%=Hidden1.ClientID%>').value; }
FindControl
.ascx.cs
public class YourUserControl : UserControl { public string Status { get { return Hidden1.Value; } set { Hidden1.Value = value; } } ... }
string status = ucFormWizard.SaveDataToDB(commandData[1], Convert.ToInt32(commandData[2]), commandData[3], commandData[4], commandData[5]); ucFormWizard.Status = status;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)