473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How To : "Thank You" message

Hi all,

Ok - probably really obvious and something I'm clearly missing...but ...

I have a form with 3 areas for text to be entered, the form has some
validation controls, upon it being successfully completed, and submitted to
the server, the text is fired off to a stored procedure on our SQL Server -
I then want the WebForm to change (ie the text areas are gone) and a thank
you message to appear.

In old ASP - I'd have done this by using a hidden input tag, checking for
"submitted" or not etc, and then display the relevant HTML accordingly...

Any advice for doing this in ASP.Net (VB)...

Thanks for any help,

Regards

Rob
Nov 18 '05 #1
3 1301
Panels. Put the information into a panel. Wireup a click event to the
button. When the button is pressed and the information is successfully
validated and stored, you hide the panel that contains the form and you show
the panel that has the thank you (by changing the enabled and visible
properties).

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Rob Meade" <ro**********@NOSPAMubht.swest.nhs.uk> wrote in message
news:u1**************@TK2MSFTNGP09.phx.gbl...
Hi all,

Ok - probably really obvious and something I'm clearly missing...but ...

I have a form with 3 areas for text to be entered, the form has some
validation controls, upon it being successfully completed, and submitted to the server, the text is fired off to a stored procedure on our SQL Server - I then want the WebForm to change (ie the text areas are gone) and a thank
you message to appear.

In old ASP - I'd have done this by using a hidden input tag, checking for
"submitted" or not etc, and then display the relevant HTML accordingly...

Any advice for doing this in ASP.Net (VB)...

Thanks for any help,

Regards

Rob

Nov 18 '05 #2
"Mark Fitzpatrick" wrote...
Panels. Put the information into a panel. Wireup a click event to the
button. When the button is pressed and the information is successfully
validated and stored, you hide the panel that contains the form and you show the panel that has the thank you (by changing the enabled and visible
properties).


Hi Mark

Many thanks for your reply.

Because I'm 'new' to this I'm looking for the 'normal way' etc - is this
that? Having just spoken to a colleague here he suggested that using ASP
inline (with the HTML etc) and testing for the IsPostBack might achieve the
same thing (obviously I'll be then needing to duplicate some HTML also)...

Any further info appreciated.

I'm go see what I can find out about 'panels' - I've not heard of them
before etc..

Regards

Rob
Nov 18 '05 #3
"Mark Fitzpatrick" wrote...
Panels. Put the information into a panel. Wireup a click event to the
button. When the button is pressed and the information is successfully
validated and stored, you hide the panel that contains the form and you show the panel that has the thank you (by changing the enabled and visible
properties).


Thanks again Mark - I've just tried it and it works PERFECTLY - I know have
exactly what I wanted...

Minor issue that when I typed in the code for the panel etc Visual Studio
kindly uppercased all of my HTML tags within the panel tags...the bugger! :)

Regards

Rob
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Galsaba | last post by:
I am trying to find a script to a "dealer locator" or "find a store near you". I will have two tables. One will include all US and Canada ZIPs including lat and longtitudes. The other one is a...
8
by: RC | last post by:
In my Access 2002 form, I have a combo box and on the AfterUpdate event I use DoCmd.RunSQL ("UPDATE .... to update records in a table. When it starts to run I get a message "You are about to...
2
by: Don Leverton | last post by:
Hi Folks, I'm experiencing a problem that seems to be unique to running Access97 on Windows XP, and seems to be worse on WinXP SP2. It appears when I'm trying to import a text file. I'm...
4
by: nsj | last post by:
How shall i use quotation marks within another in asp.net?
9
by: Alexandra | last post by:
Not sure why none of these permutations are working. I appreciate a second set of eyes! .... <form id="form1" name="form1" > .... <input name="Submit1" type="submit" tabindex="10"...
6
by: Brian L. Troutwine | last post by:
The heading comment to pprint reads: # This is a simple little module I wrote to make life easier. I didn't # see anything quite like it in the library, though I may have overlooked # ...
6
Haitashi
by: Haitashi | last post by:
Users register on my page. It's a multi-page form. After my insert statement, I have the following code: if(!$insert){ die("There's little problem: ".mysql_error()); } echo "Thank you for...
1
by: yuva | last post by:
"Thank you for this amazing program. Within a weekend, my team increased with 50 new people joining. Every time I logged on there was a new affiliate. Absolutely amazing. " S. Horvath SOUTH AFRICA...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.