473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Invalid argument.

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
Nov 18 '05 #1
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


Nov 18 '05 #2
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

Nov 18 '05 #3
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


Nov 18 '05 #4
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
>



Nov 18 '05 #5
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

Nov 18 '05 #6

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

Similar topics

8
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...
2
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...
4
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 ...
1
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...
1
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...
2
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....
25
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...
4
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 ============== ...
8
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...
9
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",
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
BarryA
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...
1
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...
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
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...
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...

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.