A
adrianca
Hi All,
Is there any way to execute a page object function without
going to the code behind.
Eg:
<asp:Button ID="Button1" runat="server" Text="Save Page"
OnClick="<%SQLDataSource1.Insert()%>" />
instead of
<asp:Button ID="Button1" runat="server" Text="Save Page"
OnClick="Button1_Click" />
protected void Button1_Click(object sender, EventArgs e)
{
SQLDataSource1.Insert();
}
Is there any eval metheod <%# % > <%$ % > etc.. to run the method in
the page.
thanks
slyi
Is there any way to execute a page object function without
going to the code behind.
Eg:
<asp:Button ID="Button1" runat="server" Text="Save Page"
OnClick="<%SQLDataSource1.Insert()%>" />
instead of
<asp:Button ID="Button1" runat="server" Text="Save Page"
OnClick="Button1_Click" />
protected void Button1_Click(object sender, EventArgs e)
{
SQLDataSource1.Insert();
}
Is there any eval metheod <%# % > <%$ % > etc.. to run the method in
the page.
thanks
slyi