Re: [2005] Splitting URL's
wondering if would like to do it this way
Code:
dim strURL as string
strURL = "http://localhost:0000/appname/genericloginpage.aspx?SessionID=numbersandletters".split("?")(0)
Re: [2005] Splitting URL's
That accomplished exactly what I needed!
However, it didn't solve the underlying problem.
I'll just post it here.
I have a variable called virtualpath that I pass as a parameter to another function in a separate class in order to get my necessary app.config variables (connectionstrings, etc.).
However, it seems that every time I set the virtualpath variable on a page, the page times out when it tries to postback.
Re: [2005] Splitting URL's
i think anychages made in app.config file will clear all active session as well as reset all application level vairable and hence any new request comes thereafter will be treated as New session.
Re: [2005] Splitting URL's
I think I understand what you're saying.
But, I'm not changing anything in the web.config (sorry for saying app.config), I'm just getting the values from there.
Re: [2005] Splitting URL's
can you post the method that is causing timeout as well as Actual error message if any?
Re: [2005] Splitting URL's
Well I'm at work, so I can't really post the code on here.
I'm not getting an error message "per se", it's just that whenever I try to navigate on the page, or to another page, I get the generic "Page Cannot be Found" page.
Re: [2005] Splitting URL's
how you are navigating from one page to another?
Re: [2005] Splitting URL's
Either the back button or a button click.
I know the problem has something to do with the virtualpath variable, because if I remove it, I can navigate no problem.
Re: [2005] Splitting URL's
well buddy backbutton is never a reliable source to navigate across application pages ,and its really tough to guess without seeing actual code.
Re: [2005] Splitting URL's
One weird thing I noticed that may be related to my problem.
Whenever I try to navigate on the defaultdisplay.aspx page, I get the page not found and also the development server (localhost) quits. It's weird because the localhost icon is gone from my taskbar, but Visual Studio still shows my app as running. So obviously, if it's trying to postback to my ip address (which isn't going to have the files), I'm going to get the page not found error.
I wonder what's causing the browser to look at my ip instead of the address in the toolbar (which still has the localhost address).
Re: [2005] Splitting URL's
After reading some more, the previous post is not my problem.
I thought the 127... ip was my actual ip, when it is only the "ip" of localhost. So, forgive my mistake.
Now I'm really confused. Why would the localhost just "quit"? I assume that's what is happening since the browser can no longer find the ip address.
Re: [2005] Splitting URL's
Are you actually using :0000 as a port number?