Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 7th, 2005, 01:13 AM
Authorized User
 
Join Date: Aug 2004
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to show a button when save is done

Hi,
i have a form that when the user finish,he clicks save and then a message is shown to say"data is saved".
how can i add a button that says to close the window click here after the save button is clicked that comes with the message?

 
Old May 7th, 2005, 03:45 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can add the html input tag with the message and set the text of the literal control

Eg:
litMsg.Text = "data is saved, Now you can close the window " + "<input type='button' value='close' onclick='javascript:window.close();' >"


 
Old May 7th, 2005, 10:53 PM
Authorized User
 
Join Date: Aug 2004
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Prashant.K.M,
thanks for your reply ,but when i wrote the suggested solution as following in my code behind page:
 Label1.Text = "Your Data Is Saved" + "<input type='button' value='close' onclick='javascript:window.close();' >"


it show me "data is saved"only without the button.is there something wrong with the code or should i write it in another way?

 
Old May 8th, 2005, 01:26 AM
Authorized User
 
Join Date: Aug 2004
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i had this working after debugging the project,but how to make the save button hidden or not shown when the message appears?

 
Old May 9th, 2005, 12:49 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can directly set the "btnSubmit.visible=false;"








Similar Threads
Thread Thread Starter Forum Replies Last Post
Save button riaz Java GUI 1 April 16th, 2007 11:44 PM
How to show a button have hidden property ??? nobitavn94 ASP.NET 1.0 and 1.1 Basics 2 November 19th, 2006 09:39 AM
show element button stekker XSLT 1 July 23rd, 2006 05:19 PM
Quiz how to show button IF they get 70% or more? edkeyte Javascript How-To 4 January 22nd, 2004 08:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.