|
Dear all..
i have develop small project in asp.net and VB.net..and i have page name updates.aspx and this page is visit by devise to update some data... the devise go to the page using the URL:
http://mydomin.com/nic/update?hostname=yourhostname&myip=ipaddress&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG
so i need to hide the extenuation and use the query string..
Thank you all..
|
|
|
|
|
Have a look at this[^] article. Pay particular attention to the last two techniques - depending on your ASP.NET environment, these are the techniques you need to put in place.
|
|
|
|
|
Thank you Pete O'Hanlon
i have read this article many time and i did not understand..
it is a little complicated..
Thank you..
|
|
|
|
|
Read bit about URL Rewriting. Since ASP.NET 4.0 you can use Routing Engine in Web Forms. All wath you need is write following code:
void RegistarRoutes(System.Web.Routing.RouteCollection routes)
{
routes.MapPageRoute("main", "/homepage", "~/Default.aspx");
}
void Application_Start(object sender, EventArgs e)
{
RegistarRoutes(System.Web.Routing.RouteTable.Routes);
}
The first argument in MapPageRoute is name of route, second one is route, and third one is physical path to file.
|
|
|
|
|
Thank you Senaid Maksumic..
where i can use this code exactly
..and if i use it with page "update.aspx" do you think that the user can visit the page using (ourdomin.com/nic/update) and i will be abule to read the QueryString?
thanks
|
|
|
|
|