Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<img src="images/bg_top.png" alt="" width="894" height="8" />


<img src="images/company.jpg" alt="" width="268" height="34" /> <uc1:welcome ID="Welcome1" runat="server" />
valign="bottom">
      Back to Voucher

Admin Console


<img src="images/bg_lt.png" alt="" /> <uc4:company ID="Company1" runat="server" />
<img src="images/bg_rt.png" alt="" height="46" />

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


<asp:UpdatePanel ID="update" runat="server">
<contenttemplate>


   Manage
Stock<asp:HiddenField runat="server" ID="hdn_MinDate" /> <asp:HiddenField runat="server" ID="hdn_MaxDate" />


<td ID="tdGrid" runat="server" valign="top">

<asp:Label runat="server" ID="lbl_msg" Font-Bold="true">

Voucher No. <asp:TextBox ID="voucherno1" runat="server" style="width: 179px"/>
Voucher Date <asp:TextBox runat="server" id="txtdate" style="width: 179px" />
<ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtdate" Format="MM-dd-yyyy">

Supplier Account
<asp:DropDownList id="DropDownList2" runat="server"
style="width:179px"
onselectedindexchanged="DropDownList2_SelectedIndexChanged" AutoPostBack="true">

Purchase Account
<asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="true"
style="width:179px"
onselectedindexchanged="DropDownList3_SelectedIndexChanged1">


Stock Reciept No <asp:DropDownList ID="DropDownList4" runat="server"
style="width:179px"
onselectedindexchanged="DropDownList4_SelectedIndexChanged" AutoPostBack="true">

Narration <asp:TextBox ID="narrartion" runat="server" style="width: 179px" />




No.of
<asp:Label ID="Label1" runat="server">
 
<asp:Label ID="Label2" runat="server">0
<asp:Label ID="Label3" runat="server" >
 in stock
<asp:Label ID="Label4" runat="server">
All in stock
<asp:Label ID="Label5" runat="server">
Diff in Stock
<asp:Label ID="Label6" runat="server">











Stock Details    
Product Name : <asp:DropDownList ID="DropDownList5" runat="server" AutoPostBack="true"
onselectedindexchanged="DropDownList5_SelectedIndexChanged" style="width:128px">

Piece: <asp:TextBox ID="TextBox22" runat="server" onblur="myFunction()">
Rate: <asp:TextBox ID="TextBox3" runat="server"
onkeypress="return isNumberKey(event)">
Lot: <asp:CheckBox ID="CheckBox1" style="margin-right:5px" runat="server" AutoPostBack="true"
oncheckedchanged="CheckBox1_CheckedChanged" Width="5px"/>
<asp:TextBox ID="TextBox5" runat="server" onblur="myFunction1()"
onkeypress="return isNumberKey(event)" ontextchanged="TextBox5_TextChanged"
Width="132px">
Weight: <asp:TextBox ID="TextBox4" runat="server" onblur="myFunction()">
Total: <asp:TextBox ID="TextBox6" runat="server">
Caption: <asp:TextBox ID="TextBox21" runat="server">
       
<asp:UpdateProgress ID="UpdateProgress" runat="server">
<progresstemplate>
<asp:Image ID="Image2" runat="server" Height="54px"
ImageUrl="~/images/ajax-loader.gif" Width="100px" />
Please Wait...


<ajaxToolkit:ModalPopupExtender ID="modalPopup" runat="server" TargetControlID="UpdateProgress" PopupControlID="UpdateProgress" BackgroundCssClass="modalPopup">

                                                                           
Press ALT+I for insert                         
<input type="submit" name="button0" id="Submit3" value="Insert" Width="110"
Height="23"
style="border-style: none; border-color: inherit; border-width: 0; background-image:url('http://localhost:1051/HFC_acc/images/submit.png'); color:#048ce2; font-weight:bold; cursor:pointer; width: 95px; height: 24px;"
causesvalidation="true" runat="server"
onserverclick="Submit3_ServerClick1" accesskey="i" önclick="return Submit3_onclick()" />
   




<asp:DataList ID="Dl_Company" runat="server"
OnItemCreated="Dl_Company_ItemCreated" OnItemCommand="Dl_Company_ItemCommand"
OnItemDataBound="Dl_Company_ItemDataBound" Width="795px"
onselectedindexchanged="Dl_Company_SelectedIndexChanged">
<HeaderTemplate>

Product Piece Lot Lot No. Weight Rate Total style="font-weight: bold; color: #003366; padding-removed 5px;" width="11%">
Edit
Del

</HeaderTemplate>
<itemtemplate>


<asp:Label ID="product" runat="server" CssClass="Content" />
<asp:Label ID="pie" runat="server" CssClass="Content" />
<asp:CheckBox ID="lot" runat="server" CssClass="Content" Enabled="false"/>
<asp:Label ID="lotno" runat="server" CssClass="Content" />
<asp:Label ID="weight" runat="server" CssClass="Content" />
<asp:Label ID="rate" runat="server" CssClass="Content" />
<asp:Label ID="total" runat="server" CssClass="Content" />
<asp:ImageButton ID="btnEd" runat="server" CommandName="viewdetail"
ImageUrl="images/edit.png" />

<asp:ImageButton ID="btnDel" runat="server" CommandName="viewdelete"
ImageUrl="images/delete.png"
OnClientClick="return confirm('are your sure to delete this record')" />


<footertemplate>

<HeaderStyle BackColor="White" />


<asp:ImageButton ID="btnImgNext" runat="server" align="right"
ImageUrl="images/next1.jpg" OnClick="btnImgNext_Click" />
<asp:ImageButton ID="btnImgPrevious" runat="server" align="right"
ImageUrl="images/prev1.jpg" OnClick="btnImgPrevious_Click" />
<asp:Label ID="lblTotalRecord" runat="server" CssClass="contant4">
Records Found, Page
<asp:Label ID="lblCurrentPageNo" runat="server" CssClass="contant4">
of
<asp:Label ID="lblTotalPageNo" runat="server" CssClass="contant4">





Rate
Teligram : <asp:TextBox ID="TextBox7" runat="server" style="text-align:right">0
<asp:CheckBox ID="CheckBox2" runat="server"
oncheckedchanged="CheckBox2_CheckedChanged" Checked="true" AutoPostBack="true" />
Bill Total <asp:TextBox ID="TextBox14" runat="server" style="text-align:right">
labour : <asp:TextBox ID="TextBox8" runat="server"
onkeypress="return isNumberKey(event)" style="text-align:right">0
<asp:CheckBox ID="CheckBox3" runat="server" Checked="true" AutoPostBack="true"
oncheckedchanged="CheckBox3_CheckedChanged"/>
Sales Commision  <asp:TextBox ID="TextBox15" runat="server" Width="36px">
<asp:TextBox ID="TextBox16" runat="server" Width="99px" style="text-align:right">0
<asp:CheckBox ID="CheckBox7" runat="server" Checked="true" AutoPostBack="true"
oncheckedchanged="CheckBox7_CheckedChanged" />
Ice : <asp:TextBox ID="TextBox9" runat="server"
onkeypress="return isNumberKey(event)" style="text-align:right">0
<asp:CheckBox ID="CheckBox4" runat="server" Checked="true" AutoPostBack="true"
oncheckedchanged="CheckBox4_CheckedChanged"/>
Truck Freight <asp:TextBox ID="TextBox17" runat="server" onblur="myFunction2()" style="text-align:right">0
<asp:CheckBox ID="CheckBox8" runat="server" Checked="true" AutoPostBack="true"
oncheckedchanged="CheckBox8_CheckedChanged" />
Sub Total: <asp:TextBox ID="TextBox10" runat="server" onblur="myFunction1()" style="text-align:right">0
Postage <asp:TextBox ID="TextBox18" runat="server" style="text-align:right">0
<asp:CheckBox ID="CheckBox9" runat="server" Checked="true" AutoPostBack="true"
oncheckedchanged="CheckBox9_CheckedChanged" />
Discount: <asp:TextBox ID="TextBox12" runat="server" onblur="myFunction4()"
OnClick="myFunction5()" style="text-align:right">0
<asp:CheckBox ID="CheckBox6" runat="server" AutoPostBack="true" Checked="true"
oncheckedchanged="CheckBox6_CheckedChanged" />
Deposit <asp:TextBox ID="TextBox19" runat="server" style="text-align:right" OnClick="myFunction5(this)" Enabled="false">0
<asp:CheckBox ID="CheckBox10" runat="server" Checked="true" AutoPostBack="true"
oncheckedchanged="CheckBox10_CheckedChanged"/>
Grand Total: <asp:TextBox ID="TextBox13" runat="server" style="text-align:right">0
Cart Hire <asp:TextBox ID="TextBox20" runat="server" style="text-align:right" OnClick="myFunction5(this)">0
<asp:CheckBox ID="CheckBox11" runat="server" Checked="true" AutoPostBack="true"
oncheckedchanged="CheckBox11_CheckedChanged" />
:               <asp:TextBox
ID="TextBox11" runat="server" onblur="myFunction3()" Visible="false"
onkeypress="return isNumberKey(event)" ontextchanged="TextBox5_TextChanged"
style="text-align:right">0
 <asp:CheckBox ID="CheckBox5" runat="server" AutoPostBack="true" Checked="true"
oncheckedchanged="CheckBox5_CheckedChanged" Visible="false" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" AssociatedUpdatePanelID="update">
<contenttemplate>
                                                           
<input type="submit" name="button1" id="button" value="Submit" Width="110"
Height="23"
style="background-image:url(images/submit.png); border:0; color:#048ce2; font-weight:bold; cursor:pointer; width: 76px; height: 24px;"
causesvalidation="true" runat="server" onserverclick="button_ServerClick" önclick="return button_onclick()" />
           
<input type="submit" name="button2" id="Submit4" value="Delete" Width="110"
Height="23"
style="background-image:url(images/submit.png); border:0; color:#048ce2; font-weight:bold; cursor:pointer; width: 76px; height: 24px;"
causesvalidation="true" runat="server" önserverclick="Submit4_ServerClick" />
            
<input type="submit" name="button" id="Submit1" value="Cancel" Width="110" Height="23" style="background-image:url(images/submit.png); border:0; color:#048ce2; font-weight:bold; cursor:pointer; width: 83px; height: 23px;" causesvalidation="false" runat="server" önserverclick="Submit1_ServerClick" />
<asp:Label ID="lblhh" runat="server" Text="gerg">







<asp:UpdateProgress runat="server" ID="update_p" AssociatedUpdatePanelID="update" DisplayAfter="300" DynamicLayout="true">
<progresstemplate>







<img src="images/bg_bottom.png" alt="" width="894" height="6" />
Posted
Comments
manikjeyam 31-Aug-13 8:45am    
where is label you will use inside update panel or outside upddate panel

1 solution

Add the label inside Update panel Other wise lable does not display any thing
other wise
Eample:
this wrong Only
because the lable field Outside the Update panel so event only fire lable will not display anything

XML
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
   <asp:UpdatePanel ID="testwe"  runat="server">
   <ContentTemplate>
       <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
   </ContentTemplate>
   </asp:UpdatePanel>


C#
protected void Button1_Click(object sender, EventArgs e)
  {
      Label1.Text = "sdjfgdhffd";

  }



This correct One
XML
<asp:UpdatePanel ID="testwe"  runat="server">
   <ContentTemplate>
     <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
       <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
   </ContentTemplate>
   </asp:UpdatePanel>
 
Share this answer
 
v3

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