473,418 Members | 2,119 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,418 software developers and data experts.

.Net Validation within Modal Dialog Box possible???

Can a Modal Dialog Box do forms ASP.NET forms validation from within the
Modal Box? I want to pop up a dialog box to the user and have it do its own
post backs with validation checking and then save the data and close the
dialog when the page is valid. I have read a little about using Iframes to
post back to, but was wondering if this would work for what I am trying to
do? Also, does anyone have a code sample of this (postback from modal dialog
box) in action or articles on doing this?

Thank you for you help

Earl
Nov 18 '05 #1
3 2855
Earl,

Instead of using a modal dialog box I think you'll need to use a full blown
window.

A modal dialog won't allow you to run page code inside of it. But you can
pop up a new window, using javascript, and set that new window's parameters
so that it won't show the adress bar or menus, etc. That way it will look
just like a modal dialog and you'll be able to run a full .aspx page inside
of it.

Then you can save any data input into the dialog window on post back and
refresh the parent window when it closes in order to update anything inside
of your main window based on the dialog window.

I have to pieces of code on my web site: www.aboutfortunate.com which may
help you out. They are free.

The first is a javascript object I made. You can download the entire .Net
project by clicking on the "Code Library" link in the upper right of my
site's home page and then click on the "Javascript" button in the menu on
the left. It contains code for inserting a popup window based on a button or
link button click (or various other .net objects). Even if you don't want to
use the entire object you'll be able to use the source code to create your
own.

The second bit of code is in the code library itself. Click the "Code
Library" link in the upper right and then use the search box to search for:
"Close a popup window and refresh the parent window" and you'll have the
other bit of code you'll need.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Earl Teigrob" <ea******@hotmail.com> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
Can a Modal Dialog Box do forms ASP.NET forms validation from within the
Modal Box? I want to pop up a dialog box to the user and have it do its own post backs with validation checking and then save the data and close the
dialog when the page is valid. I have read a little about using Iframes to
post back to, but was wondering if this would work for what I am trying to
do? Also, does anyone have a code sample of this (postback from modal dialog box) in action or articles on doing this?

Thank you for you help

Earl

Nov 18 '05 #2
Thank you, Justin,

This is a big help and keeps me from barking up the wrong tree. I will
explore you code over the next few days. Thank you for the assistance.

Earl

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:10*************@corp.supernews.com...
Earl,

Instead of using a modal dialog box I think you'll need to use a full blown window.

A modal dialog won't allow you to run page code inside of it. But you can
pop up a new window, using javascript, and set that new window's parameters so that it won't show the adress bar or menus, etc. That way it will look
just like a modal dialog and you'll be able to run a full .aspx page inside of it.

Then you can save any data input into the dialog window on post back and
refresh the parent window when it closes in order to update anything inside of your main window based on the dialog window.

I have to pieces of code on my web site: www.aboutfortunate.com which may
help you out. They are free.

The first is a javascript object I made. You can download the entire .Net
project by clicking on the "Code Library" link in the upper right of my
site's home page and then click on the "Javascript" button in the menu on
the left. It contains code for inserting a popup window based on a button or link button click (or various other .net objects). Even if you don't want to use the entire object you'll be able to use the source code to create your
own.

The second bit of code is in the code library itself. Click the "Code
Library" link in the upper right and then use the search box to search for: "Close a popup window and refresh the parent window" and you'll have the
other bit of code you'll need.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Earl Teigrob" <ea******@hotmail.com> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
Can a Modal Dialog Box do forms ASP.NET forms validation from within the
Modal Box? I want to pop up a dialog box to the user and have it do its

own
post backs with validation checking and then save the data and close the
dialog when the page is valid. I have read a little about using Iframes to post back to, but was wondering if this would work for what I am trying to do? Also, does anyone have a code sample of this (postback from modal

dialog
box) in action or articles on doing this?

Thank you for you help

Earl


Nov 18 '05 #3
Earl,

No problem. If you have any questions or run into any problems let me know.
I'd be happy to help out in any way I can.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Earl Teigrob" <ea******@hotmail.com> wrote in message
news:uw**************@TK2MSFTNGP09.phx.gbl...
Thank you, Justin,

This is a big help and keeps me from barking up the wrong tree. I will
explore you code over the next few days. Thank you for the assistance.

Earl

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:10*************@corp.supernews.com...
Earl,

Instead of using a modal dialog box I think you'll need to use a full blown
window.

A modal dialog won't allow you to run page code inside of it. But you can
pop up a new window, using javascript, and set that new window's

parameters
so that it won't show the adress bar or menus, etc. That way it will look just like a modal dialog and you'll be able to run a full .aspx page

inside
of it.

Then you can save any data input into the dialog window on post back and
refresh the parent window when it closes in order to update anything

inside
of your main window based on the dialog window.

I have to pieces of code on my web site: www.aboutfortunate.com which may help you out. They are free.

The first is a javascript object I made. You can download the entire ..Net project by clicking on the "Code Library" link in the upper right of my
site's home page and then click on the "Javascript" button in the menu on the left. It contains code for inserting a popup window based on a button or
link button click (or various other .net objects). Even if you don't
want to
use the entire object you'll be able to use the source code to create
your own.

The second bit of code is in the code library itself. Click the "Code
Library" link in the upper right and then use the search box to search

for:
"Close a popup window and refresh the parent window" and you'll have the
other bit of code you'll need.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Earl Teigrob" <ea******@hotmail.com> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
Can a Modal Dialog Box do forms ASP.NET forms validation from within the Modal Box? I want to pop up a dialog box to the user and have it do its
own
post backs with validation checking and then save the data and close

the dialog when the page is valid. I have read a little about using

Iframes to post back to, but was wondering if this would work for what I am
trying
to do? Also, does anyone have a code sample of this (postback from modal

dialog
box) in action or articles on doing this?

Thank you for you help

Earl



Nov 18 '05 #4

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

Similar topics

3
by: Andrew Baker | last post by:
OK this has me perplexed, puzzled and bamboozled! I have a remoting service which I displayed a message box in. I then wondered what would happen if a client made a call to the service while the...
4
by: usl2222 | last post by:
Hi folks, I appreciate any assistance in the following problem: I have a form with a bunch of dynamic controls on it. All the controls are dynamically generated on a server, including all...
3
by: Earl Teigrob | last post by:
Can a Modal Dialog Box do forms ASP.NET forms validation from within the Modal Box? I want to pop up a dialog box to the user and have it do its own post backs with validation checking and then...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
4
by: forest demon | last post by:
i've seen previous posts somewhat related to this, so i apologize if this is redundant. I have a main form with separate threads. When showing a dialog like <dialog>.ShowDialog(), it functions...
10
by: bern11 | last post by:
If Form1 opens Form2 modally, how do I capture clicks on Form1 when Form2 is open? I want to click on Form1 and read the mouse co-ordinates into Form2. Since Form2 is open modally, Form1...
4
by: Johnny Jörgensen | last post by:
In my current project I've got some DataGridViews containing multiple hidden columns. For some reason 8 of the 10 grids I've got on my form has suddenly started showing 1 of the hidden columns...
2
by: diogenes | last post by:
I have created many shortcut/popup (aka context, or right-click) menus for my application - instead of toolbars or standard drop-down menus. Within my custom menu, I am using...
4
by: fran_j_diaz | last post by:
Hi, I have a page with an Ajax modal popup. I would like to know when my Modal popup is opened, my page still able to modify. Is it possible ? (I use Visual Studio 2005, c# )
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.