Click here to Skip to main content
15,886,030 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionIs this even possible: populating a Grid w/Sql and Oracle in same query Pin
Member 389525226-Aug-08 6:03
Member 389525226-Aug-08 6:03 
QuestionRe: Is this even possible: populating a Grid w/Sql and Oracle in same query Pin
led mike26-Aug-08 6:49
led mike26-Aug-08 6:49 
AnswerRe: Is this even possible: populating a Grid w/Sql and Oracle in same query Pin
Member 389525226-Aug-08 7:12
Member 389525226-Aug-08 7:12 
GeneralRe: Is this even possible: populating a Grid w/Sql and Oracle in same query Pin
led mike26-Aug-08 7:17
led mike26-Aug-08 7:17 
AnswerRe: Is this even possible: populating a Grid w/Sql and Oracle in same query Pin
Mark J. Miller26-Aug-08 8:28
Mark J. Miller26-Aug-08 8:28 
AnswerRe: Is this even possible: populating a Grid w/Sql and Oracle in same query Pin
Abhishek Sur26-Aug-08 10:48
professionalAbhishek Sur26-Aug-08 10:48 
QuestionLoading an ascx control in DotNetNuke Pin
Rocky#26-Aug-08 5:46
Rocky#26-Aug-08 5:46 
QuestionURL rewrite Pin
C. L. Phillip26-Aug-08 4:55
C. L. Phillip26-Aug-08 4:55 
I have been trying to do a url rewrite in my web application. I implement the Application_BeginRequest function in the Global.asax file.

This part works
context.RewritePath("form.aspx?submission=" + value, false);

however, the requests that follow use form.aspx as the base url still. For examples, when the browser request css files or images
"http://www.site.com/form.aspx/css/date_input.css"

I'd like the urls to resolve normally
"http://www.site.com/css/date_input.css"

I thought if I called rewritepath(string,boolean) with false for the boolean that it would prevent maintain the original url base.

I'm using .net 3.5, visual studio 2008
<code>
   protected void Application_BeginRequest(object sender, EventArgs e) {
            HttpContext context = HttpContext.Current;
            string originalPath = context.Request.Url.ToString();
            int index = originalPath.IndexOf("/form.aspx/");
            if (index > -1) {
                index = originalPath.LastIndexOf('/');
                string data = originalPath.Substring(index + 1);
                int value = Utils.decryptID(data);
                //context.RewritePath(path,true);
                context.RewritePath("form.aspx?submission=" + value, false);
  
            }
        }</code>


Help please
AnswerRe: URL rewrite Pin
Mark J. Miller26-Aug-08 5:38
Mark J. Miller26-Aug-08 5:38 
GeneralRe: URL rewrite [modified] Pin
C. L. Phillip26-Aug-08 7:48
C. L. Phillip26-Aug-08 7:48 
GeneralRe: URL rewrite Pin
Mark J. Miller26-Aug-08 8:18
Mark J. Miller26-Aug-08 8:18 
GeneralRe: URL rewrite Pin
C. L. Phillip26-Aug-08 8:52
C. L. Phillip26-Aug-08 8:52 
QuestionProblem with page post back Pin
Gretna26-Aug-08 4:44
Gretna26-Aug-08 4:44 
AnswerRe: Problem with page post back Pin
Christian Graus26-Aug-08 11:45
protectorChristian Graus26-Aug-08 11:45 
GeneralRe: Problem with page post back Pin
Gretna26-Aug-08 23:45
Gretna26-Aug-08 23:45 
QuestionASP.net 1.1 to 2.0 Migration Issue(of xsd files) Pin
pashitech26-Aug-08 4:43
pashitech26-Aug-08 4:43 
Questionweb service error Pin
arkiboys26-Aug-08 4:15
arkiboys26-Aug-08 4:15 
AnswerRe: web service error Pin
LongRange.Shooter26-Aug-08 10:06
LongRange.Shooter26-Aug-08 10:06 
QuestionBind("") for sub objects Pin
Brendan Vogt26-Aug-08 3:55
Brendan Vogt26-Aug-08 3:55 
AnswerRe: Bind("") for sub objects Pin
Gamzun1-Sep-08 21:43
Gamzun1-Sep-08 21:43 
QuestionCrystal Report - Toolbar navigation vanishes the viewer! Pin
Blumen26-Aug-08 2:59
Blumen26-Aug-08 2:59 
AnswerRe: Crystal Report - Toolbar navigation vanishes the viewer! Pin
Blumen26-Aug-08 3:37
Blumen26-Aug-08 3:37 
GeneralRe: Crystal Report - Toolbar navigation vanishes the viewer! Pin
Mohammad Al Hoss26-Aug-08 3:51
Mohammad Al Hoss26-Aug-08 3:51 
GeneralRe: Crystal Report - Toolbar navigation vanishes the viewer! Pin
Blumen26-Aug-08 18:40
Blumen26-Aug-08 18:40 
Questionflash in asp.net Pin
Subin Alex26-Aug-08 1:59
Subin Alex26-Aug-08 1:59 

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.