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

ASP .NET - Hiding true adress of web page

Hello.
Simple question about webforms: How to hide true address of website ? To
this day a used "Server.Transfer()" to redirect to another page. In sql
server I have a table with data like this:

id adress
1 default.aspx
2 news.aspx
3 news.aspx?mpid=2&id=23
4 news.aspx?mpid=1
5 news.aspx?mpid=1&id=12
In page load I'm throwing id and redirecting to address. Unfortunately
in the source of page in browser true address is still visible. Any
idea how to hide it?

thanx for any advice,
Slawomir
Sep 5 '07 #1
3 4068
"Slawomir" <sp***********@o2.plwrote in message
news:fb**********@node1.news.atman.pl...
Simple question about webforms: How to hide true address of website ? To
this day a used "Server.Transfer()" to redirect to another page. In sql
server I have a table with data like this:

id adress
1 default.aspx
2 news.aspx
3 news.aspx?mpid=2&id=23
4 news.aspx?mpid=1
5 news.aspx?mpid=1&id=12
In page load I'm throwing id and redirecting to address. Unfortunately in
the source of page in browser true address is still visible. Any idea
how to hide it?
If you are using asp.net 2.0, you can use URL Mapping. To use it, you add
to your web.config a section such as the following:

<urlMappings enabled="true">
<add url="~/Home.aspx" mappedUrl="~/default.aspx?tabindex=0" />
<add url="~/Forums.aspx" mappedUrl="~/default.aspx?tabindex=1" />
<add url="~/Faq.aspx" mappedUrl="~/default.aspx?tabindex=2" />
</urlMappings>

The "url" part is the one that the user will see, while the "mappedUrl"
is the actual page that you are delivering.
Sep 6 '07 #2
Hello.
Simple question about webforms: How to hide true address of website ?
To
this day a used "Server.Transfer()" to redirect to another page. In
sql
server I have a table with data like this:
id adress
1 default.aspx
2 news.aspx
3 news.aspx?mpid=2&id=23
4 news.aspx?mpid=1
5 news.aspx?mpid=1&id=12
In page load I'm throwing id and redirecting to address. Unfortunately
in the source of page in browser true address is still visible. Any
idea how to hide it?
Try using Server.Execute instead from your main page.

thanx for any advice,
Slawomir

Sep 6 '07 #3
Alberto Poblacion pisze:
>
If you are using asp.net 2.0, you can use URL Mapping. To use it, you
add to your web.config a section such as the following:

<urlMappings enabled="true">
<add url="~/Home.aspx" mappedUrl="~/default.aspx?tabindex=0" />
<add url="~/Forums.aspx" mappedUrl="~/default.aspx?tabindex=1" />
<add url="~/Faq.aspx" mappedUrl="~/default.aspx?tabindex=2" />
</urlMappings>

The "url" part is the one that the user will see, while the
"mappedUrl" is the actual page that you are delivering.

Thanx for this advice.
Sep 6 '07 #4

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

Similar topics

11
by: Lorenzo Villari | last post by:
I premise I don't know C++ well but... I wondered what is this data hiding thing... I mean, if I can look at the header (and i need it beacuse of the class), then what's hidden? Can someone give...
1
by: Amber | last post by:
The DataGrid allows you to make columns visible or invisible on demand - even edit and other special columns. This article will show you how it is done. Some developers have reported problems...
0
by: Jarod_24 | last post by:
I got a function that return the url of a image, the problem is that the image control on the .aspx page automaticaly adds the adress of itself to the adress Example: The page...
3
by: Jarod_24 | last post by:
I got a function that return the url of a image, the problem is that the image control on the .aspx page automaticaly adds the adress of itself to the adress Example: The page...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
11
by: mwebel | last post by:
Hi, i had this problem before (posted here and solved it then) now i have the same problem but more complicated and general... basically i want to store the adress of a istream in a char* among...
0
by: Frank | last post by:
Hi, I have read the other post about hiding the updatepanel using the ajax lifecycle as such at the end of the aspx page: <script type="text/javascript" language =javascript> var c = new...
11
by: JJ297 | last post by:
I want to hide the Pin field below in my repeater. How do I do this? <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <tr> <td><font...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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.