Click here to Skip to main content
15,900,378 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTextfile to Database Pin
aaraaayen6-Jul-06 1:25
aaraaayen6-Jul-06 1:25 
AnswerRe: Textfile to Database Pin
mnaveed6-Jul-06 2:47
mnaveed6-Jul-06 2:47 
GeneralRe: Textfile to Database Pin
aaraaayen6-Jul-06 3:01
aaraaayen6-Jul-06 3:01 
GeneralRe: Textfile to Database Pin
mnaveed6-Jul-06 3:11
mnaveed6-Jul-06 3:11 
GeneralRe: Textfile to Database Pin
aaraaayen6-Jul-06 18:41
aaraaayen6-Jul-06 18:41 
QuestionUrl Rewriting in .Net Framework 1.1 Pin
ranjithib16-Jul-06 1:24
ranjithib16-Jul-06 1:24 
AnswerRe: Url Rewriting in .Net Framework 1.1 Pin
Vipin Venugopal6-Jul-06 2:13
Vipin Venugopal6-Jul-06 2:13 
GeneralRe: Url Rewriting in .Net Framework 1.1 [modified] Pin
ranjithib16-Jul-06 18:19
ranjithib16-Jul-06 18:19 
I beleive, if I Call Server.Transer("Page2.Aspx") from Page1.aspx The Url in adddress bar remains same as Page1.aspx.
But What I need is that when I am in Page2.aspx, I want the Url in address bar to be say "FriendlyUrl.aspx" and So on , but I do not have to create any web pages for FriendlyUrl.aspx , just rewrite the Url in address bar to a any friendly one.

I have experimented the following code:

Inside the projects Global.asax.cs, add the subroutine

Application_BeginRequest()
{

HttpContext hc = HttpContext.Current;

string strOldUrl = hc.Request.Path ;

string strNewUrl = "http://FriendlyURL";

if strOldUrl.equals(http://UglyURL) then hc.RewritePath(strNewURL)
}

But I getting the error Friendly Url does not exist.
Pl help. Thanks in advance





Pls help. Thanks in advance


-- modified at 0:20 Friday 7th July, 2006
GeneralRe: Url Rewriting in .Net Framework 1.1 Pin
Vipin Venugopal7-Jul-06 1:19
Vipin Venugopal7-Jul-06 1:19 
Questioncreate user control [modified] Pin
surshbabuk6-Jul-06 1:04
surshbabuk6-Jul-06 1:04 
AnswerRe: create user control Pin
_AK_6-Jul-06 19:22
_AK_6-Jul-06 19:22 
QuestionEdit in PlaceHolder Pin
varun_khanna176-Jul-06 0:58
varun_khanna176-Jul-06 0:58 
AnswerRe: Edit in PlaceHolder Pin
Vipin Venugopal6-Jul-06 1:00
Vipin Venugopal6-Jul-06 1:00 
GeneralRe: Edit in PlaceHolder Pin
varun_khanna176-Jul-06 2:07
varun_khanna176-Jul-06 2:07 
QuestionNumbering the datagrid Pin
Vipin Venugopal6-Jul-06 0:54
Vipin Venugopal6-Jul-06 0:54 
AnswerRe: Numbering the datagrid Pin
psamy6-Jul-06 1:09
psamy6-Jul-06 1:09 
AnswerRe: Numbering the datagrid Pin
mnaveed6-Jul-06 1:19
mnaveed6-Jul-06 1:19 
GeneralRe: Numbering the datagrid Pin
Vipin Venugopal6-Jul-06 2:30
Vipin Venugopal6-Jul-06 2:30 
QuestionWhat security settings do I need to allow a web page to use a webservices method to write to an xml file? Pin
Red_Wizard_Shot_The_Food6-Jul-06 0:54
Red_Wizard_Shot_The_Food6-Jul-06 0:54 
AnswerRe: What security settings do I need to allow a web page to use a webservices method to write to an xml file? Pin
Paddy Boyd6-Jul-06 1:31
Paddy Boyd6-Jul-06 1:31 
GeneralRe: What security settings do I need to allow a web page to use a webservices method to write to an xml file? Pin
Red_Wizard_Shot_The_Food6-Jul-06 2:28
Red_Wizard_Shot_The_Food6-Jul-06 2:28 
GeneralRe: What security settings do I need to allow a web page to use a webservices method to write to an xml file? Pin
Talal Sultan6-Jul-06 3:06
Talal Sultan6-Jul-06 3:06 
QuestionSubmitting an XML file to a URL Pin
Talal Sultan6-Jul-06 0:48
Talal Sultan6-Jul-06 0:48 
QuestionASP Search Engine [modified] Pin
Prashant C6-Jul-06 0:40
Prashant C6-Jul-06 0:40 
AnswerRe: ASP Search Engine Pin
RichardGrimmer6-Jul-06 1:17
RichardGrimmer6-Jul-06 1:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.