Hi All,
I have a datagrid in the select button i write the following code:
Response.Write("<script>window.open('new.aspx', New Page',
'top=120,left=200,width=440,height=340,modal=yes,s crollbars=yes');</script>"
)
but it give me this error "Invalid argument."
What is wrong in it????????
Regards 5 1710
Not sure if this is your problem, but there is a missing single quote
inside the 2nd parameter. I think it should be 'New Page'.
On Sun, 22 Aug 2004 15:27:49 +0300, "Mariame"
<Ma************@yahoo.com> wrote: Hi All,
I have a datagrid in the select button i write the following code: Response.Write("<script>window.open('new.aspx', New Page', 'top=120,left=200,width=440,height=340,modal=yes, scrollbars=yes');</script>" )
but it give me this error "Invalid argument."
What is wrong in it????????
Regards
it doesent really make a difference with putting the single quote in it
Anyone know what could be the cause that fire "invalid argument" in the
following code?
Response.Write("<script>window.open('new.aspx', 'New
page','top=120,left=200,width=440,height=340,modal =yes,scrollbars=yes');</sc
ript>"
Thx in Advance
"Dan Brussee" <db******@nc.rr.com> wrote in message
news:eq********************************@4ax.com... Not sure if this is your problem, but there is a missing single quote inside the 2nd parameter. I think it should be 'New Page'.
On Sun, 22 Aug 2004 15:27:49 +0300, "Mariame" <Ma************@yahoo.com> wrote:
Hi All,
I have a datagrid in the select button i write the following code: Response.Write("<script>window.open('new.aspx', New Page',
'top=120,left=200,width=440,height=340,modal=yes, scrollbars=yes');</script>
" )
but it give me this error "Invalid argument."
What is wrong in it????????
Regards
Can you give us a little more code so we can see the context in which this
is being used? The line of code below, by itself, does not cause an error.
Travis Murray
MCSD, MCT
Artiem Consulting, Inc. http://www.artiem.com
"Mariame" <Ma************@yahoo.com> wrote in message
news:uJ**************@TK2MSFTNGP09.phx.gbl... it doesent really make a difference with putting the single quote in it Anyone know what could be the cause that fire "invalid argument" in the following code? Response.Write("<script>window.open('new.aspx', 'New
page','top=120,left=200,width=440,height=340,modal =yes,scrollbars=yes');</sc ript>"
Thx in Advance
"Dan Brussee" <db******@nc.rr.com> wrote in message news:eq********************************@4ax.com... Not sure if this is your problem, but there is a missing single quote inside the 2nd parameter. I think it should be 'New Page'.
On Sun, 22 Aug 2004 15:27:49 +0300, "Mariame" <Ma************@yahoo.com> wrote:
Hi All,
I have a datagrid in the select button i write the following code: Response.Write("<script>window.open('new.aspx', New Page',
'top=120,left=200,width=440,height=340,modal=yes, scrollbars=yes');</script> ")
but it give me this error "Invalid argument."
What is wrong in it????????
Regards
i write the following code in the select index change of datagrid :
Private Sub DataGrid1_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles DataGrid1.SelectedIndexChanged
Dim x() As String
ReDim x(1)
x(0) = DataGrid1.SelectedItem.Cells(3).Text
dim ticket as integer
ticket = x(0)
Response.Write("<script>window.open('CallBackTrace .aspx', 'Call Back Trace',
'top=120,left=200,width=440,height=340,modal=yes,s crollbars=yes');</script>"
)
End Sub
"Travis Murray" <tm*****@artiem.com> wrote in message
news:O2**************@TK2MSFTNGP11.phx.gbl... Can you give us a little more code so we can see the context in which this is being used? The line of code below, by itself, does not cause an
error. Travis Murray MCSD, MCT Artiem Consulting, Inc. http://www.artiem.com
"Mariame" <Ma************@yahoo.com> wrote in message news:uJ**************@TK2MSFTNGP09.phx.gbl... it doesent really make a difference with putting the single quote in it Anyone know what could be the cause that fire "invalid argument" in the following code? Response.Write("<script>window.open('new.aspx', 'New
page','top=120,left=200,width=440,height=340,modal =yes,scrollbars=yes');</sc ript>"
Thx in Advance
"Dan Brussee" <db******@nc.rr.com> wrote in message news:eq********************************@4ax.com... Not sure if this is your problem, but there is a missing single quote inside the 2nd parameter. I think it should be 'New Page'.
On Sun, 22 Aug 2004 15:27:49 +0300, "Mariame" <Ma************@yahoo.com> wrote:
>Hi All, > >I have a datagrid in the select button i write the following code: >Response.Write("<script>window.open('new.aspx', New Page',
'top=120,left=200,width=440,height=340,modal=yes, scrollbars=yes');</script> " >) > >but it give me this error "Invalid argument." > >What is wrong in it???????? > >Regards >
New Page doesn't have matching quotes. But I'll show you a hidden secret
Really, its hidden.
Try this in your event handler:
dim script as string
script = "<script language=""javascript"">window.open
(""url.aspx"",""NewPage"",""top=0,left=0"");</script>"
page.RegisterClientScriptBlock("MyScript",script)
This causes the script block to be inside of the document instead of hanging
out at the top of your page. I know its picky, but it helps you generate
valid html
"Mariame" <Ma************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Hi All,
I have a datagrid in the select button i write the following code: Response.Write("<script>window.open('new.aspx', New Page',
'top=120,left=200,width=440,height=340,modal=yes,s crollbars=yes');</script>" )
but it give me this error "Invalid argument."
What is wrong in it????????
Regards
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Owen Jenkins |
last post by:
Hello.
For years I've been using the DBEngine.CompactDatabase code to make
backups of backend databases. But now I've struck a baffling problem
where I get an Invalid Argument error. This...
|
by: Pradeep MM |
last post by:
Hi Folks,
I have a issue in Micosoft Jet 4.0 OLEDB.
I am doing a repeated append of data into Microsoft
Access 2002 (XP). For a few files I get the error as
INVALID ARGUMENT.
When I try to...
|
by: Gianluca |
last post by:
This is the simplified code I'm trying to generate:
ilg.DeclareLocal(typeof(int)); // define local integer
Label exit = ilg.DefineLabel(); // define "exit" label
...
|
by: llevi |
last post by:
Hi there,
My aspnet_state.exe service is failing to start due to an invalid argument.
Does anyone know what arguments are required/valid for this service.
I am running XP pro, .NET Framework v...
|
by: Timbo |
last post by:
Hi all,
This is my first message here so i'll try and include all the
information that will help you help me out, if possible.
Basically I am using C# in ASP.NET 2.0 and have a Repeater...
|
by: Nathan Sokalski |
last post by:
I have a DataList in which the ItemTemplate contains two Button controls
that use EventBubbling. When I click either of them I receive the following
error:
Server Error in '/' Application....
|
by: dennijr |
last post by:
ok, shell always used to be easy for me, now its starting to get annoying cause i dont know wats wrong
heres the simplist code possible:
Private Sub IExplorer_Click()
a = Shell("C:\Program...
|
by: robert |
last post by:
On a server the binary (red hat) installed python2.4 and also a
fresh compiled python2.5 spits "sem_post: Invalid argument".
What is this and how can this solved?
Robert
==============
...
|
by: Lambda |
last post by:
When I call the standard strncpy function, I provide it a negative
argument,
such as:
strncpy(s, ct, -1)
I compile the code with gcc, when I run, it says "Segmentation fault".
Do you think...
|
by: 200dogz |
last post by:
Hi guys,
I want to have a button which opens up a new window when pressed.
<asp:Button ID="Button1" runat="server" Text="Open new window" />
...
Button1.Attributes.Add("OnClick",
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
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...
|
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,...
|
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...
|
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...
| |