How to comment out server side code
<%-- <asp:Button . . . . /> --%>
Software engineering and business solutions blog featuring SaaS reviews, automation tools, and business insurance guides. Buyer-intent content designed to drive high-quality traffic and conversions.
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:
Comments (Atom)
What Happens to 401(k) When You Change Jobs
Understanding Your 401(k) Account Upon Job Change What is a 401(k) plan? A 401(k) plan is a workplace retirement savings account that al...
-
How to clear SharePoint People Picker suggestion cache If you have been SharePoint Site owner long enough, you would have definitely ...
-
Getting the following error (Figure 1): Server Error in '/' Application. ID4014: A SecurityTokenHandler is not registered to ...
-
The problem was that the remote connection needed to utilize Named Pipes, but in order to utilize Named Pipes both the machine hosting the i...