0

I have a button which redirects the page when clicked, it also pass the selected Email (from the grid) value to the SendMessage.aspx page. Now without redirecting I made a panel and few labels and text box inside the panel as popup for the send button I want to pass the selected email value to a text box field inside the panel. How should i change my code so that the text box inside the pop up panel gets the selected value. thanks

<asp:Button ID="SendButton" Enabled="True" Width="70" runat="server" PostBackUrl='<%# Eval("Email", "SendMessage.aspx?Email={0}") %>' Text='Send' />    
<asp:PopupControlExtender ID="PopUCtrlExt_SendMSg"  runat="server" DynamicServicePath="" Enabled="True" ExtenderControlID="" TargetControlID="SendButton" PopupControlID="Panel_sendmsg" />
abatishchev
  • 98,240
  • 88
  • 296
  • 433
rookie
  • 401
  • 3
  • 13
  • 29

1 Answers1

0

Make an OnClick event on your button. Place a label (lblEmailAddress for eg) in your Panel_sendmsg. Then simply in your buttons OnClick event write: lblEmailAddress.Text = address (grab the address from the grid) then call PopUCtrlExt_SendMSg.Show(). Thats it. :)

madi9k
  • 11
  • 1