473,609 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

78 New Member
Response.Redire ct("explain.asp x?firstimportna me="+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(firstimp ortname )to next page.please suggest me .please send the replay as early as possible thank u.
Aug 2 '07 #1
5 2164
dip_developer
648 Recognized Expert Contributor
Response.Redire ct("explain.asp x?firstimportna me="+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(firstimp ortname )to next page.please suggest me .please send the replay as early as possible thank u.
simply concatenate variables like following......

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

Response.Redire ct("explain.asp x?Value1=" + txtValue1.Text + " Value2= " + txtValue2.Text)

Thank you for ur replay,

Response.Redire ct("explain.asp x?firstimportna me="+filename+" firstimporttype ="+firstfiletyp e+"firstimportc ontent="+fileco ntent);


I am palce this statement into my source page.

In my estination page i am place this code.

lblfname.Text = Request.QuerySt ring["firstimportnam e"];
Label2.Text = Request.QuerySt ring["firstimporttyp e"];
Label3.Text = Request.QuerySt ring["firstimportcon tent"];

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

But i am got this answer

FILE NAME IS: C:\Documents and Settings\usha\M y Documents\My Pictures\1911pa chg1.jpgfirstim porttype=image/pjpegfirstimpor tcontent=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.Redire ct("explain.asp x?firstimportna me="+filename+" firstimporttype ="+firstfiletyp e+"firstimportc ontent="+fileco ntent);


I am palce this statement into my source page.

In my estination page i am place this code.

lblfname.Text = Request.QuerySt ring["firstimportnam e"];
Label2.Text = Request.QuerySt ring["firstimporttyp e"];
Label3.Text = Request.QuerySt ring["firstimportcon tent"];

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

But i am got this answer

FILE NAME IS: C:\Documents and Settings\usha\M y Documents\My Pictures\1911pa chg1.jpgfirstim porttype=image/pjpegfirstimpor tcontent=93222
FILE TYPE IS:
FILE LENGTH IS

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

then get the values in the next page as usual

varname1=Reques t.QueryString["field1"];
varname2=Reques t.QueryString["field2"];
varname3=Reques t.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
9068
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 problem i faced while using Response.Redirect is that the page that is directed to, does not looks as desired..the textboxes are not visible anymore and so as
2
1519
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 documentation (ms-help://MS.NETFrameworkSDKv1.1/cpguidenf/html/cpconpassingservercontrolva luesbetweenpages.htm), the example shows having the textbox controls as Protected, but when I tried to run the example and access the values in the text boxes...
4
2099
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 Response.Redirect("URL") or a Server.Transfer("URL"). So I'd like to find out which is more efficient/better. Can anyone please tell me or give any pointers to links on the web? Thanks & Regards
8
3780
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). My problems are as follows: 1. On the initial load everything seems to be referencing from the first page. For example, my style sheet I reference using "../../styles.css" but it seems to need "../styles.css" as the first page is one step...
2
3370
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 for the web site are held in a database and all the labels, buttons etc are populated at run time in the Page_Load handler. The retreval of the strings from the database is all
4
2145
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 page, but when I click it and redirect via Server.Transfer (using both values for preserveForm), the first time, it loads up BasicReports again. If I click BasicReports *again*, then it transfers to the correct page. Is there a known behavior/bug...
1
990
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 places where you would click on a button, it would go away and do something and take you to the next page. When I first started using asp.net I was keen on server.transfer because it avoids an unnecessary round trip to the browser. However, the...
3
2795
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 the Welcome page. My folder structure is as follows: Root Dir bin images secure Welcome
10
12190
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 an object that stores the user's basic profile data (username, user type, associated sales region, etc.). I've been taking this user info and placing it in the Session object like so... Session = user;
3
3520
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 flow is 1. Welcome page 2. Login Page (where the SSO actually occurs) 3. Welcome page 4. Default page
0
8510
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 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...
1
8198
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8376
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6975
agi2029
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...
1
6044
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 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...
0
5503
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();...
0
4006
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...
0
4063
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1372
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.