anybody could help me, please.......... :(((((((((((
On Tue, Feb 24, 2009 at 4:08 PM, s...@gshadow <[email protected]> wrote: > Hi All, > > I got a problem with my project > actually I have 3 pages that will be linked 1 by 1: > Page_1. aspx linked to Page_1_1. aspx > Page_2. aspx linked to Page_2_2. aspx > Page_3. aspx linked to Page_3_3. aspx > > for page_1 and page_2 everything normal, they work fine. > until I start in Page_3 that will be linked to Page_3_3, there always an > error when I publish in production server. > > in Page_3, I use listview and one element in the listview there is > linkbutton that will be linked to Page_3_3.aspx > listview used fire event ItemCommand > > <asp:ListView runat="server" ID="lstView_Result" GroupItemCount="2" > onitemcommand="lstView_Result_ItemCommand" > DataSourceID="sqlDS_"> > ... > ... > ... > ... > <asp:LinkButton ID="lnk_VerifyLabel" runat="server" > PostBackUrl="~/Issue/Page_3_3.aspx" > Text='<%# Eval("Id_Verify") %>' /> > > > for the event: > protected void lstView_Result_ItemCommand(object sender, > ListViewCommandEventArgs e) { > ListViewItem item = e.Item; > > if (item.ItemType == ListViewItemType.DataItem) { > LinkButton lnkBtn_Id_Verify = > (LinkButton)item.FindControl("lnk_VerifyLabel"); > > str_Id_Verify = lnkBtn_Id_Verify.Text; > } > } > > > > and for Page_3_3.aspx., I wrote directive: > <%@ PreviousPageType VirtualPath="~/Issue/Page_3.aspx" %> > > > > and for Page_3_3.aspx.cs, I wrote: > > try { > lbl_Id_Verify_.Text = PreviousPage.Id_Verify; > Page_Load_Info(Int16.Parse(PreviousPage.Id_Verify)); > > } catch (NullReferenceException err) { > lbl_Id_Verify_.Text = err.Message; > } > > > When I compile in my local compie, everything works fine until this code > wanna to publish in the production server. > the erroro always showup like this: > *Issu_Issue_Field_Visit' does not contain a definition for > 'Id_Verify_Field_Visit' and no extension method 'Id_Verify_Field_Visit' > accepting a first argument of type 'Issue_Issue_Field_Visit' could be found > (are you missing a using directive or an assembly reference?)* > > whereas Id_Verify_Field_Visit has already defined and this code works fine > for Page_1 (Page_1_1) and Page_2 (Page_2_2). > hmmmmmm.......... > > Any body could help me? (with other opinion or any solution) > I'v stucked with this for 3 days... > > > > thax's in advance, > sugi > > -- > 一日不见如隔百秋 > > It's not what you can get but what you can give that makes you a rich > person > -- 一日不见如隔百秋 It's not what you can get but what you can give that makes you a rich person
