We are testing a ASP.NET application in Visual Studion 2003 and written in
C#. One of the pages that register new users on this application fails to
redirect to another page when the button is clicked. On the page there is a
button that has been code to save to database and also redirect to the login
page. When you fill out the form and click on this page, it saves the data
into the database but it does nothing after that, it just sits there on the
same page. We checked everytihng in the code and the web.config file. The
web applicaiton is working good on the development workstation (Win XP), but
not working on the server running Windows Server 2003 IIS6. Please help? Any
ideas?
try
{
if(Session["Registrant ID"]!=null)
{
divusername.Vis ible=false;
string registrantId=Se ssion["Registrant ID"].ToString;
string userName=Sessio n["username"].ToString();
if(WRTSPublic.D ataAccess.DataA ccess.UpdateReg istrantDetails( registrantId,us erName,Registan tObj,dsCompenOr g,selectedCount iesArr))
{
Response.Redire ct(TrainingURL, false);
}
}
else
{
if(WRTSPublic.D ataAccess.DataA ccess.InsertReg istrantDetails( RegistantObj,ds CompenOrg,selec tedCountiesArr) )
{
Response.Redire ct(Introduction URL,false);
}
}
}
catch(Exception ex)
{
ExceptionCatch. RegisterLog(ex. Message);
}
} 5 2130
Hi,
Where did you declare the variables used in the Response.Redire ct()? Also
try using Server.Transfer and see if that works.
Thanks
"ODAN" wrote: We are testing a ASP.NET application in Visual Studion 2003 and written in C#. One of the pages that register new users on this application fails to redirect to another page when the button is clicked. On the page there is a button that has been code to save to database and also redirect to the login page. When you fill out the form and click on this page, it saves the data into the database but it does nothing after that, it just sits there on the same page. We checked everytihng in the code and the web.config file. The web applicaiton is working good on the development workstation (Win XP), but not working on the server running Windows Server 2003 IIS6. Please help? Any ideas?
try
{
if(Session["Registrant ID"]!=null)
{
divusername.Vis ible=false;
string registrantId=Se ssion["Registrant ID"].ToString;
string userName=Sessio n["username"].ToString();
if(WRTSPublic.D ataAccess.DataA ccess.UpdateReg istrantDetails( registrantId,us erName,Registan tObj,dsCompenOr g,selectedCount iesArr))
{
Response.Redire ct(TrainingURL, false);
}
}
else
{
if(WRTSPublic.D ataAccess.DataA ccess.InsertReg istrantDetails( RegistantObj,ds CompenOrg,selec tedCountiesArr) )
{
Response.Redire ct(Introduction URL,false);
}
}
}
catch(Exception ex)
{
ExceptionCatch. RegisterLog(ex. Message);
}
}
The variables are in the web config; here is one of them:
<add key="TrainingUR L" value="http://System/Training.aspx" />
We have actually gone as far as had coding the reponse.redirec t
( http://Systemfullpath/Training.aspx) in the .cs file. It works on the
development workstation but not on the IIS6 server.
"Sridhar" <Sr*****@discus sions.microsoft .com> wrote in message
news:70******** *************** ***********@mic rosoft.com... Hi,
Where did you declare the variables used in the Response.Redire ct()? Also try using Server.Transfer and see if that works.
Thanks
"ODAN" wrote:
We are testing a ASP.NET application in Visual Studion 2003 and written in C#. One of the pages that register new users on this application fails to redirect to another page when the button is clicked. On the page there is a button that has been code to save to database and also redirect to the login page. When you fill out the form and click on this page, it saves the data into the database but it does nothing after that, it just sits there on the same page. We checked everytihng in the code and the web.config file. The web applicaiton is working good on the development workstation (Win XP), but not working on the server running Windows Server 2003 IIS6. Please help? Any ideas?
try
{
if(Session["Registrant ID"]!=null)
{
divusername.Vis ible=false;
string registrantId=Se ssion["Registrant ID"].ToString;
string userName=Sessio n["username"].ToString();
if(WRTSPublic.D ataAccess.DataA ccess.UpdateReg istrantDetails( registrantId,us erName,Registan tObj,dsCompenOr g,selectedCount iesArr))
{
Response.Redire ct(TrainingURL, false);
}
}
else
{
if(WRTSPublic.D ataAccess.DataA ccess.InsertReg istrantDetails( RegistantObj,ds CompenOrg,selec tedCountiesArr) )
{
Response.Redire ct(Introduction URL,false);
}
}
}
catch(Exception ex)
{
ExceptionCatch. RegisterLog(ex. Message);
}
}
Hi Sridhar,
We are having two different applications. One application is having
Forms Authentication and another one is having Windows Authentication. We
define the URL in web.config files of two application so that it would
redirect to each application without chaning in the code behind file. But
when we are giving Response.Redire ct() method it is not redirecting to the
particular page in test server which is working in the development server.
Can you please guide us what would be the problem?
Regards,
Odan
"Sridhar" <Sr*****@discus sions.microsoft .com> wrote in message
news:70******** *************** ***********@mic rosoft.com... Hi,
Where did you declare the variables used in the Response.Redire ct()? Also try using Server.Transfer and see if that works.
Thanks
"ODAN" wrote:
We are testing a ASP.NET application in Visual Studion 2003 and written in C#. One of the pages that register new users on this application fails to redirect to another page when the button is clicked. On the page there is a button that has been code to save to database and also redirect to the login page. When you fill out the form and click on this page, it saves the data into the database but it does nothing after that, it just sits there on the same page. We checked everytihng in the code and the web.config file. The web applicaiton is working good on the development workstation (Win XP), but not working on the server running Windows Server 2003 IIS6. Please help? Any ideas?
try
{
if(Session["Registrant ID"]!=null)
{
divusername.Vis ible=false;
string registrantId=Se ssion["Registrant ID"].ToString;
string userName=Sessio n["username"].ToString();
if(WRTSPublic.D ataAccess.DataA ccess.UpdateReg istrantDetails( registrantId,us erName,Registan tObj,dsCompenOr g,selectedCount iesArr))
{
Response.Redire ct(TrainingURL, false);
}
}
else
{
if(WRTSPublic.D ataAccess.DataA ccess.InsertReg istrantDetails( RegistantObj,ds CompenOrg,selec tedCountiesArr) )
{
Response.Redire ct(Introduction URL,false);
}
}
}
catch(Exception ex)
{
ExceptionCatch. RegisterLog(ex. Message);
}
}
Is authentication involved here? It sounds like it does not want to
leave the current page no matter what you do. You may want to try
calling...
FormsAuthentica tion.RedirectFr omLoginPage
You can find more here... http://msdn2.microsoft.com/en-US/lib...loginpage.aspx
We found a solution to this problem. It was the smartnav. We disable the
smartnav before the reponse.redirec t statement and voila, it works.
"ODAN" <ol****@hotmail .com> wrote in message
news:er******** ********@TK2MSF TNGP04.phx.gbl. .. We are testing a ASP.NET application in Visual Studion 2003 and written in C#. One of the pages that register new users on this application fails to redirect to another page when the button is clicked. On the page there is a button that has been code to save to database and also redirect to the login page. When you fill out the form and click on this page, it saves the data into the database but it does nothing after that, it just sits there on the same page. We checked everytihng in the code and the web.config file. The web applicaiton is working good on the development workstation (Win XP), but not working on the server running Windows Server 2003 IIS6. Please help? Any ideas?
try
{
if(Session["Registrant ID"]!=null)
{
divusername.Vis ible=false;
string registrantId=Se ssion["Registrant ID"].ToString;
string userName=Sessio n["username"].ToString();
if(WRTSPublic.D ataAccess.DataA ccess.UpdateReg istrantDetails( registrantId,us erName,Registan tObj,dsCompenOr g,selectedCount iesArr))
{
Response.Redire ct(TrainingURL, false);
}
}
else
{
if(WRTSPublic.D ataAccess.DataA ccess.InsertReg istrantDetails( RegistantObj,ds CompenOrg,selec tedCountiesArr) )
{
Response.Redire ct(Introduction URL,false);
}
}
}
catch(Exception ex)
{
ExceptionCatch. RegisterLog(ex. Message);
}
}
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: gtea |
last post by:
I am using response.redirec to do the url redirection on my login page. The
login page is under http://myURL/test/dir1/login.aspx, when the user login
successfully, the login page redirects the user to the default.apsx page,
which is under http://myURL/test/dir1/default.aspx.
When I enter the IP address of myURL in the address bar, the redirection
works perfectly fine, but if I enter myURL (which is hostname) in the address
bar, the...
|
by: tomer |
last post by:
Clear DayHello,
I have implemented a download manger in .NET that overrides Internet
Explorer's bult-in download manager.
I using HttpWebRequest/Response to download the files.
All is working well except when I try to download an attachment file from a
web-based mailbox.
I've tried using credentials and saving the cookies, nothing helps.
|
by: Jack Wright |
last post by:
Dear All,
The following is the setting on IIS on a typical Client Server we
are working on
Authentication Methods
Anonymous access
(No user name/password required to access this resource.)
Account used for anonymous access:
User name: IUSR_PC-JACK-LP
Password: xxxxxx
|
by: Dr. Paul Caesar - CoullByte (UK) Limited |
last post by:
Hi,
I have created a Logout ASP.NET application using Forms Authentication.
When a user logs out they get a confirmation page confirming logout and a
button to click to return to the homepage.
We have the page designed so that if the user is not authenticated then they
get redirected using Response Redirect method to the homapage.
|
by: souissipro |
last post by:
Hi,
I have written a C program that does some of the functionalities
mentionned in my previous topic posted some days ago. This shell
should:
1- execute input commands from standard input, and also from a file
conatining the commands
2- does the redirection of the input and output from and to files.
3- retrieve the environment variables like HOME,..
| |
by: plumpnation |
last post by:
I have now got this bulky piece of script working, it reads the form correctly, which sends the request to the web service using SOAP. It conforms to their DTD and the web service then responds and sends an xml document back to the page.
I would very much like the contents of the form to be entered into an sql database as it is sent to the web service, as their reply does not contain the full details filled into the form.
Aside from the...
|
by: chandra.somesh |
last post by:
I generally use Response.Redirect(url,false) for redirections.
Is there a size constarint on the HTTP Response Location Header ?
Also Is the behavior defined if we exceed this limit?
In my web app there are cases where the url being passed to the
redirection method is very long.What should be the expected behavior in
such cases? In my case this results in no redirection.
|
by: CF |
last post by:
Hi,
I have made a Forms Authentication application, which is working good. Only
problem that I have is with redirection.
Here is my code:
LdapAuthentication adAuth = new LdapAuthentication(adPath);
try {
if(true == adAuth.IsAuthenticated(txtDomain.Text, txtUsername.Text,
|
by: nutso fasst |
last post by:
Hello.
IIS 4 website with a custom 404 error page WAS working OK, but at some
point it wacked out. In the logs there were no 404 error responses. Instead,
what were recorded were 200(OK) responses with my custom 404 page.
Researching, I found that when a non-existent resource was requested,
instead of directly responding with the 404 error page, the server responded
with 302 (Found / Moved
Temporarily) and a redirection to my custom...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |