M
Maziar Aflatoun
Hi,
I have two sections on one .aspx page. One is a datagrid which lists the
current users allowing you to edit them as well and on the bottom of my page
I have 'Add a new user' section with two textboxes (Username and password).
I know how to apply asp:requiredfieldvalidator to my textboxes for both the
datagrid and the insert new user section. Now, how do I distinguish between
the two? since sometimes you click update to update the datagrid and
sometimes you click on insert new to add a new user and using for ex.
if (!Page.IsValid)
{
lblMsg.Text = "* = Required Field";
}
checks the all the textboxes.
Thank you
Maz.
I have two sections on one .aspx page. One is a datagrid which lists the
current users allowing you to edit them as well and on the bottom of my page
I have 'Add a new user' section with two textboxes (Username and password).
I know how to apply asp:requiredfieldvalidator to my textboxes for both the
datagrid and the insert new user section. Now, how do I distinguish between
the two? since sometimes you click update to update the datagrid and
sometimes you click on insert new to add a new user and using for ex.
if (!Page.IsValid)
{
lblMsg.Text = "* = Required Field";
}
checks the all the textboxes.
Thank you
Maz.