|
Hi Mark,
Thanks for the link. I highly appreciate.
As you asked if I know how Response.Redirect works, I just know that it sends HTTP Status code 302 and send HTTP Header 'Location' with the url I request. I did not get why it is a bad idea ? Can you please point me any article which explains about the side effects of Response.Redirect ?
Regards.
|
|
|
|
|
Response redirect sends a request to the client which immediately make another request to the server for the resource which is then sent back. An unnecessary round trip and waste of resources in most cases.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Have a look here[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hello!
Just downloaded VS2010 and I'm looking for a complete tutorial about ASP.NET MVC2. Most of the sites like www.asp.net has no article about it
and i could'nt find anything interesting from begginer perspective.
Could anyone send me a link ? Or write and article about it ? I have a little bit background in web-forms but some topics in MVC are.... strange for me
TIA
Adrian
Adrian Pasik
|
|
|
|
|
There are some articles here, have you searched? ASP.NET MVC - Part 1[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Yup and i want more
Adrian Pasik
|
|
|
|
|
is there any process or code so that once user logout thay cant not able to go back to there login page(from which page they are logout).
Thanks
|
|
|
|
|
If the user logs out and can't go back to the login page how will they ever return to your site?
I think you need to edit your question to make it more clear what you are asking
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Yes..its neccessary to prevent using web pages after being logged out.
there are following ways to do that...
if u r storing some session information while user logs in
clear it or abondon the session on logout event
Session.Abandon();
secondaly u can also clear the browser history on log out event
so that user cant navigate back
history.go(-history.length);
third, if ur using asp.net u can force ur page to load from server every
time instead from client cache. by this if user logs out and navigate back to
previous page he will be redirected to login page
mark property OutputCache to None or NoStore of Page
|
|
|
|
|
Why are you responding?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Web.Config
<system.web>
<authentication mode="Forms">
<forms loginurl="Your Login page" protection="Validation" timeout="60">
|
|
|
|
|
If you mean user should not be able to go back to the page they logged out from, yes, this is very much possible.
I would like to inform you that this is asked here so many times. So do a CodeProject search[^] and you will get a lot of hits.
I will give you a hint. Search for "disable back button" or just "disable back" for more results (select only question and answer check box to get results from Question and Answers). See if that helps you.
If you still don't understand, get back and explain your problem.
|
|
|
|
|
Yes..its neccessary to prevent using web pages after being logged out.
there are following ways to do that...
if u r storing some session information while user logs in
clear it or abondon the session on logout event
<b>Session.Abandon();</b>
secondaly u can also clear the browser history on log out event
so that user cant navigate back
<b>history.go(-history.length);</b>
third, if ur using asp.net u can force ur page to load from server every
time instead from client cache. by this if user logs out and navigate back to
previous page he will be redirected to login page
mark property <b>OutputCache to None or NoStore</b> of <b>Page</b>
|
|
|
|
|
Hi,
you can set the path of the login page in the web.config:
<authentication mode="Forms">
<forms loginUrl="Login.aspx" timeout="600" defaultUrl="Home.aspx"></forms>
</authentication>
|
|
|
|
|
I have my ASP.NET application working fine under Visual Studio's integrated web server.
Also I have set up IIS with my files and can access my application via browser
But My problem is there is a login form which is not working in IIS
but the same login form is working in Visual Studio.
The username and password are not stored in database. I used Form authentication.
My web.config part is shown below
allow roles="Administrators"
deny users="*"
I have everything working fine except the login form in IIS.
Login form is perfectly working under Visual Studio.
Plz help me
|
|
|
|
|
|
DO NOT CROSS POST!
Remove the one that has not had any answers posted to it and read the forum guidelines.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi All,
I am Using Dataset while Reading Values from Excel file .. Evrything is wrking fine but Dataset leave blank some columns , as these columns are in Excel file...
Please help me if u have any idea...
Thanks
prabhakar dwivedi
|
|
|
|
|
prabhakar dwivedi wrote: Evrything is wrking fine but Dataset leave blank some columns , as these columns are in Excel file...
What does this mean? You need to elaborate a little more and explain what is expeced and whats happening.
|
|
|
|
|
hello every one. am trying to create Image from byte array in my page. First i create the image by System.Drawing.Image then am trying to convert System.Drawing.Image to System.Web.UI.WebControls.Image. but the compiler says "Cannot convert type 'System.Drawing.Image' to 'System.Web.UI.WebControls.Image'". So any one please help me.Thxs.
|
|
|
|
|
You can convert to directly to one another.
You need to point the src of the webcontrols.image to an aspx script which then writes the drawing.image to the response stream.
|
|
|
|
|
plz can u make it more brief? thxs.
|
|
|
|
|
Hi All
Please provide code for page ranking as soon as possible.
thanks in advance.....
|
|
|
|
|
rummer wrote: provide code for page ranking
rummer wrote: as soon as possible.
Please use Google Search immediately!!!
We, help those who have put some effort and are stuck up somewhere. People who just ask for code (that too in a hurry) are not encouraged.
BTW: A simple Google search would had provided you lots o information on Page ranking!
Put some effort!!! Try!
|
|
|
|
|