|
Put this script inside Head tag of the page.
history.forward();
eg.suppose we have to pages.1)default1.aspx
2)default2.aspx
if we apply this script to default1.aspx and we use response.redirect to goto second page(default2.aspx)we cant use back button in default2.apsx
|
|
|
|
|
What will happen if client has disabled javascript. ? You should not relay on javascript never. Moreover it's not a good solution too.
|
|
|
|
|
N a v a n e e t h wrote: if client has disabled javascript
Stone age web browsers.
|
|
|
|
|
chand10 wrote: .Disable the Back Button for that page or
Disabling back button with some scripts is not a good solution. If you don't want user to come back and do changes on previous page, I think you need to disable caching for the first page. But I am not sure with this method
|
|
|
|
|
N a v a n e e t h wrote: to come back
It is better to look ahead in life rather than turning back. My car always prefer to go further take a U-turn instead of using the reverse gears unless otherwise the road conditions stipulate otherwise.
|
|
|
|
|
That's fine. Even me also like to do so. I just told a scenario, I know people who still use old browsers. If full application security is depends on javascript , it still sounds bad for me.
|
|
|
|
|
Hi,
What is the difference between Request.ServerVariables["HTTP_X_FORWARDED_FOR"] and Request.ServerVariables["REMOTE_ADDR"] in Asp.Net. I think both are used for showing the system's IP address. then what's the major difference between both? anybody pls explain me clearly.
Regards
Vijay.
|
|
|
|
|
vijay_83 wrote: HTTP_X_FORWARDED_FOR
The IP address of the system that is actually displaying the webpage.
vijay_83 wrote: REMOTE_ADDR
The Proxy/Firewall right?
Quoting from http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html[^], there should be a VIA header too:
If the response is being forwarded through a proxy, the proxy application MUST NOT modify the Server response-header. Instead, it SHOULD include a Via field (as described in section 14.45).
|
|
|
|
|
hi all,
So I tranfered my application from my local machine to Standard Windows 2003 Server, but Login (Standard Login Control) isn't working anymore, I mean I work without any error but I cant authorize with users I had on my local machine.
Help Please.
-- modified at 3:16 Friday 27th July, 2007
|
|
|
|
|
Well, if the users are on your local machine, why do you expect it to work ? How were they on your machine, in a local DB?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Well I've Moved All files from my local development machine to server including *.mdf files.
|
|
|
|
|
what should be the query for extracting the records from the particular month
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
select * from (tablename) where date between dateadd(dd,1,startdate) and enddate
be broad minded
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
thank you sir
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
SELECT * FROM tblTable WHERE MONTH(colDate) = 1 (or 2 or 3.. or 12)
Eliz.K
www.oin1.com
|
|
|
|
|
simply i deleted some records in the second page, then i returned to first page , page is loading very slow. i call some functions in the first page load.
|
|
|
|
|
Please don't post twice with the same issue.
Realistically, what do you expect us to tell you ? We have no idea what code you're running, what makes you think it's slow, or even if you've tested it more than once. Set breakpoints in your code, and work out which bit of your code is too slow, and if you can't work out why, post it here.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Not sure your question. But please have the PostBack checking on your every page before start your code:
if (!IsPostBack)
{
//Your Code here
}
This will ensure that your code is only run on the first load.
Eliz.K
www.oin1.com
|
|
|
|
|
when i run the application first web page is loading perfectly, then i move to first page to another page, i had deleted some records in the datagrid. i return to first page the loading is very slow and struck. plz give me the solution.I call the some functions in the first page load. based on the second page records.
|
|
|
|
|
What have you tried ? Where are you stuck ? What is arrgent ? Is that when a pirate is in a hurry ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want to open and save functionality inside gridview.
Measn,user select a file from one location and save that file in another location and if he want to view that file he can open that file also.
Thanks
|
|
|
|
|
Hi All,
I want to connect a crystal Report dynamically with database which changes accordingly but the table is same in all the database table name = “Stock “ Also I want to add condition “SELECT * FROM Stock Where Date BETWEEN ‘xyz’ AND ‘abc’” Database is used by me is ACCESS.
Any one help me. Thanks in advance.
Nikesh Kr. Yadav
CSS Infotech
Sec- 31
Gurgaon,
Haryana(India)
|
|
|
|
|
I just asked you what is the problem in the other forum. Pick one forum please, it is rude to cross post
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Looking at your message history, you post every question you have to at least three forums. Please don't do that, it's rude and annoying. Pick the right forum and ask there.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi, I have connected to and retrieved data from the database. I have yet to bind the data to any control since I'm uncertain which one is the most suitable control for storing large text files and displaying large text files. Please point me to a tutorial using asp.net 1.x, most of the ones I came across only show how to display records from the database where the records have only a couple of words instead of a whole page of paragraph. Thank you in advance for your help.
|
|
|
|