How to comment out server side code
<%-- <asp:Button . . . . /> --%>
This blog is about my history as a software engineer utilizing technologies C#, Java, React, JavaScript, .NET Core, SQL Server , Oracle, GIT, GitHub, Jira, Azure, AWS and HTML5. “I have not failed. I've just found 10,000 ways that won't work.” Thomas A. Edison. Please click on all my ADVERTISING links to help support this blog. Thank you.
Thursday, October 20, 2005
Friday, October 07, 2005
Custom Validation
Today I created my first custom validation:
public void TextFilled(object sender, ServerValidateEventArgs e)
{
int counter = 0;
if(DropDownList_Awards.SelectedValue.ToString() == "4" && AwardDesc.Text == "")
{
counter++;
}
e.IsValid = (counter == 0) ? true : false;
}
Hower, I made a bad error: DUH!!!!
on the Button Click event add
if (Page.IsValid)
{
}
public void TextFilled(object sender, ServerValidateEventArgs e)
{
int counter = 0;
if(DropDownList_Awards.SelectedValue.ToString() == "4" && AwardDesc.Text == "")
{
counter++;
}
e.IsValid = (counter == 0) ? true : false;
}
Hower, I made a bad error: DUH!!!!
on the Button Click event add
if (Page.IsValid)
{
}
Subscribe to:
Posts (Atom)