<asp:LinkButton ID="linkaddsolution" runat="server" OnClick="addsolution_Click" >Add Another Solution</asp:LinkButton>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" PopupControlID="panel1"
Enabled="True" TargetControlID="linkbtn1" BackgroundCssClass="messagemodalbackground">
</cc1:ModalPopupExtender>
<asp:LinkButton runat="server" ID="linkbtn1"></asp:LinkButton>
<asp:Panel ID="panel1" runat="server" CssClass="ModalPopup" style="display:none;border:solid 1px Black;">
<table align="center" style="padding:25px;vertical-align:bottom;" class="tablestyle">
<tr><td>
Enter Name </td><td>
<asp:TextBox ID="txtName" runat="server" MaxLength="50"></asp:TextBox><br />
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server"
TargetControlID="txtanothersolution" FilterMode="ValidChars"
ValidChars="abcdefghijklmnopqrstuvwxyz0123456789">
</cc1:FilteredTextBoxExtender>
</td>
</tr>
<tr ><td align="center" colspan="2">
<asp:Button ID="btnok" runat="server" Text="Ok" onclick="btnok_Click"/>
<asp:Button ID="btncancel" runat="server" Text="cancel" />
</td>
</tr>
</table>
</asp:Panel>
protected void addsolution_Click(object sender, EventArgs e)
{
//write code here
ModalPopupExtender1.Show();
}
protected void btnok_Click(object sender, EventArgs e)
{
//add your code here
}
No comments:
Post a Comment