Hi guys.
I want to implement a customized user webcontrol (.ascx). Inside this
control I have a dropdownlist and a button. when user click the button, it
will open a pop up window(not Ajax popup window). The popup window will
display a datagrid. The user can select one or more items from the datagrid.
Then when they close the pop-up window, the system will add user's selection
into the dropdownlist inside the parent page.
How can I achieve this effectively? Is there any example about this?
Thanks a lot
Cheers
Victor 3 2195
On Jul 11, 11:26 am, "Victor" <vic...@noemail .noemailwrote:
Hi guys.
I want to implement a customized user webcontrol (.ascx). Inside this
control I have a dropdownlist and a button. when user click the button, it
will open a pop up window(not Ajax popup window). The popup window will
display a datagrid. The user can select one or more items from the datagrid.
Then when they close the pop-up window, the system will add user's selection
into the dropdownlist inside the parent page.
How can I achieve this effectively? Is there any example about this?
Thanks a lot
Cheers
Victor
Hi....
If i am not wrong you want a simple LOV (list of value) selection
mechanism just like oracle developer ...
well you can display a modal dialog using
window.showmoda ldialog()...... ... and refer a aspx page... in the
modaldialog parameter.... and when the user select any item... keep
that item in session and when the user close the popup.. submit the
parent page and then grap the value from session and add it to your
dropdown list..
"But Note" showmodaldialog is not all browser supported...
In that case you can use jquery type javascript framework to show your
modal dialog.....
Thanks
Md. Masudur Rahman (Munna)
kaz Software Ltd. www.kaz.com.bd http://munnacs.110mb.com
Hi Victor,
From your description, what you want to do is let two ASP.NET web page
communicate with each other through dialog window(as opener, child
relationship) correct?
I think you can implement the child page be opened as a modal dialog so as
to force the user choose an operation(save or cancel) to return to parent
page(opener page). Here are some web resource about use modal dialog and
pass values between opener page and dialog page:
#Modal and Modeless Dialog Boxes http://www.webreference.com/js/column90/
#Simulating a Cross-Browser Modal Dialog Window http://book.chinaz.com/JSP/JavaScrip..._jvdhtmlckbk-c
hp-6-sect-10.html http://www.webdeveloper.com/forum/ar...p/t-25204.html
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Victor,
Have you got any progress on this issue or does the information in previous
messages help you some? If there is any further question on this, please
feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim Mitchell |
last post by:
I saw several posts asking for popups from web controls. The standard
answer is that once rendered, the server no longer has control. I had some
success with the following and I was curious if I have broken any rules.
Add this line to the load_page event....
Response.Write("<script language=javascript>function CallSub(passed_value)
{temp=showModalDialog('http://www.cnn.com?PVAL' + passed_value)}</script>")
In your datagrid, set the...
|
by: Shaun McKinnon |
last post by:
HI...Here's my problem...I have a popup window that loads when i want it to,
but it's not sized properly. I've set the size, but it doesn't seem to
work. I've been on 8 different websites to find out what i'm doing wrong,
and so far it seems i'm doing it the right way. Here's my code...any
suggestions would be appreciated.
<script language="javascript">
<!--
window.open("256fx/index.htm", "", "height=400, width=600");
//-->
|
by: Kevin Lam |
last post by:
Hi all,
I am writing an application which requires using a popup windows to
edit the detail of a record.
The popup windows is created by it's parent which shows the detail of
the record, which also has a button to delete the record.
My question is that, how do I make the popup to stay on top of the
parent all the time (to make sure, the record is not deleted when I am
|
by: ypress |
last post by:
Hi.
I have a page that contains this simple function:
<script language="javascript">
function openPop(url, name, w, h) {
var features = "";
features += "scrollbars=no,";
features += "menubar=no,";
features += "resizable=no,";
|
by: Nadav |
last post by:
Hi,
I am new to WebControls, I have created a WebControl that is used to present
an image, the image bing presented is created on runtime, each client side
button click causes the image to change, this require to prevent this image
from being cached, I have tried to play around with:
Context.Response.AddHeader("Cache-Control", ... )
and with
Context.Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache)
BUT Still, the...
| |
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. ...
|
by: jojobar |
last post by:
Hello,
I am trying to use vs.net 2005 to migrate a project originally in vs.net
2003. I started with creation of a "web site", and then created folders for
each component of the site.
I read somewhere that each folder under the "web site" is compiled in
separate assembly. I however, did not find that the "web site" creation in
vs.net 2005 created any AssemblyInfo.cs file.
|
by: qqq |
last post by:
Ok, what's wrong with this picture? I have a simple webform with a single
textbox webcontrol and a single webcontrol button. When the form is
displayed, I manually type some new text into the textbox. Why aren't my
updates detected in the button's code?!
Thanks, Paul.
-------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
|
by: Jonathan Wood |
last post by:
I could really use some help on this.
First of all, I want to create a Web control where I render the control
completely from scratch based on information from a database.
In the book "Beginning ASP.NET 2.0 in C# 2005", it provides an example of
doing this, which is declared as:
public class ConfigurableRepeater : WebControl.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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...
|
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |