validationSummary controls

  • Thread starter Thread starter NuB
  • Start date Start date
Put ur Grid and textboxes in panel and hide the pane on page_load event.

SC
 
I tried that and the grid would still show if Page.isValid = false

I had in my page load

if (page.isvalid = true)
{
panelgrid.visible = true;
}
else if (Page.IsValid = false)
{
panelgrid.visible = false;
}

am i missing something or is this wrong?
 
I had in my page load

if (page.isvalid = true)

Aren't you getting any compiler warnings?

Page.IsValid = true sets IsValid to true.

Page.IsValid == true compares IsValid to true and returns true or
false.
 
no, i can compile and run it but my grid will not be set to visible=false if
the page fails validation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top