Click here to Skip to main content
15,886,798 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I am displaying data with edit option [last column] in grid view control and that's working fine in visual studio IDE.

But after deploying the same code in IIS and if i try to browse the website i can't see anything (neither data nor empty grid control ).

databind:
GridView1.DataSource = ds; (it has data in datatable)
GridView1.DataBind();

design code:

<asp:GridView ID="GridView1" runat="server" ShowHeaderWhenEmpty="true" AutoGenerateColumns="False"
onrowediting="GridView1_RowEditing"
onrowcancelingedit="GridView1_RowCancelingEdit"
onrowupdating="GridView1_RowUpdating" Font-Names="Arial" DataKeyNames="User ID"
CellPadding="4" ForeColor="#333333" GridLines="None" Height="212px" Width="100%"
onrowdatabound="GridView1_RowDataBound" >
<alternatingrowstyle backcolor="White" forecolor="#284775">
<columns> <asp:TemplateField HeaderText="Name">
<edititemtemplate>
<asp:Label ID="lblName1" runat="server" Text=<%#Eval("Resource Name")%>>

<itemtemplate>
<asp:Label ID="lblName" runat="server" Text=<%#Eval("Resource Name")%>>

Posted
Updated 26-Nov-15 20:34pm
v2
Comments
[no name] 27-Nov-15 2:40am    
Might be there will be exception in GridView1_RowDataBound event. are you getting any exception?

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