Click here to Skip to main content
15,917,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my project when i click on gridview to edit row , i have written rowediting event
but it not invoking in vb.net but in c#.net every thing works fine and also when click on events of gridview in properties in designer source view event name is not displaying but back end server side event is showing this is happeing in vb.net only , c# is fine. can u tell me solution?

ASP.NET
<asp:GridView ID="gdGroups" runat="server"  AutoGenerateColumns ="false"  onrowdeleting="gdGroups_RowDeleting" 
            onrowdatabound="gdGroups_RowDataBound" onrowediting="gdGroups_RowEditing" 
            onrowupdating="gdGroups_RowUpdating" onpageindexchanging="gdGroups_PageIndexChanging"   >
            <columns>
       <asp:BoundField DataField="sno"  Visible ="false"   />
       <asp:BoundField DataField="gname" HeaderText="Group Name" />
         <asp:BoundField DataField="status" HeaderText="Status" />
          <asp:BoundField DataField="gdt" DataFormatString="{0:dd-MMM-yyyy}" 
             HeaderText="Create Date" />
              <asp:TemplateField HeaderText="Edit/Update">
                                <edititemtemplate>
                                    <asp:ImageButton ID="Image2" runat="server" ImageUrl="~/Images/icon-floppy.gif" CommandName="edit" />
                                </edititemtemplate>
                                <itemtemplate>
                                    <asp:ImageButton ID="Image1" runat="server" ImageUrl="~/Images/icon-pencil.gif" CommandName="update" />
                                </itemtemplate>
                            
                            <asp:TemplateField HeaderText="Delete">
                                <itemtemplate>
                                    <asp:ImageButton ID="Image3" runat="server" ImageUrl="~/Images/icon-delete.gif" CommandName="delete" />
                                </itemtemplate>             
  </columns>
Posted
Updated 25-Sep-11 6:29am
v3
Comments
Parwej Ahamad 25-Sep-11 5:37am    
Post here your code part too (HTML & Event)
Shahriar Iqbal Chowdhury/Galib 25-Sep-11 16:46pm    
are you using same code for VB.NET and C#.NET?
Srinivas Kumar Pasumarthi 26-Sep-11 8:59am    
yes,the will works for c#.net perfectly

not working in vb.net

when click on events of gridview on properties window it will not writing on source code
manually iam writing events to gridview but still events r not raising

1 solution

Make sure you have set the Run at tag to server.
 
Share this answer
 

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