开发者

Get value from database in client side

开发者 https://www.devze.com 2023-04-06 06:41 出处:网络
<asp:LinkButton ID=\"Lnk_Edit\" ToolTip=\"Edit Message\" CommandArgument=\'<%# Eval(\"MsgID\") %>\'
<asp:LinkButton ID="Lnk_Edit" ToolTip="Edit Message" 
                CommandArgument='<%# Eval("MsgID") %>' 
                CommandName="Edit" 
             开发者_StackOverflow社区   runat="server">
   <img id="Img2" src="Styles/Images/Edit.jpg" 
                  runat="server" 
                  style="border-style: none" alt="Edit Message" />
</asp:LinkButton>

<asp:PopupControlExtender 
        ID="CreateUser_PopupControlExtender" 
        runat="server" DynamicServicePath=""
        Enabled="True" 
        ExtenderControlID="" 
        TargetControlID="editmsg" 
        PopupControlID="Paneledit">
</asp:PopupControlExtender>

I have a edit button in the grid view, I pop up a panel containing text box. I want to fill those text box with the value selected by the user. I get Msg ID from the user click, How can I fill data from database in client side


I have almost never used the ajax control extenders, but from what it looks you'll have to fill your Paneledit values after Lnk_Edit OnCommand (EDIT: ah! and CommandName == "Edit") event is fired.

0

精彩评论

暂无评论...
验证码 换一张
取 消