Click here to Skip to main content
15,896,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to use Update panel in the html code given below.Please help me

XML
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="EmailTesting.aspx.vb" Inherits="EmailTesting" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
</head>
<body>
    <form id="form1" runat="server">
    <div>
             <table class="style1">
                    <tr>
                        <td class="style2">
                            Enter Your Email</td>
                        <td>
                            <asp:TextBox ID="txtEmail_1" runat="server" style="margin-left: 0px"
                                Width="526px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:TextBox ID="txtpass" runat="server"</td>
                        <td>
                            <asp:Button ID="Button1" runat="server" Text="Button" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Button ID="Button2" runat="server" Text="Cancel" /></td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style2">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
    </div>
    </form>
</body>
</html>


[edit]Code block added, "Treat my content as plain text..." option disabled, C# removed from description - OriginalGriff[/edit]
Posted
Updated 12-Feb-12 23:05pm
v2

Hi, here is the code below:
Note:
1. be sure to add ScriptManager inside form tag.
2. whatever content you want to update put inside <updatepanel><contenttemplate>
3. buttons used inside this updatepanel will cause automatic postback


XML
<asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>

XML
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
          <ContentTemplate>

      <div>
                  <table class="style1">
                              <tr>
                                    <td class="style2">
                                          Enter Your Email</td>
                                    <td>
                                          <asp:textbox id="txtEmail_1" runat="server" style="margin-left: 0px" xmlns:asp="#unknown">
                                                Width="526px"></asp:textbox>
                                    </td>
                              </tr>
                              <tr>
                                    <td class="style2">
                                          <asp:textbox id="txtpass" runat="server" xmlns:asp="#unknown"></asp:textbox></td>
                                    <td>
                                          <asp:button id="Button1" runat="server" text="Button" xmlns:asp="#unknown" />
                                    </td>
                              </tr>
                              <tr>
                                    <td class="style2">
                                          <asp:button id="Button2" runat="server" text="Cancel" xmlns:asp="#unknown" /></td>
                                    <td>
                                           </td>
                              </tr>
                              <tr>
                                    <td class="style2">
                                           </td>
                                    <td>
                                           </td>
                              </tr>
                        </table>
      </div>
      </ContentTemplate>

          </asp:UpdatePanel>



 
Share this answer
 
Comments
Janardan Pandey 13-Feb-12 5:21am    
How to use multiple update panel in this html coading ? Can we use saperate update panel for text box and button in this html coding ?
Yes You can use multiple update panel , with trigger property, but why do you want to use multiple ...
 
Share this answer
 
Comments
Janardan Pandey 13-Feb-12 6:28am    
because i am using lots of the control in my application.Thats way i want to use saperate update panel for text box and button control.

Please provide me how to use.Multiple control panel.?
use update panel 
<asp:updatepanel runat="server" id="upId" xmlns:asp="#unknown">
<contenttemplate>
//put the code here 
</contenttemplate>
<asp:updatepanel></asp:updatepanel></asp:updatepanel>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900