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

Passing parameters between applications

Hi,

I want to forward a request as it is from an aspx page(could be a web
service too) in one application to another aspx page in a different
application. The intial request will be having parameters(not fixed
number) which I need to use in the second aspx page. I used
Server.Transfer but it gives me an error message -
Could not load type 'SubHandler.SubReqHandler'
which is the aspx page in the second application.

I am new to ASP.NET, could anyone tell me if it is possible to do
this?
If it is possible could you let me know what I am doing wrong or how I
should be doing it.

Any help would be appreciated. Thanks,

-Archana
Nov 17 '05 #1
6 1316
Hi,

As Far As I know you can’t use Server.Transfer to redirect user outside
your application boundaries. You should use Response.Redirect to
redirect to other applications. You can add query string to the redirect
URL. Don’t forget that there is a limit of 100K to the querystring. if
you want to move big chunk of data you better store it in DB and just
pass identifier to the calling application that will use the given
identifier to retrieve data from DB.

HTH

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2
Thanks for the reply.

May be if I give my actual problem you can suggest me a solution.

I understand that it has to be under the same namespace if I have to
use Server.Transfer. I cannot use Response.Redirect as the parameters
are not fixed. The problem is I dont want to compile the whole
application each time I add a new aspx page. There could be hundreds
of pages eventually for my application to which the intial page has to
redirect. Is there a way around the compiling process so that I can do
it somewhat like a module and build that and add it to the
application. Hope I am clear enough. I use Visual Studio for
developing.Thanks,

-Archana
Nov 17 '05 #3
Hi,
I understand that it has to be under the same namespace if >I have to
use Server.Transfer You mean same Application (application can contain several namespaces)
I cannot use Response.Redirect as the parameters
are not fixed But you can save the parameters in DB with identifier (GUID) send just
the identifier using redirect and query string and use the identifier on
the calling page to get parameters form DB
The problem is I dont want to compile the whole
application each time I add a new aspx page.


I dont get it, can you be more clear ?

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4
Hi,
I understand that it has to be under the same namespace if >I have to
use Server.Transfer You mean same Application (application can contain several namespaces)
I cannot use Response.Redirect as the parameters
are not fixed But you can save the parameters in DB with identifier (GUID) send just
the identifier using redirect and query string and use the identifier on
the calling page to get parameters form DB
The problem is I dont want to compile the whole
application each time I add a new aspx page.


I dont get it, can you be more clear ?

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #5
Yes, you are correct, thats what I meant, the aspx page has to be
under the same application.
I cannot use DB to store parameters.

What I meant by "I dont want to compile the whole application each
time I add a new aspx page" is -
If you are familiar with Java, the application is like a master
servlet and child servlets structure. In Java we can just compile the
child servlet individually and all that is required for it to work is
the class file to be in the correct location. So I wanted to know if
there is something equivalent to this structure in .NET and I need the
request to be forwarded as it is from the first page. Hope I'm clear
enough this time. Thanks,

-Archana
Nov 17 '05 #6
Yes, you are correct, thats what I meant, the aspx page has to be
under the same application.
I cannot use DB to store parameters.

What I meant by "I dont want to compile the whole application each
time I add a new aspx page" is -
If you are familiar with Java, the application is like a master
servlet and child servlets structure. In Java we can just compile the
child servlet individually and all that is required for it to work is
the class file to be in the correct location. So I wanted to know if
there is something equivalent to this structure in .NET and I need the
request to be forwarded as it is from the first page. Hope I'm clear
enough this time. Thanks,

-Archana
Nov 17 '05 #7

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

Similar topics

17
by: Freeserve | last post by:
Hi, I am trying to pass a value from an ASP script to a VB application running on the server. The only way I have got this to work is by using a file, which is too slow. I tried using DDE but...
3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
12
by: Joel | last post by:
Hi all, Forgive me if I've expressed the subject line ill. What I'm trying to do is to call a c++ function given the following: a. A function name. This would be used to fetch a list of...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
39
by: Mike MacSween | last post by:
Just spent a happy 10 mins trying to understand a function I wrote sometime ago. Then remembered that arguments are passed by reference, by default. Does the fact that this slowed me down...
3
by: binder.christian | last post by:
Hi! I have two applications: * mainapp.exe * plugin01.exe I have 2 "friend" variables in mainapp.exe: Friend gblConn as SqlConnection Friend gblPath as string
4
by: Peter Reinhold | last post by:
Hi All, I am developing a small utility, and have run into a small challenge. The util is used for performing operations on a bunch of files, and it can be triggered from the right-click menu...
2
by: csmith8933 | last post by:
How do I write a function where the number of parameters it takes varies? This is what I have but it doesnt work. // function prototype void functionThree(int num1=1, int num2=2, int num3=3);...
13
by: seaside | last post by:
I have a method function appendChildNode( AST $aNewChild ) { ... } <<< where AST is a class. If I pass null, PHP renders this message: Catchable fatal error: Argument 1 passed to...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
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
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...
0
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...

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.