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

Response.Redirect() and absolute URL links and User Control questi

I have a quick question - I'd just like to have confirmation to be sure.

I'm building an ASP.NET corporate site for my employer, some of the pages
have e-commerce capability and will need to be SSL-encrypted. Thus, I assume
I'll need to use absolute links to specifiy the https protocol (correct me if
I'm wrong on that)

Does ASP.NET handle an absolute link any different than a relative one?
Will I have any problems maintaining session variables, etc or does the
ASP.NET engine recognize the redirect url as part of the project anyway?

On a slightly different topic, I'm using User Controls extensively for page
elements like the header, left bar, etc which repeat from page to page. Is
there any standard way for accessing User Control functions from the parent
page? I also notice in developing that, when a user clicks on a Web Form
button and a postback is automatically fired, the all the user controls run
their Load() function, even if the web form button is running code that will
redirect them to a new page. This seems a like a wasted trip to the www
server, is there any way of suppressing the user controls from reloading?

Thanks in advance,

Andre Ranieri
andre<>senske<>c.m
Nov 19 '05 #1
1 2508
You can redirect to an absolute HTTPS path within your application without
having an Session issues. Session will remain in tact as you'd expect.

You can declare the user control at the top of your code behind file and
interact with any of its public members.

After every postback, the entire page (including all controls) are entirely
re-created. That's how ASP.NET works. You're correct that it's not always
the most efficient solution, which is why any great ASP.NET developer must
be familiar with client side scripting techniques, which can help to
minimize postbacks.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Andre Ranieri" <An**********@discussions.microsoft.com> wrote in message
news:03**********************************@microsof t.com...
I have a quick question - I'd just like to have confirmation to be sure.

I'm building an ASP.NET corporate site for my employer, some of the pages
have e-commerce capability and will need to be SSL-encrypted. Thus, I
assume
I'll need to use absolute links to specifiy the https protocol (correct me
if
I'm wrong on that)

Does ASP.NET handle an absolute link any different than a relative one?
Will I have any problems maintaining session variables, etc or does the
ASP.NET engine recognize the redirect url as part of the project anyway?

On a slightly different topic, I'm using User Controls extensively for
page
elements like the header, left bar, etc which repeat from page to page.
Is
there any standard way for accessing User Control functions from the
parent
page? I also notice in developing that, when a user clicks on a Web Form
button and a postback is automatically fired, the all the user controls
run
their Load() function, even if the web form button is running code that
will
redirect them to a new page. This seems a like a wasted trip to the www
server, is there any way of suppressing the user controls from reloading?

Thanks in advance,

Andre Ranieri
andre<>senske<>c.m

Nov 19 '05 #2

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

Similar topics

3
by: Peter Bassett | last post by:
I have a recruiter website listing jobs. Some postings having email links directly to the employer (instead of the usual email link to the recruiter owner). The owner wishes to track when people...
2
by: Kostas kousinovalis | last post by:
Hello I have a asp page which it post some values to an external web page (not mine) with the method response.redirect (www.website.com/page.asp?username=user&password=mypass) The external web...
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
4
by: Marty U. | last post by:
I have a Session variable I need to check the value of. If it is value a then redirect to some page. I need to implement this in a user control that is on all the relevent pages. I placed the if...
2
by: news://news.microsoft.com/microsoft.public.de.germ | last post by:
Hallo! Ich habe ein Frameset mit 3 Frames. Im 1. Frame wird eine ASPX-Seite geöffnet. In dieser werden einige Steuerelemente angezeigt. Nun soll bei bestimmten Benutzeraktivitäten eine andere...
2
by: Nathan Sokalski | last post by:
I am using the Response.Redirect method in a User Control to allow visitors to click an ImageButton to take them to another page. However, when I click the ImageButton I recieve the following...
4
by: Bart op de grote markt | last post by:
Hello I have a website in php in which I have some kind of portal to external links that come from a database. When a user clicks on a link, "link.php" is called, does some stuff (e.g. adds 1...
12
by: gigi | last post by:
How to send more than one value using response redirect? For example i can send one like this response.Redirect "pregled.asp?ime=" & strUserName but how to send two or more values? I tried...
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
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
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
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,...

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.