Pass values From a Linkbutton to a textbox that is inside a panel

Posted by AneleNgqandulivenmmuacza-9814 under ASP.NET on 8/17/2011 | Points: 10 | Views : 2285 | Status : [Member] | Replies : 0
I have a LinkButton in my gridview that passes values like this;
<Columns >

<asp:TemplateField HeaderText="Create Appointment">

<ItemTemplate>
<asp:LinkButton ID="createAppointment" runat="server" OnClick="createAppointment_Click" PostBackUrl='<%# "frmFindAppointment.aspx?Fullname=" + HttpUtility.UrlEncode(Eval("Fullname").ToString())+"&RecordNumber="+ HttpUtility.UrlEncode(Eval("RecordNumber").ToString())+"&Date="+ HttpUtility.UrlEncode(Eval("Date").ToString())+"&SlotID="+ HttpUtility.UrlEncode(Eval("SlotID").ToString())+"&Timeslot="+ HttpUtility.UrlEncode(Eval("Timeslot").ToString()) %>' Text="Create Appointment" />

Then I have a ModalPopupExtender that popsup the panel with the textbox
<ajaxToolkit:ModalPopupExtender BackgroundCssClass="modalBackground" ID="ModalPopupExtender1" runat="server" TargetControlID="createAppointment" PopupControlID="PNL" OkControlID="ButtonOk" />

<asp:Panel ID="PNL" runat="server" style="display:none; width:900px; background-color:White; border-width:2px; border-color:Black; border-style:solid; padding:20px;">
<asp:TextBox ID="txtViewStaffName" runat="server"
ForeColor="Black" CssClass="textbox" ReadOnly="True"></asp:TextBox>
</asp:Panel>
<Columns >


Now I need atleast 1 value from the linkbutton to be parsed to my textbox "txtViewStaffName"

How can I do this?

Anele Ngqandu
074 730 0304



Responses

(No response found.)

Login to post response