validationSummary controls

N

NuB

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?
 
S

Scott Allen

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.
 
N

NuB

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top