Questions tagged [server.transfer]

106 questions
1
vote
0 answers

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive

I am getting this error in my .net(Azure) application:- Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive... I am rewritting the URL(am using server.transfer for this) When…
kapil
  • 371
  • 1
  • 6
  • 10
1
vote
2 answers

IIS7 ASPX 404 Error Pages / Server.Transfer and problems with relative paths

I am trying to implement a universal .NET 3.5 ASPX 404 error page that handles both "not found" requests in IIS 7 (classic mode) as well as 404 HttpExceptions thrown in code. I am avoiding customErrors as I want a true 404 return code rather than a…
1
vote
2 answers

Server.Transfer Method

When should I use Server.Transfer() method? What is the advantage of using this method?
Vishal Bhatia
  • 31
  • 1
  • 3
1
vote
2 answers

Chrome fails to load resources when using Server.Transfer or Response.Redirect

This is not a "why don't my resources load in Chrome" question. I have a site in development (VS 2015 - C#). My site starts off like this: Default.aspx loads Server.Transfer("view.aspx"); This works fine and all resources (jquery, bootstrap, css…
Frank M
  • 1,379
  • 9
  • 18
1
vote
1 answer

How to create a server control on another ASPX file

I am developing a C#/SQL ASP.NET web application in VS 2008. Currently, I am transferring control from one ASPX file to another: if (uploadFile.PostedFile.ContentLength > 0) { inputfile = System.IO.File.ReadAllText(path); …
salvationishere
  • 3,461
  • 29
  • 104
  • 143
1
vote
1 answer

Url doesn't change using Server.Transfer within an HttpModule

I've got an HttpModule that cleans up hyphens in urls in the BeginRequest, so that I can have a script file called MyFile.asp, but let it be invoked with an endpoint like /my-file.asp. (Yes, it's Classic ASP, not yet migrated to .NET.) The code…
Joshua Frank
  • 13,120
  • 11
  • 46
  • 95
1
vote
2 answers

Browser URL changing even after using Server.Transfer

I am using Asp.net 4.0. I do a server.transfer from page 1 to page 2. The URL remains page 1. Now I click a link on page 2 and that will transfer me to page 3. So the URL should remain page 1. Instead the browser now shows the URL of page 2. Is that…
Arjun Sharma
  • 595
  • 2
  • 9
  • 23
1
vote
3 answers

How to use Server.Transfer or Response.Redirect from ajax UpdatePanel?

How to use Server.Transfer or Response.Redirect from ajax UpdatePanel?
Asem Ibohal
  • 59
  • 2
  • 6
1
vote
1 answer

Server Transfer with preserveForm true in EventHandler refires that event Handler

Server Transfer with preserveForm true in EventHandler refires that event Handler and causes infinite loop. MY QUESTION: How can I indicate in the handler that the event has been handled. PS: I know we can set the preserveForm to false, but I dont…
1
vote
1 answer

server.transfer between applications

I have 3 applications under 1 solution with the following structure, WebSoln, WebApp > Default.aspx SSOApp > SSO.aspx (contains only redirection to Default.aspx) TestApp > Test.aspx page I have set the TestApp as the starting project and now I…
1
vote
1 answer

How Do I Copy Info From Wikipedia Table To Combo Boxes? Visual Basic.Net

need to somehow copy the number of seasons and episodes in each season from a Wikipedia table into two combo boxes. One for seasons and the other for episodes. The apps supposed to allow the user to type in their favorirte show in the top input…
Santa
  • 103
  • 1
  • 3
  • 16
1
vote
1 answer

After Server.Transer Ajax doesn't work when requesting a page method

In the page_load of page A I Server.Transfer to Page B (Server.Transfer("B.aspx");) Then on page B I have a simple html button that has the onclick="ajaxFunction();"; function ajaxFuntion() { $.ajax({ type: "POST", url:…
1
vote
1 answer

Invalid viewstate error when posting back to same page

I'm having some issues with an Invalid Viewstate error and I can understand why it's happening but I don't know how to fix it. I have a page which is similar to this /story/?id=123 but I'm using a different page to Server.Transfer to this page. So…
Jamie Taylor
  • 3,500
  • 21
  • 65
  • 99
0
votes
1 answer

Classic ASP Redirecting Title Issue

Just wondering what limitations there are in ASP doing a Server.Transfer two levels? So a page transferring to another page that then transfers to one more page. Here is our current setup. In an attempt to please SEO, we have created "fake" URLs…
Sami.C
  • 561
  • 1
  • 11
  • 24
0
votes
3 answers

How to redirect user another .NET page (in same domain) but not change URL in addressbar?

I'm working on a company website that allows users to have their own homepage under the same domain. The URL would look similar to http://mydomain.com/UserName We have each user's content saved in a database which gets displayed on a page be…
Spidergirl
  • 23
  • 7