473,770 Members | 5,880 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open a window using Window.ShowModa lDialog

Hello

I want to open a window using Window.showModa lDialog once i click
inside of a TextBox.And that window need to come just under the
TextBox,so that it seems to a same control.

So,what will be its code in javascript?

Thanks in Advance.

Dibakar

Nov 12 '06 #1
3 4547
dibakar wrote:
Hello

I want to open a window using Window.showModa lDialog once i click
inside of a TextBox.And that window need to come just under the
TextBox,so that it seems to a same control.

So,what will be its code in javascript?

Sounds really offtopic for me
Nov 12 '06 #2
dibakar,
This is really a Javascript - HTML DOM question and doesn't appear to have
any relation to C#, which is what this newsgroup covers.
ShowModalDialog is Internet Explorer specific, and has the same set of
"switches" that window.open has - for showing status, toolbar, widow size and
position.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"dibakar" wrote:
Hello

I want to open a window using Window.showModa lDialog once i click
inside of a TextBox.And that window need to come just under the
TextBox,so that it seems to a same control.

So,what will be its code in javascript?

Thanks in Advance.

Dibakar

Nov 12 '06 #3
dibakar,

Be aware that I translated this here in the message from VBNet to C# so
watch errors.

string str;
if (!IsPostBack)
{
TextBox1.ForeCo lor = Color.White;
TextBox1.Border Style = BorderStyle.Non e;
string alertScript =
@"<script
language=JavaSc ript>document.a ll.item('TextBo x1').value +
@" = prompt('Give me text','My name is nobody'); </script>";
RegisterStartup Script("Startup ", alertScript);
}
else
{str = TextBox1.Text;}
}

I hope this helps,

Cor

Nov 13 '06 #4

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

Similar topics

1
3353
by: Matt | last post by:
My problem is when the user click the submit button, it will launch another new window for the request page. I want to confirm we cannot use JavaScript open window functions to open a request page? The following page2.asp won't output the value entered in page1.asp. However, if we do <form action="page2.asp" method="get" target="_blank">, then it will open a new window for the request page, instead of using the same window as page1.asp....
6
6986
by: VK | last post by:
I'm using window.open method in my script to open poup window. Recently Internet Explorer users reported that the script crashes on their machine with different runtime errors. See the bug: <http://support.microsoft.com/default.aspx?scid=kb;en-us;888021> The statement like myPopup = window.open(args); gives you runtime error and halts the script execution *if a 3rd party
2
3060
by: Chris | last post by:
I know this is a dead horse I'm beating but why is it so impossible to ask for functionality in the HTML tag to open a window/page more controllable? why is: <a href="somepage.aspx?value1=xyz" target="_blank">click here</a> can't be: <a href="somepage.aspx?value1=xyz" pagewidth="500px or %" page height="500px or %" target="_blank">click here</a> then what about in the code behind using: response.redirect("somepage.aspx?value1=xyz",...
2
6701
by: RJN | last post by:
Hi Is it possible to a server.transfer and open the page in a new window? I need to pass values between forms and hence using server.transfer. I do not want to use query string for passing values. Regards Rjn
1
1648
by: Steven | last post by:
I have an arraylist and I want to display all the values in the arraylist in a new window (asp.net page) using a datalist. The new window should be like a small popup window. How can I do this? Regards -- Steven
9
2863
by: loga123 | last post by:
I am using asp .net 2.0. I have a hyperlink asp control on my web page page1.aspx. On clicking this hyper;link, I would like to open page2.aspx (which is in the same web application) in a new IE window without scrollbars, status bar, tool bar and with specified height and width. Can it be done on "onload" event of the page2.aspx in javascript?
2
2985
by: Luqman | last post by:
How can I open another WebForm in ASP.Net / VS 2005 without closing the Current Webform. I tried using Server.Transfer("Form2.Aspx",True) on Button_Click of Form1 but it close the current web form and opened the form2, and when I click on the button on form2 which had Server.Transfer("Form1.Aspx"), the form1 initialized and all the values of form1 controls set to blank, any idea please ? My Form1 has some textboxes and a search...
1
4499
by: Ramachand | last post by:
Actually I have to call a dialog window "Dwin1" from a Parent Window. From Dwin1, I have to call another Dialog Window "Dwin2".if user close the Dialog Window "Dwin2", i have to refersh the Dwin1. If user close Dwin1, i have to refresh the Parent Window. For opening a Dwin1 , should not be a problem.but if i open the another dialog Dwin2 from Dwin1, it's opening like a seperate window Dwin1 . From there it's opening the Dialog Open Dwin1...
0
9432
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10008
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
9873
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 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...
0
8891
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...
1
7420
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 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...
0
5313
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
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3974
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 we have to send another system
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.