PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

How to: Control "PostBack" when reloading same ASP.NET web form?

 
 
=?Utf-8?B?Y2hhcmxpZXdlc3Q=?=
Guest
Posts: n/a
 
      16th Feb 2005
I have a created an ASP.NET web form and custom control that generate test
questions. When the user successfully answers a question, the same ASP.NET
(and subsequently custom control) load itself again, posting a new question.

The problem is, when the new questions and controls are loaded, the new
questions and controls render already "validated" - this is to say, with the
red validation text telling the user the certain fields are required. (This
behavior should occur when the user attempts to submit a form that is not
properly completed.)

How can i get around this? Or more precisely, when using the same ASP.NET
page, how to i tell the web form when it IsPostBack is true or false? (If
this has anything to do w/ it!)

Thanks,
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Y2hhcmxpZXdlc3Q=?=
Guest
Posts: n/a
 
      16th Feb 2005
fyi: i was able to find an answer to the behavior i was inquiring about:
http://www.groupsrv.com/dotnet/ntopic102412.html


"charliewest" wrote:

> I have a created an ASP.NET web form and custom control that generate test
> questions. When the user successfully answers a question, the same ASP.NET
> (and subsequently custom control) load itself again, posting a new question.
>
> The problem is, when the new questions and controls are loaded, the new
> questions and controls render already "validated" - this is to say, with the
> red validation text telling the user the certain fields are required. (This
> behavior should occur when the user attempts to submit a form that is not
> properly completed.)
>
> How can i get around this? Or more precisely, when using the same ASP.NET
> page, how to i tell the web form when it IsPostBack is true or false? (If
> this has anything to do w/ it!)
>
> Thanks,

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Receiving "Invalid character" error on page when control attempts postback after upg to VS 2005 DCC700 Microsoft ASP .NET 1 14th Dec 2006 08:17 PM
Loading Dynamic User Control Error: "The control must be placed inside a form tag with runat=server" Help Please Second time posting. davidr@sharpesoft.com Microsoft ASP .NET 0 31st Aug 2006 06:26 PM
Hide "Record" "Closed Caption" "Parental Control" indicators while in full screen Jordan ATI Video Cards 0 18th Feb 2005 05:21 PM
Compile errors when using form control's "Control Source" property to refer to the control's value Yarik Mezheritskiy Microsoft Access Form Coding 3 5th Nov 2004 01:56 AM
<FORM METHOD="post" onSubmit="return fieldcheck()" name="orientation" action="http://ws-kitty.BU.edu/AT/survey/orientation/script/write.asp" language="JavaScript"> Joeyej Microsoft ASP .NET 0 4th Jun 2004 08:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:49 AM.