Feb 01, 2010, 7:48 PM
Window and User Control
Friends,
I
need your help, I have a user control with a window, this takes the
information sent from a page, when I save the information, text field
is blank, can you help?.
Thank you.
ASP Page
I
need your help, I have a user control with a window, this takes the
information sent from a page, when I save the information, text field
is blank, can you help?.
Thank you.
ASP Page
<Buttons>
</ext:Button>
<ext:Button ID="bEditJobTitle" runat="server" Text="Editar" Icon="NoteEdit">
<AjaxEvents>
<Click OnEvent="ShowParamWindow"></Click>
</AjaxEvents>
</ext:Button>
</Buttons>
<uc1:wucParamWindow ID="wucParamWindow1" runat="server" />
...
public void ShowParamWindow(object sender, AjaxEventArgs e)
{
this.wucParamWindow1.Show(1,2,EParameterType.DEPARTAMENT,EActionType.INSERT);
}
public partial class wucParamWindow : System.Web.UI.UserControl
{
public void Show(int companyId, int fieldId, EParameterType parameterType, EActionType actionType)
{
this.winParam.Show();
//Here, take the parameters are set correctly and to hdnParent
this.hdnParent.Text = string.Format("{0};{1};{2};{3}", companyId, fieldId, Convert.ToInt32(parameterType), Convert.ToInt32(actionType));
}
protected void bPrmSave_Click(object sender, EventArgs e)
{
string[] arrInfo = this.hdnParent.Text.Split(';'); //Here, in obtaining the information is blank
ParameterBridge parameterBridge = new ParameterBridge();
parameterBridge.InsertParameter(Convert.ToInt32(arrInfo[0]),
Convert.ToInt32(arrInfo[1]),
this.txtParamName.Text, // Here, in obtaining the information is blank
(EParameterType)Convert.ToInt32(arrInfo[2]),
(EActionType)Convert.ToInt32(arrInfo[3]));
}
}
Thank you.