|
|
In my application when i logout i have clear the session but still when i click on browser back button it ll show the pages it should not happen like other site when some one logout and press back button it shows like page has been expired...
I have also tried this ... for the same
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetAllowResponseInBrowserHistory(false);
But it's also not working...
If some has any idea abt this pls help me out...
Thanx & Ragards
Anuj Kamthan
Software Developer
Solversa Technologies,
Pune - 411007, India.
http://www.solversa.com
|
|
|
|
|
You can set Response.IsClientConnected=false when user click on logout and request this value on page load for each page so when you go back if your page found this value as false put Response.Expires=0.
Hope this will help you.
Sushant Mathur
Bangalore,
INDIA.
http://n.domaindlx.com/fun2ssh/HOME.htm
|
|
|
|
|
hei thanx sushant...
thanx buddy yes it's working fine...i have done the same as u said.
thanx & regards
Anuj Kamthan
Software Developer
Solversa Technologies,
Pune - 411007, India.
http://www.solversa.com
|
|
|
|
|
can anyone provide sha1 code in 'C' Language not in any other language and the code should be run in windows or turbo c++.
12
|
|
|
|
|
Hi,
I am facing trouble displaying a web page containing 2 frames in a browser. The page in the uppper frame loads quickly while the one in the bottom frame takes a lot of time to display. The page in the lower frame accesses data from a SQL SERVER 2000.
Harsha kamat
|
|
|
|
|
Is the frameset relevant at all? Does the page load quickly when it's not in the frameset?
How much is "a lot of time"?
---
b { font-weight: normal; }
|
|
|
|
|
Yes the frameset contains two frames. No even if the ASP page in the 2nd frame is loaded separately it takes the same time to load. The page takes approx 3-4 minutes to load. Earlier it used to load very quickly. Plz help.
Thanks.
Harsha kamat
|
|
|
|
|
|
can anyone help me regarding how to retrieve data from sharepoint SQL Db through any of the sharepoint service.
I am having admin right in my machine but it's not the server where sharepoint has been installed. so can i write a c# application to access sharepoint services
anvar sadath
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
HOW TO REPLACE '<' with any other character in Javascript.
for example
Baskar
to
bhtml> Baskar b/html> like this
please help me out it is urgent;)
www
|
|
|
|
|
Use the replace method of the string object:
var s = '<html>Baskar</html>';<br />
var s2 = s.replace(/</g, 'b');
---
b { font-weight: normal; }
|
|
|
|
|
I'm tring to make Animated div textboxes using the litle OOP that javascript has but ending up with some dead ends.
Yeah I have no clue what I'm doing went it comes to OOP with javascript
Any hints on what I could do to make a box like this in OOP us jscript?
It's easy to do when it's not animated, don't even need OOP.
Only reason I need OOP when animted is to keep track of the box being
open and closed to animate for each height of each box, but since
not sure how to do the OOP using jscript, it's behaving weird.
LIVE DEMO NOT ANIMATED
http://cdmlb.homelinux.net/sites/wip/projects/prog_script/javascript/text_block/text_block.html
LIVE DEMO ANIMATED NOT WORING TO WELL PLAY AROUND WITH EACH BOX A FEW TIMES
THE CODE ON THIS PAGE IS THE OOP VERSION< BUT FOR THE DEMO TRIED TO DO IT WITH NO OOP, BECAUSE OOP SUCKS WITH JSCRIPT
http://cdmlb.homelinux.net/sites/wip/projects/prog_script/javascript/anim_text_block/anim_text_block.html
HTML
<br />
<div id="main1" class="main"><br />
<div id="header1" class="header"><br />
<a href="javascript:block1.DisplayBlock;" class="title">CLICK HERE TO OPEN AND CLOSE<⁄a><br />
<⁄div><br />
<div id="body1" class="body"><br />
<p id="content1" class="content"><br />
SOME TEXT GOES HERE.<br />
<⁄p><br />
<⁄div><br />
<div id="footer1" class="footer"><br />
<⁄div><br />
<⁄div><br />
CSS
<br />
.main<br />
{<br />
border: blue thin outset;<br />
width: 430px;<br />
}<br />
<br />
.header<br />
{<br />
border: white thin outset;<br />
background-color: Blue;<br />
text-align: left;<br />
padding: 5px;<br />
color: White;<br />
}<br />
<br />
.title<br />
{<br />
color: White;<br />
}<br />
<br />
.body<br />
{<br />
border: white thin inset;<br />
padding: 0px;<br />
height: 0px;<br />
}<br />
<br />
.content<br />
{<br />
display: none;<br />
text-align: justify;<br />
}<br />
<br />
.footer<br />
{<br />
border: white thin outset;<br />
background-color: Blue;<br />
text-align: right;<br />
padding: 5px;<br />
}<br />
JAVASCRIPT
<br />
var block1 = new AnimBlock("body1", "content1", 200);<br />
<br />
function AnimBlock(body, content, speed)<br />
{<br />
this.body = body;<br />
this.content = content;<br />
this.speed = speed;<br />
this.size = 1;<br />
<br />
AnimBlock.prototype.DisplayBlock = function()<br />
{ <br />
if(this.document.getElementById(this.content).style.display == "block")<br />
{<br />
this.document.getElementById(this.content).style.display = "none";<br />
this.document.getElementById(this.body).style.padding = "0px";<br />
this.CloseBlock();<br />
<br />
this.size = 1;<br />
}<br />
else<br />
{<br />
this.OpenBlock();<br />
this.document.getElementById(this.body).style.padding = "20px";<br />
this.document.getElementById(this.content).style.display = "block";<br />
}<br />
}<br />
<br />
AnimBlock.prototype.OpenBlock = function()<br />
{<br />
this.document.getElementById(this.body).style.height = this.size+"px";<br />
this.size += 5;<br />
setTimeout(function(){OpenBlock();}, this.speed);<br />
}<br />
<br />
AnimBlock.prototype.CloseBlock = function()<br />
{<br />
this.document.getElementById(this.body).style.height = this.size+"px"<br />
this.size -= 5;<br />
<br />
setTimeout(function(){CloseBlock();}, this.speed);<br />
}<br />
}<br />
cdmlb
|
|
|
|
|
No one not even going to look at it thanks?
cdmlb
|
|
|
|
|
A couple quick notes (don't have time to look it over properly just now):
cdmlb@hotmail.com wrote: AnimBlock.prototype.DisplayBlock = function()
Since you're adding this function to the prototype, you really don't need to do it every time an object of that type is instantiated. You can put all those outside of the constructor function and it'll work just fine.
cdmlb@hotmail.com wrote: if(this.document.getElementById(this.content).style.display == "block")
You never assign anything to this.document , so it doesn't exist. In your demo page, the functions are not called as part of an object, and so this is actually a reference to the default scope, which does include document (though prefixing it with this is redundant).
cdmlb@hotmail.com wrote: setTimeout(function(){CloseBlock();}, this.speed);
}
There's no exit condition - you need to stop calling CloseBlock() at some point...
OOP in JS is easy enough, but you can't think about it the same way you do OOP in most other languages.
|
|
|
|
|
yeah I know if have to put an if statment at some time for the open and close functions
just took them out for not until I can get the oop part of it working first
cdmlb
|
|
|
|
|
I think I got the OOP working better now, but I'm dumb and can't get it to animate any comments?
<br />
block1 = new AnimBlock("body1", "content1", 200);<br />
block2 = new AnimBlock("body2", "content2", 200);<br />
block3 = new AnimBlock("body3", "content3", 200);<br />
<br />
AnimBlock.prototype.DisplayBlock = DisplayBlock;<br />
AnimBlock.prototype.OpenBlock = OpenBlock;<br />
AnimBlock.prototype.CloseBlock = CloseBlock;<br />
<br />
function AnimBlock(body, content, speed)<br />
{<br />
this.body = body;<br />
this.content = content;<br />
this.speed = speed;<br />
this.size = 0;<br />
}<br />
<br />
function DisplayBlock()<br />
{ <br />
if(document.getElementById(this.content).style.display == "block")<br />
{<br />
document.getElementById(this.body).style.height = "0px";<br />
document.getElementById(this.body).style.padding = "0px";<br />
document.getElementById(this.content).style.display = "none";<br />
this.CloseBlock();<br />
}<br />
else<br />
{<br />
this.OpenBlock();<br />
document.getElementById(this.content).style.display = "block";<br />
document.getElementById(this.body).style.padding = "20px";<br />
document.getElementById(this.body).style.height = "auto";<br />
}<br />
<br />
this.size = 0;<br />
}<br />
<br />
function OpenBlock()<br />
{<br />
if(this.size <= 100)<br />
{<br />
document.getElementById(this.body).style.height = this.size+"px";<br />
this.size++;<br />
setTimeout(function(){this.OpenBlock();}, this.speed);<br />
}<br />
}<br />
<br />
function CloseBlock()<br />
{<br />
if(this.size >= 0)<br />
{<br />
document.getElementById(this.body).style.height = this.size+"px";<br />
this.size--;<br />
setTimeout(function(){this.CloseBlock();}, this.speed);<br />
}<br />
}<br />
cdmlb
|
|
|
|
|
cdmlb@hotmail.com wrote: this.size = 0;
Should be set to 100 when opening.
|
|
|
|
|
i need to know what is the diffrent in the syntacs of html
between visted link and unvisted link...
i know the coulur become diffrent but when i c the html code i find the same..
|
|
|
|
|
The syntax is the same, the thing that changes the color is the BROWSERS history and not the html itself.
If you want to change the colors of links using Cascading Style Sheets - CSS
<br />
a<br />
{<br />
color: Blue;<br />
}<br />
<br />
a:visited<br />
{<br />
color: Red;<br />
}<br />
cdmlb
-- modified at 21:41 Sunday 2nd April, 2006
|
|
|
|
|
i just want to retrive all links that are visted....
then how can i do this...
|
|
|
|
|
I'm prety sure it's possible, I have it in my head, but could be tricky.
Could always try to use cookies, sessions, you want to do this
with what language, because would not be able to do it with just html,
you would have to do some javascript, or maybe even server side stuff like
asp or php?
cdmlb
|
|
|
|
|
in fact i am working with c#..
and i process the elemnt in the page by ihtmldocoument...
and i could get all links tag...
but i dont know how to get the visted link..
has it unique attribute?
|
|
|
|
|
This could help if you are using IIS webserver for your C# asp.net concept.
The IIS log files show every single page visited, and all links clicked on.
Not for just the current session, but all sessions.
Found this made with that suck VB.net, but could be converted to C#
in some litle time, since the function name are all prety much the same
when it comes to .NET stuff.
http://www.15seconds.com/issue/021119.htm
IIS log files are normaly stored on in location
C:\WINDOWS\system32\Logfiles
Prety sure no attibute for a visited link
only diff is that a visited link is stored in the browsers history,
you click on a link and it gets added to the history/log-files.
cdmlb
|
|
|
|