I would like to return error message in a pop up window. Window.open
would be great, but it can only be associated to the onclick event of
the button: button.Attribut es.Add("onclick ",...
Any ideas?
I thought of creating a invisible button on the form, pressing it
programmaticall y, and hopefully this will fire the event above.
Any other ideas?
Thanks 4 2294
In Javascript you can use this script :
<script language="javas cript">
window.open('er ror.aspx', 'error', '....');
</script>
whene browser parse this script popup is opened!
if you want to generate this script from server code for make it dinamically
you must use Page.RegisterCl ientScriptBlock method.
Brun
"cgia" <cg*****@katama il.com> wrote in message
news:b3******** *************** ***@posting.goo gle.com... I would like to return error message in a pop up window. Window.open would be great, but it can only be associated to the onclick event of the button: button.Attribut es.Add("onclick ",...
Any ideas?
I thought of creating a invisible button on the form, pressing it programmaticall y, and hopefully this will fire the event above. Any other ideas?
Thanks
In Javascript you can use this script :
<script language="javas cript">
window.open('er ror.aspx', 'error', '....');
</script>
whene browser parse this script popup is opened!
if you want to generate this script from server code for make it dinamically
you must use Page.RegisterCl ientScriptBlock method.
Brun
"cgia" <cg*****@katama il.com> wrote in message
news:b3******** *************** ***@posting.goo gle.com... I would like to return error message in a pop up window. Window.open would be great, but it can only be associated to the onclick event of the button: button.Attribut es.Add("onclick ",...
Any ideas?
I thought of creating a invisible button on the form, pressing it programmaticall y, and hopefully this will fire the event above. Any other ideas?
Thanks
No you don't need to associate it with the onclick event of a button.
You can use the RegisterStartup Script instead to run the script as soon as
the HTML is rendered to the browser after postback.
Here's more info: http://msdn.microsoft.com/library/de...criptTopic.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"cgia" <cg*****@katama il.com> wrote in message
news:b3******** *************** ***@posting.goo gle.com... I would like to return error message in a pop up window. Window.open would be great, but it can only be associated to the onclick event of the button: button.Attribut es.Add("onclick ",...
Any ideas?
I thought of creating a invisible button on the form, pressing it programmaticall y, and hopefully this will fire the event above. Any other ideas?
Thanks
No you don't need to associate it with the onclick event of a button.
You can use the RegisterStartup Script instead to run the script as soon as
the HTML is rendered to the browser after postback.
Here's more info: http://msdn.microsoft.com/library/de...criptTopic.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"cgia" <cg*****@katama il.com> wrote in message
news:b3******** *************** ***@posting.goo gle.com... I would like to return error message in a pop up window. Window.open would be great, but it can only be associated to the onclick event of the button: button.Attribut es.Add("onclick ",...
Any ideas?
I thought of creating a invisible button on the form, pressing it programmaticall y, and hopefully this will fire the event above. Any other ideas?
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steve |
last post by:
Hi, I have a nice little script that works well displaying images on
my website. It's a script where if you clik a thumbnail image a pop
up window opens that contains a larger version of the same image. What
I would like to create is a link that can be clicked on to close the
window that contains the larger image. This would make it easier for
the users to close the window. I have posted the script that I use.
Any help would be much...
|
by: Jon |
last post by:
Hello,
I have a datagrid and the data in it is dynamically created at runtime...
For iCounter = 0 To dataset.Tables(0).Columns.Count - 1
Dim objbc As New BoundColumn()
With objbc
.DataField = dsAllPastReplies.Tables(0).Columns(iCounter).ColumnName
.HeaderText = dsAllPastReplies.Tables(0).Columns(iCounter).ColumnName
If .DataField = dsAllPastReplies.Tables(0).Columns("ReplyID").ColumnName Then
|
by: David W. Simmonds |
last post by:
Is there an easy way to create a new browser window from C# and ASP.NET? I
would just like to have a popup window without any menus or toolbars that
would contain a high-res image. The low-res image would be in the main
window and would have a button that when pressed brings up the "popup"
window that has the high-res image. I would like the window to be re-used
instead of creating yet another popup window if the user navigates to
another...
|
by: Shamin |
last post by:
Hi,
Thanks in advance for answering to my Question. I'm stuck with this
problem and would really appreciate any help.
I have 2 aspx files (Main.aspx and ReportViewer.aspx). Main.aspx has a
datagrid which is populated with list of report names. When the user
click on the name of a report, I display a panel that has a button
which on clicking will run the report. The report will open in
ReportViewer.aspx, This page has a Report Document...
|
by: cgia |
last post by:
I would like to return error message in a pop up window. Window.open
would be great, but it can only be associated to the onclick event of
the button: button.Attributes.Add("onclick",...
Any ideas?
I thought of creating a invisible button on the form, pressing it
programmatically, and hopefully this will fire the event above.
Any other ideas?
| |
by: Steve |
last post by:
Hi,
I currently have a problem passing a variable value from one page to
another. Once a form submit button is pressed java pops up a window and
displays some information. The problem being is variables value needs to
be passed from the main page to this popup window ... but it isn't. why?
the submit button one the PHP page is
|
by: Shelly |
last post by:
I have a form that updates and stays in the same window. That is the
desired behavior.
On this form I also have two buttons. I want those buttons to open up a new
window with information taken from another field. I tried putting those
two buttons in a form that has target="_blank", but it still came up in the
same window. (That form is inside the outer form).
I can make this happen if I put the forms one after another. The...
|
by: V S Rawat |
last post by:
using Javascript, I am opening a web-based url in a popup window.
MyWin1=Window.Open(url, "mywindow")
There is a form (form1) in the url in that popup window, I need to
submit that form.
How do I submit that form1 from the javascript from my current window?
Thanks.
|
by: dittu |
last post by:
How to close the popup window when submitting the form?
I have a sample.jsp. In that page one button is there.
when button pressed, open popup window contains one "text box" and one " submit button". when "submit" button pressed, call the "servlet" in this popup window and then close the "popup" window.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var X = 200; // change the # at the left for a fixed X co-ordinate to accommodate...
|
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: 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...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |