473,769 Members | 3,084 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to close asp.net web page with out effect of validations

(Type your message here)
hi,
i am using save & cancel webform button my webpage to with somevalidations , when i am trying to save my content it is savedthat time i need a popup msg like ur 'data is saved' , and wheni am trying to click on cancel the page should terminate witheffecting of validations .
and how to open a modal dialog page through vbscript
--------------------------------
From: anil kumar

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>G8hwIbGuu EW//FOTh7Gs0Q==</Id>
Nov 19 '05 #1
2 3309
I think you're asking how do you disable the validation controls for the
Cancel button? You can mark the <asp:Button CausesValidatio n=false>. When
the button is clicked, no validation will happen.

As for a popup window, you can use javascript and call window.open. Docs
here:

http://www.mozilla.org/docs/dom/domr...dow_ref76.html

-Brock
DevelopMentor
http://staff.develop.com/ballen
(Type your message here)
hi,
i am using save & cancel webform button my webpage to with some
validations , when i am trying to save my content it is saved
that time i need a popup msg like ur 'data is saved' , and when
i am trying to click on cancel the page should terminate with
effecting of validations .
and how to open a modal dialog page through vbscript
--------------------------------
From: anil kumar
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>G8hwIbGuu EW//FOTh7Gs0Q==</Id>


Nov 19 '05 #2
create an html button on your form like follows:
<BUTTON type="button" onclick="window .close;">Cancel </BUTTON>
just to close a pop up window, or if it is not a popup window and you want
it to redirect use the following
<BUTTON type="button"
onclick="window .location("some page.aspx");">C ancel</BUTTON>

using modal dilog boxes is rather tricky in aspx. Modal dialog boxes only
return data to the calling parent window, so you cannot have a regular aspx
page inside a modal form (because when you click submit, it will not post
your data). the only way araound this is to have a modal dialog form that
contains a page with just an empty iframe, and in the ifram you specify the
source as your form you are trying to submit data with. But using the modal
dilaog box, you need client side script to close the parent window, since
the form you are working in is not the window itself, rather a child window
inside an iframe from the parent window.

here is a link for modal dialog boxes
http://msdn.microsoft.com/library/de...odaldialog.asp

"anil kumar via .NET 247" <an*******@dotn et247.com> wrote in message
news:Oe******** ********@TK2MSF TNGP10.phx.gbl. ..
(Type your message here)
hi,
i am using save & cancel webform button my webpage to with some validations
, when i am trying to save my content it is saved that time i need a popup
msg like ur 'data is saved' , and when i am trying to click on cancel the
page should terminate with effecting of validations .
and how to open a modal dialog page through vbscript
--------------------------------
From: anil kumar

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>G8hwIbGuu EW//FOTh7Gs0Q==</Id>
Nov 19 '05 #3

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

Similar topics

6
2619
by: Mr. B | last post by:
VB.net 2003 (standard) In my application, within FORM1_LOAD, I check for various things (ie valide user names, files, etc.). What I want to do is upon an event such as "No Valide User Name Found" to pop up a warning message about the event and then close the application. I can do everything I want with the exception of a clean shut down during the Form1_Load.
0
1557
by: Niks | last post by:
Hi, I am creating a simple .aspx page to add some fields with validation. I have used different .NET validations like REquiredFieldValidator, RegularExpressionValidator and showed the summary in the bulleted list on top. I have 3 text boxes, and two RadioButtonList. and 3 buttons. One for Submit, Reset and Exit. If submit is pressed page should be validated and submit (insert into
3
2603
by: Arun K | last post by:
Hi, I am creating a simple .aspx page to add some fields with validation. I have used different .NET validations like REquiredFieldValidator, RegularExpressionValidator and showed the summary in the bulleted list on top. I have 3 text boxes, and two RadioButtonList. and 3 buttons. One for Submit, Reset and Exit. If submit is pressed page should be validated and submit (insert into
1
1559
by: Murat YILMAZ | last post by:
Hi all, I have develop a web page and there are 4 textbox on it. I have put 4 validation for these. Issue is that If I have request this page and submit form validations are not working. But I have put other computer then try again. It is working... I have look source from "view source" selection. And I see what On the my computer was not load some thing to button on click. But other computer was load.
1
751
by: anil kumar via .NET 247 | last post by:
(Type your message here) hi, i am using save & cancel webform buttons in my webpage to withsome validations , when i am trying to save my content it issaved that time i need a popup msg like ur 'data is saved' , andwhen i am trying to click on cancel the page should terminatewith out effecting of validations . and how to open a modal dialog page through vbscript -------------------------------- From: anil kumar -----------------------...
1
2905
by: panche | last post by:
I'm developing a fairly simple user control that has two textboxes for date/time entry (a from date/time and a to date/time). One of my requirements is that there should be no button that sets these values (i.e., no button to cause a postback). The problem I'm having is that I need a number of validations to be performed on the data entry, but I don't know how to do this without having the user control/page posted back to the server. ...
6
6524
by: planetthoughtful | last post by:
Hi All, I have a C# ASP.NET page that submits back to itself to insert details from a form into a database table. When / if the user refreshes the page (and gets the standard warning that POST data will be resubmitted), the previously submitted record is sumbitted again, and a duplicate record is inserted into the table. In PHP I would have avoided this by submitting the form to a processing page, which would then automatically...
1
2290
by: Gaetan | last post by:
I'm doing a prrof of concept to develop an application to run under WinPE. The application will use WinHTTP to send requests to an ASPX file running IIS 6.0 My problem is that I do not know how to prevent IIS from returning the HTTP code of the ASPX page. The client side use something like this to initiate the request: set obj1 = createobject("WinHttp.WinHttpRequest.5.1") obj1.SetProxy HTTPREQUEST_PROXYSETTING_DIRECT obj1.Open "GET",...
13
5515
by: petcancervet | last post by:
I am writing a PHP/MySQL web-page based system on Firefox and wish to run a separate page from an <Alink to run a separate PHP script, then close that page. Firefox starts a new tab for this and it closes OK but I am then left with an egg-timer at the mouse arrow when over top or bottom toolbars areas of the parent page. I am using <BODY onLoad='Javascript:close()'to fire the tab closure. I have tried opener.focus() with no effect. I...
0
10208
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10038
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8867
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.