473,485 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to transfer the values to next page by using response.redirect()

78 New Member
Response.Redirect("explain.aspx?firstimportname="+ filename);
This is my statement.In this statement i am sending only single value to next page.but i want to pass multiple values by using multiple fields(firstimportname )to next page.please suggest me .please send the replay as early as possible thank u.
Aug 2 '07 #1
5 2155
dip_developer
648 Recognized Expert Contributor
Response.Redirect("explain.aspx?firstimportname="+ filename);
This is my statement.In this statement i am sending only single value to next page.but i want to pass multiple values by using multiple fields(firstimportname )to next page.please suggest me .please send the replay as early as possible thank u.
simply concatenate variables like following......

Response.Redirect("explain.aspx?Value1=" + txtValue1.Text + " Value2= " + txtValue2.Text)
Aug 2 '07 #2
phanimadhav
78 New Member
simply concatenate variables like following......

Response.Redirect("explain.aspx?Value1=" + txtValue1.Text + " Value2= " + txtValue2.Text)

Thank you for ur replay,

Response.Redirect("explain.aspx?firstimportname="+ filename+"firstimporttype="+firstfiletype+"firstim portcontent="+filecontent);


I am palce this statement into my source page.

In my estination page i am place this code.

lblfname.Text = Request.QueryString["firstimportname"];
Label2.Text = Request.QueryString["firstimporttype"];
Label3.Text = Request.QueryString["firstimportcontent"];

FILE NAME IS:=lblfname.Text;
FILE TYPE IS: =Label2.Text;
FILE LENGTH IS =Label3.Text;

But i am got this answer

FILE NAME IS: C:\Documents and Settings\usha\My Documents\My Pictures\1911pachg1.jpgfirstimporttype=image/pjpegfirstimportcontent=93222
FILE TYPE IS:
FILE LENGTH IS

please send ur valuble replay thank u for ur replay
Aug 2 '07 #3
dip_developer
648 Recognized Expert Contributor
Thank you for ur replay,

Response.Redirect("explain.aspx?firstimportname="+ filename+"firstimporttype="+firstfiletype+"firstim portcontent="+filecontent);


I am palce this statement into my source page.

In my estination page i am place this code.

lblfname.Text = Request.QueryString["firstimportname"];
Label2.Text = Request.QueryString["firstimporttype"];
Label3.Text = Request.QueryString["firstimportcontent"];

FILE NAME IS:=lblfname.Text;
FILE TYPE IS: =Label2.Text;
FILE LENGTH IS =Label3.Text;

But i am got this answer

FILE NAME IS: C:\Documents and Settings\usha\My Documents\My Pictures\1911pachg1.jpgfirstimporttype=image/pjpegfirstimportcontent=93222
FILE TYPE IS:
FILE LENGTH IS

please send ur valuble replay thank u for ur replay
didn't understand your problem....please clarify
Aug 2 '07 #4
ammoos
100 New Member
pls try the format
Response.Redirect("WebForm2.aspx?field1="+ field1Value+ "&field2="+ field2Value + "&field3="+ field3Value );

then get the values in the next page as usual

varname1=Request.QueryString["field1"];
varname2=Request.QueryString["field2"];
varname3=Request.QueryString["field3"];
Aug 2 '07 #5
phanimadhav
78 New Member
thank u ammoos i got the answer.Once again Thank u very much.have a greate day.bye
Aug 2 '07 #6

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

Similar topics

3
9057
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
2
1511
by: Melissa | last post by:
I'm learning about Server.Transfer to see if it will be worthwhile so we can cut down on the number of session variables we use. And in doing a couple of tests following the .NET Framework SDK...
4
2086
by: Harsh Thakur | last post by:
Hi, I'd like to know the performance related differences between Response.Redirect and Server.Transfer. I'd like to redirect the user to a different page. I can either do a...
8
3771
by: Cathie | last post by:
Hi guys, I want to do a Server.Transfer to get to a second page, so that I may retrieve variables I have set in the first page. I'm doing that with the usual Server.Transfer("pagename", true). ...
2
3351
by: Pete | last post by:
Hi all... I sincerly hope one of the MS guys can clear this up for me... First some background... Ok, I have a web site which is fully translatable into several languages. All the strings...
4
2129
by: Keith Patrick | last post by:
I have an app where a Shockwave splash animation starts off my app and then sets its parent iframe's src to the value of a default page "BasicReports". BasicReports has a link to another report...
1
982
by: Andy Fish | last post by:
Hi, I just thought someone reading this might be interested to know that I've just decided to stop using server.transfer and replace it with response.redirect instead. The app had several...
3
2787
by: Calvin KD | last post by:
Hi everyone, I don't know if there's anyone out there is having the same problem. My DotNet 1.1 version uses FormsAuthentication.RedirectFromLoginPage() method to take user from the Login page to...
10
12152
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
3
3507
by: jasonheath.net | last post by:
I apologize in advance for the length of this post. I wanted to get as much detail as possible in here. We have 1 web app that contains the functionality to do some single sign-on logic. The...
0
7090
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
6960
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
7116
Oralloy
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,...
1
6825
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...
0
7275
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...
1
4857
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...
0
1376
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 ...
1
595
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
247
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.