help.. i dont know what to do with this error... i've been using this on my other pages and it works fine.. but when i copy the code to new page... i get this error... but the button exists and recognized...
here is my code...
<ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
<ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="Receiving Report Info"
Width="100%">
<ContentTemplate>
<div>
testtab
</div>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="TabPanel2" runat="server" HeaderText="Receiving Report Details"
Width="100%">
<ContentTemplate>
<br />
<div class="TabToolBar">
<asp:Button ID="Button2" runat="server" Text="Button" />
<asp:Button ID="btnAddMaterial" runat="server" CssClass="Button" Text="Add Item" />
</div>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GridView2" runat="server" GridLines="None" AutoGenerateColumns="False"
AllowPaging="True" ShowFooter="True" CssClass="TabGrd">
<FooterStyle CssClass="GrdFooter" />
<RowStyle CssClass="GrdRows" />
<PagerStyle CssClass="GrdPaging" />
<SelectedRowStyle CssClass="GrdSelected" />
<HeaderStyle CssClass="GrdHeader" />
<EditRowStyle CssClass=" " />
<AlternatingRowStyle CssClass="GrdAltRows" />
<Columns>
<asp:CommandField ButtonType="Image" CancelImageUrl="~/App_Images/cancel.png" DeleteImageUrl="~/App_Images/del.png"
EditImageUrl="~/App_Images/edit_select.png" ShowEditButton="True" ShowDeleteButton="True"
SelectImageUrl="~/App_Images/select.png" UpdateImageUrl="~/App_Images/save.png" />
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblRRDetailsID" runat="server" Text='<%#Bind("RRDetailsID") %>' Width=""></asp:Label>
</ItemTemplate>
<FooterStyle CssClass="HiddenColumn" />
<HeaderStyle CssClass="HiddenColumn" />
<ItemStyle CssClass="HiddenColumn" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblRRID" runat="server" Text='<%#Bind("RRID") %>' Width=""></asp:Label>
</ItemTemplate>
<FooterStyle CssClass="HiddenColumn" />
<HeaderStyle CssClass="HiddenColumn" />
<ItemStyle CssClass="HiddenColumn" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Item No.">
<ItemTemplate>
<asp:Label ID="lblIndex" runat="server" Text='' Width="10%"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Material Description">
<ItemTemplate>
<asp:Label ID="lblMaterialName" runat="server" Text='<%#Bind("MaterialName") %>'
Width="90%"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Unit">
<ItemTemplate>
<asp:Label ID="lblUnit" runat="server" Text='<%#Bind("Unit") %>' Width="90%"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Quantity">
<ItemStyle HorizontalAlign="center" />
<ItemTemplate>
<asp:Label ID="lblQuantity" runat="server" Text='<%#String.Format("{0:N}", Eval("Quantity")) %>'
Width="50px"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtQuantity" runat="server" Text='<%#Bind("Quantity") %>' Width="50px"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Remarks">
<ItemTemplate>
<asp:Label ID="lblRemarks" runat="server" Text='<%#Bind("Remarks") %>' Width="100%"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtRemarks" runat="server" Text='<%#Bind("Remarks") %>' Width="90%"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblPrevQty" runat="server" Text='<%#Bind("PrevQty") %>' Width=""></asp:Label>
</ItemTemplate>
<FooterStyle CssClass="HiddenColumn" />
<HeaderStyle CssClass="HiddenColumn" />
<ItemStyle CssClass="HiddenColumn" />
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblPODetailsID" runat="server" Text='<%#Bind("PODetailsID") %>' Width=""></asp:Label>
</ItemTemplate>
<FooterStyle CssClass="HiddenColumn" />
<HeaderStyle CssClass="HiddenColumn" />
<ItemStyle CssClass="HiddenColumn" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
<div class="ToolBarRight">
<asp:Button ID="btnEditUpdate" runat="server" class="Button" Text="Edit RR" />
<asp:Button ID="btnDeleteCancel" runat="server" class="Button" Text="Delete RR" />
<asp:Button ID="btnBackToList" runat="server" class="Button" Text="Back To RR List" />
<asp:Button ID="btnApproveRR" runat="server" class="Button" Text="Approve RR" />
<asp:Button ID="btnCancelRR" runat="server" class="Button" Text="Cancel RR" />
</div>
<div>
<asp:Panel ID="Panel1" runat="server" CssClass="modalPopup">
<div>
<br />
<asp:Label ID="Label1" runat="server" Text="P.O. # "></asp:Label>
<asp:Label ID="lblPOCode" runat="server"></asp:Label>
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="Check the materials to be added"></asp:Label>
<br />
<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GridView3" runat="server" CellPadding="0" GridLines="None" AutoGenerateColumns="False"
DataKeyNames="PODetailsID, MaterialID" AllowPaging="True" ShowFooter="True" CssClass="ModalGrd">
<AlternatingRowStyle CssClass="GrdAltRows" />
<EmptyDataTemplate>
<table class="ModalGrd" cellpadding="0" cellspacing="0">
<tr>
<td class="GrdHeader" width="10px">
</td>
<td class="GrdHeader">
Item ID
</td>
<td class="GrdHeader">
PR Code
</td>
<td class="GrdHeader">
Material Code
</td>
<td class="GrdHeader">
Material Name
</td>
<td class="GrdHeader">
Unit
</td>
<td class="GrdHeader">
Quantity
</td>
<td class="GrdHeader">
</td>
</tr>
<tr class="GrdRows">
<td colspan="8">
<asp:Label ID="lblEmpty" runat="server">No Record Exists.</asp:Label>
</td>
</tr>
<tr>
<td class="GrdFooter" colspan="8">
</td>
</tr>
</table>
</EmptyDataTemplate>
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="chkSelect" runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="PODetailsID">
<ControlStyle Width="70%" CssClass="HiddenColumn" />
<FooterStyle CssClass="HiddenColumn" />
<HeaderStyle CssClass="HiddenColumn" />
<ItemStyle CssClass="HiddenColumn" />
<ItemTemplate>
<asp:Label ID="lblPODetailsID" runat="server" Text='<%#String.Format("{0:N}", Eval("PODetailsID")) %>'
Width="90%"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="POID" HeaderText="POID" SortExpression="POID">
<ControlStyle Width="70%" CssClass="HiddenColumn" />
<FooterStyle CssClass="HiddenColumn" />
<HeaderStyle CssClass="HiddenColumn" />
<ItemStyle CssClass="HiddenColumn" />
</asp:BoundField>
<asp:BoundField DataField="PRDetailsID" HeaderText="PRDetailsID" SortExpression="PRDetailsID">
<ControlStyle Width="70%" CssClass="HiddenColumn" />
<FooterStyle CssClass="HiddenColumn" />
<HeaderStyle CssClass="HiddenColumn" />
<ItemStyle CssClass="HiddenColumn" />
</asp:BoundField>
<asp:BoundField DataField="MaterialID" HeaderText="Item ID" SortExpression="MaterialID">
<ControlStyle Width="70%" />
<FooterStyle CssClass="HiddenColumn" />
<HeaderStyle CssClass="HiddenColumn" />
<ItemStyle CssClass="HiddenColumn" />
</asp:BoundField>
<asp:TemplateField HeaderText="Item No.">
<ItemTemplate>
<asp:Label ID="lblIndex" runat="server" Text='' Width=""></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="PRCode" HeaderText="PRCode" SortExpression="PRCode">
<ControlStyle Width="90%" />
</asp:BoundField>
<asp:BoundField DataField="MaterialCode" HeaderText="MaterialCode" SortExpression="MaterialCode">
<ControlStyle Width="90%" />
</asp:BoundField>
<asp:BoundField DataField="MaterialName" HeaderText="Material Name" SortExpression="MaterialName">
<ControlStyle Width="90%" />
</asp:BoundField>
<asp:BoundField DataField="Unit" HeaderText="Unit" SortExpression="Unit">
<ControlStyle Width="90%" />
</asp:BoundField>
<asp:TemplateField HeaderText="Quantity">
<ItemStyle HorizontalAlign="Right" />
<ItemTemplate>
<asp:Label ID="lblQuantity" runat="server" Text='<%#String.Format("{0:N}", Eval("Quantity")) %>'
Width="90%"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Quantity Remaining">
<ItemStyle HorizontalAlign="Right" />
<ItemTemplate>
<asp:Label ID="lblQuantityRemain" runat="server" Text='' Width="90%"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Unit Cost">
<ItemStyle HorizontalAlign="Right" />
<ItemTemplate>
<asp:Label ID="lblUnitCost" runat="server" Text='<%#String.Format("{0:N}", Eval("UnitCost")) %>'
Width="90%"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="QuantityIncluded">
<ControlStyle Width="70%" CssClass="HiddenColumn" />
<FooterStyle CssClass="HiddenColumn" />
<HeaderStyle CssClass="HiddenColumn" />
<ItemStyle CssClass="HiddenColumn" />
<ItemTemplate>
<asp:Label ID="lblQuantityIncluded" runat="server" Text='<%#String.Format("{0:N}", Eval("QuantityIncluded")) %>'
Width="90%"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EditRowStyle CssClass="GrdEdit" />
<EmptyDataTemplate>
<asp:Label ID="lblEmpty" runat="server">No Record Exists.</asp:Label>
</EmptyDataTemplate>
<FooterStyle CssClass="GrdFooter" />
<HeaderStyle CssClass="GrdHeader" VerticalAlign="Middle" />
<PagerStyle CssClass="GrdPaging" />
<RowStyle CssClass="GrdRows" />
<SelectedRowStyle CssClass="GrdSelected" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
<br />
<asp:Button ID="AddItemButton" runat="server" CssClass="Button" Text="Add Items" />
<asp:Button ID="CancelButton" runat="server" CssClass="Button" Text="Cancel" />
</div>
</asp:Panel>
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Button2"
PopupControlID="Panel1" BackgroundCssClass="modalBackground" DropShadow="True"
DynamicServicePath="" Enabled="True">
</ajaxToolkit:ModalPopupExtender>
</div>Protected Sub GridView1_SelectedIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSelectEventArgs) Handles GridView1.SelectedIndexChanging--- d:\E\AjaxControlToolkit_AjaxTk\Orcas\AjaxControlToolkit\ModalPopup\ModalPopupExtender.cs
Dim rrcode = CType(GridView1.Rows(e.NewSelectedIndex).FindControl("lblRRCode"), Label).Text
Dim rrid = CType(GridView1.Rows(e.NewSelectedIndex).FindControl("lblRRID"), Label).Text
Dim poid = CType(GridView1.Rows(e.NewSelectedIndex).FindControl("lblPOID"), Label).Text
'UpdatePanel1.Update()
lblHeader.Text = "Receiving Report - Details"
MultiView1.SetActiveView(View2)
lblRRCode.Text = rrcode
lblRRID.Text = rrid
lblPO.Text = poid
TabContainer1.ActiveTab = TabPanel1
FormView1.DefaultMode = FormViewMode.ReadOnly
GridView2.Columns(0).Visible = False
BindFormView()
Dim lblRRNo = CType(FormView1.Row.FindControl("lblRRNo"), Label)
lblRRNo.Text = lblRRCode.Text
BindRRDetails()
End Sub
00000000 push edi
00000001 push esi
00000002 push ebx
00000003 push ebp
00000004 mov esi,ecx
00000006 mov ebx,edx
00000008 cmp dword ptr ds:[03B7935Ch],0
0000000f je 00000016
00000011 call 738CC657
00000016 lea ecx,[esi+5Ch]
00000019 cmp ecx,dword ptr [ecx]
0000001b call 72D132A0
00000020 mov edi,eax
00000022 test edi,edi
00000024 je 0000003E
00000026 mov edi,esi
00000028 lea ecx,[esi+5Ch]
0000002b cmp ecx,dword ptr [ecx]
0000002d call 72D1334C
00000032 mov ebp,eax
00000034 mov edx,ebp
00000036 mov ecx,edi
00000038 call dword ptr ds:[06864454h]
0000003e mov edx,ebx
00000040 mov ecx,esi
00000042 call FFFFFB88
00000047 nop --->>>error stops here
00000048 pop ebp
00000049 pop ebx
0000004a pop esi
0000004b pop edi
0000004c ret
Regards,
Mhaey
Please remember to click “Mark as Answer” on the post that helps you.. =)
![]() |
0 |
![]() |
the button u are giving as target control id must be in same updatepanel, not in another update panel or outside.
then it will work
u can use eithr
AddItemButton or CancelButton in ur caseButton2 is not inside any update panel
Do remember to mark this as Answer if this fix your problem
Thanks & Regards
BinuKumar S
![]() |
0 |
![]() |
binukumar:
the button u are giving as target control id must be in same updatepanel, not in another update panel or outside.
then it will work
u can use eithr
AddItemButton or CancelButton in ur caseButton2 is not inside any update panel
AddItemButton and CancelButton is used in a modalpopup which is in the modalpopupextender's popupcontrolid "panel1".. i cannot used that.. because it has different function...
ive already used this kind of code in my other pages... and they worked... its JUST IN ONE PAGE.. that IT WONT WORK... same function... same flow... same code where the button is... but i just cant figured out why this error came out....
even if i removed the update panel... it just wont work.....
Regards,
Mhaey
Please remember to click “Mark as Answer” on the post that helps you.. =)
![]() |
0 |
![]() |