473,466 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

codebehind and modal aspx

All,

I would like to display a webform modally from the codebehind of another
webform is this possible and how?

Thanks
Msuk
Nov 18 '05 #1
4 1108
Yes, with a javascript call showModalDialog.

Eliyahu

"msuk" <ms**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
All,

I would like to display a webform modally from the codebehind of another
webform is this possible and how?

Thanks
Msuk

Nov 18 '05 #2
Hi,

Do you have an example of how I can do this from the codebehind?

Thanks
Msuk

"Eliyahu Goldin" wrote:
Yes, with a javascript call showModalDialog.

Eliyahu

"msuk" <ms**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
All,

I would like to display a webform modally from the codebehind of another
webform is this possible and how?

Thanks
Msuk


Nov 18 '05 #3
Usually you don't need to postback to server and call another form from
codebehind. Much better solution is to do it on client side, for example in
an onclick event handler.

Eliyahu

"msuk" <ms**@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
Hi,

Do you have an example of how I can do this from the codebehind?

Thanks
Msuk

"Eliyahu Goldin" wrote:
Yes, with a javascript call showModalDialog.

Eliyahu

"msuk" <ms**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
All,

I would like to display a webform modally from the codebehind of another webform is this possible and how?

Thanks
Msuk


Nov 18 '05 #4
not anymore. popup blockers prevent this. you need to design such that the
user opens the dialog box from a button click on the client side.

-- bruce (sqlwork.com)
"msuk" <ms**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
| All,
|
| I would like to display a webform modally from the codebehind of another
| webform is this possible and how?
|
| Thanks
| Msuk
Nov 18 '05 #5

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

Similar topics

12
by: A.M | last post by:
Hi, Using VS.NET 2003, If i use SRC page attribute instead of CodeBehind, do i still have intelisence and generally IDE support for that? Thanks, Ali
12
by: Karl Hungus | last post by:
If I use a code behind class for an aspx page, what is the best way to get data from the codebehind class into my aspx page? I know about databinding, but is there a more basic way of just...
3
by: jm | last post by:
I have a question about codebehind. I have an upload namespace, class and all in a codebehind. I currently have it so it works with one of my .aspx pages. I want to use it for another .aspx...
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...
1
by: wendy | last post by:
I have got a problem while using the modal dialogs. In my code I need to open a modal dialog from the parent page and I need to enter some values in the dialog and save it. It takes the values...
1
by: Randall Parker | last post by:
Using VS 2003 and Cassini web server. I'm new to ASP.Net and so this may be a dumb question. I'm getting an error where the type 'FarmLand.WebForm1' is not found. The Codebehind C# source file...
2
by: sthrudel | last post by:
Hi! I'm working on a web application in Asp.net and what I would like to have is a cross borwser modal dialog which accepts user's input. I would like to catch what the user clicked on the...
0
by: xeroxero | last post by:
I am attempting to create a modal pop-up completely in a class that all my .aspx.cs pages inherit from, so any can call DoMyModal() and the yes/no result can be trapped by server-side code. Are...
6
by: WT | last post by:
Hello, I am searching for a way to generate automatically from codebehind the <!Doctype....for asp.net pages using .net 3.5 c# and vs2008. Subidiary question: if I do a server transfert in my...
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
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
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
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.