|
Hi,
Basically what i want to do is to prevent the webBrowser control to stroe the page information in the internet explorer history.. is there any way to do this?
regards
Q@!$3r
|
|
|
|
|
use it...
<%@ OutputCache Duration="0" Location="None" VaryByParam="none" %>
or
VB.NET
Response.Cache.SetCacheability(HttpCacheability.NoCache)
C#
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
well i am using windows form and I think this is for web,,,, sorry if I am wrong..
Q@!$3r
|
|
|
|
|
|
I use response.write() function to send "window.location.hash='anchor'" command to client-end page in .cs file.
It could work good in IE, but not in firefox 2.0. why? how to resolve it? thanks.
|
|
|
|
|
I assume you are referring to javascript? Use DOM methods rather than response.write on the client-side.
Also, IE and FF render and behave differently. For best results, design and test in FF and then port to IE. You will save months!
File Not Found
|
|
|
|
|
could you mind give me some small samples about how to use DOM? Thank you very very much.
|
|
|
|
|
if you have a div whose id attribute is testDiv
function doStuff(){
document.getElementById("testDiv").innerHTML = "I did something";
}
Unfortunately, it is buggy in IE. But IE does support innerText.
File Not Found
|
|
|
|
|
i use window.location.hash just for scroll the page to <anchor>. how should i use DOM to do?
|
|
|
|
|
If you want to scroll the page maybe use anchors? (don't know if it will work here)
Try this
Here
Didn't work so I removed the long breaks
File Not Found
|
|
|
|
|
I defined the anchors.
Could you let me see the sample's source code? Thanks.
By the way, how to use anchors to control the scroll?
|
|
|
|
|
When someone clicks on an anchor the user agent is supposed to direct to it. And in the case of a page anchor, scroll. See the link for more information. Also, I think there is a DOM method to fire the click event? but I do not know.
http://www.w3schools.com/html/html_links.asp
File Not Found
|
|
|
|
|
Thanks a lot.
I want to use c# to control the page scroll. So, the client event maybe doesn't fit this scene.
|
|
|
|
|
I have 2 comboboxes :- DataType & DataFormat
In DataType if i select any type say Time/Date/IPAddress/ID i should be able to load dynamic values to DataFormat based on selected DataType.
Ex:1)DataType ->Date
DataFormat->(A)hh/mm ,(B)hh/mm/yyyy ,(C)mm/dd/yyyy .
2)DataType ->IPAddress
DataFormat ->127.000.000.000, 127.0.0.0
For DataFormat i am using a single StringConverter class.The problem here is am able to load values but always the 1st value gets replaced with selected value.What could be the reason?...
Say,i have date- hh/mm/yyyy format selected.then i change datatype as IPAddress- 127.0.0.0 .Next i come back and select date again ,at that time 1st value displayed in combobox is the selected value- hh/mm/yyyy instead of hh/mm.Now the DataFormat combobox displays duplicate values as :-
(A)hh/mm/yyyy ,(B)hh/mm/yyyy ,(C)mm/dd/yyyy .
Please help me...
|
|
|
|
|
I found a c# example that contained a for loop without any data in it but I don't understand what it means:
"for ( ; ; )"
I was always under the impression that some data needed to be included in a for loop. What does this dataless for loop achieve?
Thanks.
-Goalie35
|
|
|
|
|
It's an infinite loop. Without a break or return in the loop body, this will just loop forever. Alternative ways of doing this include while (true) or while (1 == 1).
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
This is an infinite loop construct. Some people prefer this method for certain activities over while(true) { }. In either case these are infinite loops which can cause problems. If you don't have to use them, don't. Graceful exits to loops are always preferred.
Phil
|
|
|
|
|
It's an endless loop like while (true) .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
An endless loop. while ( true ) does the same thing, a little more clearly in my opinion. Come to think of it, maybe for ( ; true ; ) should be used.
--| "Every tool is a hammer." |--
|
|
|
|
|
Everyone is right that previously replied except for the notion that it is not infinite.
This is infinite
for(;; );
a loop with a body may or may not be infinite depending on the existence of breaks and break conditions.
for(;; ){
...
}
Also, if you are threading a Thread Abort Exception will break any infinite loop; maybe
The only reason I mention this is because there are important points to consider when writing or interpreting those kinds of structures.
File Not Found
|
|
|
|
|
Hi,
I'm one of those programmers who use for(;;) to create what some call an
"infinite loop". I have several comments on the previous entries:
1. As a long time C programmer and having used many different compilers, I dont
write code such as if (true) ... or while(true)... simply because there are compilers
that insist on generating some silly warning ("logic expression is constant" or
something similar); I expect the same for "for(;true;)" which I never tried;
I never got warnings on for(;;) so that is the only form I use; and whoever has seen
it once, knows immediately what the intentions are.
2. I dont use a semi-colon when I want an empty code block; when I need an empty code block, I write one, that is {}.
reason: those two brackets are clearly intentional and adding/deleting one of them
would result in a compilation error, whereas a single semi-colon is easily overlooked
(so it makes it harder to read and understand the code), and adding/removing one
may yield a new source that compiles, but behaves quite differently.
3. although we all know what is meant by "infinite loop", there actually is no
such thing; everything will come to an end: either energy will run out, or
someone will stop your system, or your hardware will fail, or your software
(app or OS) will crash. Guess which one it will be ?
If you are in pursuit of an infinite loop, my first recommendation would be not
to use software in it.
for(;;) Console.WriteLine("I like C#");
Luc Pattyn
[My Articles]
|
|
|
|
|
i had see the ability to do drag and drop in list view but it only for string. Can we drag and drop other than string?
|
|
|
|
|
Hi all
I am having a list<objects> (business ojects) which i need to bind to a datagridview. But the problem is it displays all the properties even if it is not set.
I way to display only specific properties is to hide those columns where the value is null.
I just want to know if there is a another way to bind specific properties only and not all the properties.
Thanx
Farhan
thanx for the support
|
|
|
|
|
hi
i want to call scanner program to scan an image (with code) and capture that image that scaned with scanner app,but how to do ?
|
|
|
|
|
Hi,
I have created and populated a generic collection.
This is the collection.
List<List<Test>> testCurves = new List<List<test>>();
How do I loop through this collection to the lowest hierarchy please?
|
|
|
|