473,387 Members | 1,569 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,387 software developers and data experts.

Help required on String Concatination

Hi all,I need to have a querystring as bellow

http://devl-prescreen/prescreenpendingreport.asp?Param1=Net&Param2=Detai ls&FromDate=01/01/2000&ToDate=01/01/2007&Name='SomeOne'

I have formed the sting as
string strRpt = "<script language=JavaScript>window.open('http://sampleProj/report1.asp?'+Param1=Net'+'&Param2=Pending'+'&From Date="+txtFromDate.Text.ToString()+"'+'&ToDate="+t xtToDate.Text.ToString()+"'+'&Name="+txtName.Text. ToString()+"','','dialogHeight: 515px; dialogWidth: 630px;edge: Sunken;directories=no;center: Yes;help: no;scrollbars=no; resizable: No; status: no;toolbar=no;menubar=no;location=no; modal=yes;titlebar=no;');</script>";


if(!this.IsStartupScriptRegistered("OpenScript"))
{
this.RegisterStartupScript("OpenScript", strRpt);
}

while executing the code I not getting the desired result as I mentioned..

can anyone help me in this....
Jul 6 '07 #1
2 951
dip_developer
648 Expert 512MB
Hi all,I need to have a querystring as bellow

http://devl-prescreen/prescreenpendingreport.asp?Param1=Net&Param2=Detai ls&FromDate=01/01/2000&ToDate=01/01/2007&Name='SomeOne'

I have formed the sting as
string strRpt = "<script language=JavaScript>window.open('http://sampleProj/report1.asp?'+Param1=Net'+'&Param2=Pending'+'&From Date="+txtFromDate.Text.ToString()+"'+'&ToDate="+t xtToDate.Text.ToString()+"'+'&Name="+txtName.Text. ToString()+"','','dialogHeight: 515px; dialogWidth: 630px;edge: Sunken;directories=no;center: Yes;help: no;scrollbars=no; resizable: No; status: no;toolbar=no;menubar=no;location=no; modal=yes;titlebar=no;');</script>";


if(!this.IsStartupScriptRegistered("OpenScript"))
{
this.RegisterStartupScript("OpenScript", strRpt);
}

while executing the code I not getting the desired result as I mentioned..

can anyone help me in this....
what is your desired result ???
what are you getting ???
what is the error if any ????
Jul 6 '07 #2
Plater
7,872 Expert 4TB
Hmm. Try:
Expand|Select|Wrap|Line Numbers
  1. string strRpt = "<script language=JavaScript>window.open(\'http://sampleProj/report1.asp?Param1=Net&Param2=Pending&FromDate="+txtFromDate.Text.ToString()+"&ToDate="+txtToDate.Text.ToString()+"&Name="+txtName.Text.ToString()+"\",dialogHeight: 515px; dialogWidth: 630px;edge: Sunken;directories=no;center: Yes;help: no;scrollbars=no; resizable: No; status: no;toolbar=no;menubar=no;location=no; modal=yes;titlebar=no;');</script>";
  2.  
Jul 6 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Phil Powell | last post by:
<script> <!-- function willProceedToPay() { var willPay = window.confirm('Vill du g' . String.fromCharCode(229) . ' till betaling?'); if (willPay) return true; return false; }
2
by: HumanJHawkins | last post by:
The following query works perfectly (returning all words on a list called "Dolch" that do not contain a form of "doing"): SELECT 'Dolch' AS , dbo.Dolch.vchWord FROM dbo.Dolch LEFT OUTER JOIN...
2
by: Boni | last post by:
Hi all, String *A="kkkj" String *B="kkkj" Is there something easier then String *C=String::Concat(A,B) Why can't it just be as in C# C=A+B. Thanks, Boni
2
by: John Regan | last post by:
Hello All I am trying to find the owner of a file or folder on our network (Windows 2000 Server) using VB.Net and/or API. so I can search for Folders that don't follow our company's specified...
8
by: Two Beards | last post by:
Hi, I'm new to VB and .net so I may be mising something. I am trying to dynamically build some SQL by appending to a string. Part of the SQL comes from an mp3 id tag I have extracted from a file...
23
by: Bonj | last post by:
what is the correct form of string concatenation in VB.NET, + or &? Both seem to work, but which is correct? I know it's + in C# and & in VB6, but which in VB.NET?
8
by: Jerry | last post by:
I am a MySQL and PHP newbie. I am having trouble getting the $w variable in my code below passed to mysql. When I use the value of $w directly in the Where clause, the correct rows are returned....
0
by: pradeep | last post by:
Hello, I have problem in PHP String concatination with html select combo box. There are 3 files addressbook.sql : concat1.php concat2.php
7
by: rhkodiak | last post by:
I was in an interview question what is the most efficient way to sort a string for example "010101", the result would then be "000111", and write the code on how to do this. I wrote the code for...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.