Yes, use panels.  They work well. 
 
It's hard to break the classic ASP mentality when posting forms.  But you will 
get the hang of it.
 
Something like this will work:
 
If Page.IsPostBack Then
   'The page is posting.  Validate & insert record
   'Set some sort of confirm.
   'Show your updated profile.
 
   'Hide the form panel.
   pnlPanel1.Visible = false
else
  'Page is loading but not posting.  Show the panel that holds the form & 
controls.
   pnlPanel1.Visible = True
End If
 
Mark

[EMAIL PROTECTED] wrote: 
I found some intersting information on the net about this problem. It seems 
there are tons of people and flaming of .net about it. So I guess that is 
why they are going to fix that in 2.0. Basically my page that I am working 
on has a JOIN FORM that submitted will add that record to the database and 
then display the profile. Doing this in one page would be okay but what is 
the way to show the form when the page is first displayed and then when it 
is posted back HIDE it and display the results instead? I have a few ideas 
but would be interested in others opinions on it.


The first time the page is loaded it would show this:
http://belchingtoadclan.gotdns.com/btcnet/JoinBTC.aspx

Then when submitted it would display this assuming the validation passed:
http://belchingtoadclan.gotdns.com/btcnet/ViewBTCMemberfromindex2.aspx?PlayingName=Belcherman[BTC]
This would be there new member page and that it was completed.

I have read about panels and literals etc............. I know a lot of you 
have already done all this with one page so I don't want to re invent the 
wheel. Any help would be appreciated.

P.S
It is my gaming clan that is 7 years old. If any of you play Half Life 2 
Counterstrike Source your welcome to join or play with us on servers.



Mike Belcher

Have a nice day.
----- Original Message ----- 
From: "Charles Carroll" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, January 10, 2005 4:01 PM
Subject: Re: [AspNetAnyQuestionIsOk] Form wil not submit.


>
> wilsonWebform is 10 x easier than response.redirect solution no need
> to loop through al form values and encode ete. plus ViewState makes it
> with WilsonWebForm.
>
>
> On Mon, 10 Jan 2005 15:50:17 -0500,
> [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
>>  I guess there are options such as:
>>
>>  1. Submitting to itself.
>>  IFisPostback then
>>     ..... process form
>>  Else
>>  ... first time display form.
>>  end if.
>>
>>  2. taking all the values and building a querystring and onto another 
>> page
>> to
>>  update with a respons.redirect.
>>
>>  Do these makes sense?
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
> 




---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 




[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to