H
Howard
I use FormView and ObjectDataSource to take user inputs
in adduser.aspx page i have
<asp:ObjectDataSource ID="ds1" runat="server" TypeName="datapage"
InsertMethod="addstudent">
and in my app_code foler i have a method that looks like
public static void addstudent(...)
{
try
{
//do sql queries
catch(Exception e)
{
//return error message
}
}
this works fine when the inputs get inserted to the database, i call the
event OnItemInserted
My questions is how would i get the error message back to the aspx page?
Thanks,
Howard
in adduser.aspx page i have
<asp:ObjectDataSource ID="ds1" runat="server" TypeName="datapage"
InsertMethod="addstudent">
and in my app_code foler i have a method that looks like
public static void addstudent(...)
{
try
{
//do sql queries
catch(Exception e)
{
//return error message
}
}
this works fine when the inputs get inserted to the database, i call the
event OnItemInserted
My questions is how would i get the error message back to the aspx page?
Thanks,
Howard