the first time i did it i did not have the <columns> tag and when i changed to the design view it gave me the following error
Error Creating Control-content 1
Type 'System.Web.UI.WebControls.'GridView'does not have a public property named 'Item Template'\
I then added the columns tag and it would not let me go to the design view and left the following error
never mind that error there was just an error i did something else I remove your code and configured my datasource
I ran my website to a browser and i was able to enter my site but when i went into the photo album of choice i got the following error
Server Error in '/ClubWebSite1' Application.
Compilation Error
Description:
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30451: Name 'DataList2' is not declared.
Source Error:
Line 15:
Line 16: Protected Sub FormView2_PageIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Line 17: DataList2.SelectedIndex = FormView2.PageIndex
Line 18: FormView1.ChangeMode(FormViewMode.ReadOnly)
Line 19: End Sub
now what do i do. keep in mind while configuring my data source it was showing me my photo when i hit test query in the configure data source section of the gridview section
razzak25000@...
Member
4 Points
5 Posts
Re: Paging in the Photo Section
Feb 26, 2009 10:28 PM|LINK
I get errors with this can you help with it..
I copied the content from my DataList and then deleted it.
I then added a GridView and posted this in the code
<asp:GridView ID="GridView1" runat="server" Height="364px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="191px"> <Columns> <ItemTemplate> <asp:ImageButton ID="ImageButton1" ImageUrl='<%# "imagefetch.ashx?size=1&imageid=" & Cstr(Eval("id")) %>' runat="server" CommandName="select" /><br /> <asp:Label Text='<%# Eval("title") %>' runat="server" ID="titleLabel" />
</Columns> </ItemTemplate>
</asp:GridView>the first time i did it i did not have the <columns> tag and when i changed to the design view it gave me the following error
Error Creating Control-content 1
Type 'System.Web.UI.WebControls.'GridView'does not have a public property named 'Item Template'\
I then added the columns tag and it would not let me go to the design view and left the following error
never mind that error there was just an error i did something else I remove your code and configured my datasource
I ran my website to a browser and i was able to enter my site but when i went into the photo album of choice i got the following error
Server Error in '/ClubWebSite1' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message: BC30451: Name 'DataList2' is not declared.
Source Error:
now what do i do. keep in mind while configuring my data source it was showing me my photo when i hit test query in the configure data source section of the gridview section