S
sck10
Hello,
Is there an equivalent to using "Handles" in the codebehind for c#? Or do I
have to declare every event in the GridView control like the following:
<asp:GridView ID="gvSearchList" runat="server"
DataSourceID="dsSearchList"
DataKeyNames="ServiceIdea_ID"
OnSelectedIndexChanged="gvSearchList_SelectedIndexChanged">
VB
=======
Protected Sub gvSearchList_SelectedIndexChanged(ByVal sender As Object,
ByVal e As EventArgs) Handles gvSearchList.SelectedIndexChanged
Me.fvServiceIdea.ChangeMode(FormViewMode.ReadOnly)
End Sub
C#
=======
protected void gvSearchList_SelectedIndexChanged(object sender, EventArgs e)
{
this.fvServiceIdea.ChangeMode(FormViewMode.ReadOnly);
}
Is there an equivalent to using "Handles" in the codebehind for c#? Or do I
have to declare every event in the GridView control like the following:
<asp:GridView ID="gvSearchList" runat="server"
DataSourceID="dsSearchList"
DataKeyNames="ServiceIdea_ID"
OnSelectedIndexChanged="gvSearchList_SelectedIndexChanged">
VB
=======
Protected Sub gvSearchList_SelectedIndexChanged(ByVal sender As Object,
ByVal e As EventArgs) Handles gvSearchList.SelectedIndexChanged
Me.fvServiceIdea.ChangeMode(FormViewMode.ReadOnly)
End Sub
C#
=======
protected void gvSearchList_SelectedIndexChanged(object sender, EventArgs e)
{
this.fvServiceIdea.ChangeMode(FormViewMode.ReadOnly);
}