473,804 Members | 3,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Transfe r()" 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 4088
"Slawomir" <sp***********@ o2.plwrote in message
news:fb******** **@node1.news.a tman.pl...
Simple question about webforms: How to hide true address of website ? To
this day a used "Server.Transfe r()" 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?ta bindex=0" />
<add url="~/Forums.aspx" mappedUrl="~/default.aspx?ta bindex=1" />
<add url="~/Faq.aspx" mappedUrl="~/default.aspx?ta bindex=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.Transfe r()" 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?ta bindex=0" />
<add url="~/Forums.aspx" mappedUrl="~/default.aspx?ta bindex=1" />
<add url="~/Faq.aspx" mappedUrl="~/default.aspx?ta bindex=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
4198
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 me an example of something hidden from the user?
1
840
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 controlling the visibility of columns in the DataGrid control. The problem usually comes down to one fact. The DataGrid has a property called AutoGenerateColumns. The default value is "True". This means that when AutoGenerateColumns is set to True,...
0
1441
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 http://localhost/myapp/pages/misc/index.aspx calls the function, and it returns the string "images\thumb\001.jpg" The image control on the page will then point to the adress: http://localhost/myapp/pages/misc/images\thumb\001.jpg (wich is wrong).
3
1621
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 http://localhost/myapp/pages/misc/index.aspx calls the function, and it returns the string "images\thumb\001.jpg" The image control on the page will then point to the adress: http://localhost/myapp/pages/misc/images\thumb\001.jpg (wich is wrong). The image...
22
2196
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 stage. One approach I have used on other systems is to prevent the action buttons appearing. For example, if one did not have the Role of Administrator, one would be prevented from deleting a ticket not created by oneself. However, it did occur...
11
3470
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 other pieces of information information and retrieve it later... like this: *********************** //supossing i have a istream
0
1731
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 Sys.UI.Control($get("GridPanel")); function beginRequestHandler(sender, args)
11
4938
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 color="#330099">Claim SSN: </font><b><%# Eval("ClaimSSN") %></b></td> <td colspan="2"></td>
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10577
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10320
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
9150
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
7620
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
6853
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
5521
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
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.