|
You can use Skins and set the SkinID of the master page in the page load of your page. You could put some javascript in the page that sets the href on the link tag. You could put all your styles in one stylesheet and have the master refer to that rather than having lots of different stylsheets that you need to switch between. There are lots of options.
|
|
|
|
|
<script language="JavaScript">
<!--
/*
No rightclick script v.2.5
(c) 1998 barts1000
barts1000@aol.com
Don't delete this header!
*/
var message="Sorry, that function is disabled.\nThis Page Copyrighted and\nImages and Text protected!\nALL RIGHTS RESERVED";
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
-- Modified Wednesday, May 26, 2010 3:06 AM
|
|
|
|
|
You should try to clarify your question first.
Read the thread on the top of the forum messages "How to get an answer of your question".
Life is a stage and we are all actors!
|
|
|
|
|
Please go through this post before posting a question.
My signature "sucks" today
|
|
|
|
|
Are you sprinkling the world with random JavaScript you didn't write??
|
|
|
|
|
You do realise you can simply view the page source without using the right button click?
^-^-^-@@-^-^-^
(..)-----;
||---||
^^ ^^
Moose.
|
|
|
|
|
Hi,
I'm searching for Microsoft .NET Framework 3.0 Configuration tool in VISTA, to see and manage the assemblies and code groups etc.
I didn't find Microsoft .Net Configuration in Administrative Tools. May be I didn't install framework SDK. Can you let me know where I can get the free SDK download. I googled, but didn't find the freeware. Thanks in advance..
|
|
|
|
|
After .NET 2.0 this tool is no longer supported.MSDN said that you could use it even with newer .NET versions.
Read this blog post how to get the tool.
Life is a stage and we are all actors!
|
|
|
|
|
Hi All,
I am creating a .NET layer "X" (a dll) to be used as an "api" to my other .NET applications that can be either a window or a console. This layer "X" uses an unmanage c++ code that sends windows-messages using ::SendMessage / ::PostMessage. So i thought I created a System.Window.window instance (and hide the window) in Layer X so that Layer X can receive and handle the window messages from the unmanage code.
The problem:
The receive message works, but now Layer X can not close itself. Even after the application that uses it terminates, somehow the process left hanging because Layer X is unable to clean itself up and have a hidden window hanging. I put "window.Close()" in Layer X's ~Destructor. But the ~Destructor itself is never invoked. I think it's a chicken and egg problem.
Comments and suggestion are highly appreciated.
-Chris
|
|
|
|
|
why not send a WM_CLOSE to the hidden window? you could do so in the FormClosing event of your WinApp's main form; or explicitly at the exit point of your ConsoleApp.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Hi Luc,
Thanks for replying. Yes I could do that, but I am trying to make this Layer X independent of the application that uses it. In other words, it will be nice for the applications that use it to not have to know that they need to call Close() on Layer X.
But maybe i can make Layer X to know the application window and set it as Layer X window's window owner. Maybe then the WM_CLOSE is done automatically.
|
|
|
|
|
yes, I expect turning the main form into the hidden window's owner would suffice.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Hi Experts,
i have created one custom validator SSNValidator
I am setting validation result Tag property = 101.
ValidationResult val = new ValidationResult("Invalid Area 101", currentTarget, "SSN Number", "101", null);
But at client side when i catch validationfault exception i am not able to get Tag=101 instead i am getting Tag=client
Please help me out
Thanks
modified on Tuesday, May 25, 2010 10:01 AM
|
|
|
|
|
i know that in .net it supports both instantiated and static methods to assign in the threadstart delegate, and also i have the knowledge about static and instantiated methods, let me explain the question:
class client
{
public static void thisStaticMethod(object obj)
{
}
public void thisInstantiatedMethod(object obj)
{
}
}
above are the two methods i have and what i want to know what happens when we call the static method in ThreadStart delegate and what happens when we call instantiated method in ThreadStart delegate.
for each thread does it creates a separate instance of the method regardless of whether it is static or instantiated. or what happens behind the screen.
|
|
|
|
|
code never gets instantiated; it exists once, on disk; gets loaded in memory; gets executed in a process, by one thread, or by multiple threads, it does not care. Your cookbook does not care how many cooks are reading it.
Data is different; at the class level, instance data resides in the object; and static data resides in the class (and exists once); all threads can access all such data (and that is exactly why we normally need thread synchronization, we don't want several cooks stirring the same pot of data).
Method local data (whether the method is static or not) resides on the stack of the executing thread (each thread has its own stack), so method local data is always separate.
Conclusion: passing a static or an instance method to a secondary thread, is of the same significance as executing a static or an instance method on the main thread. Most of the time, instance methods (and instance data) is preferred over static ones (static gets often abused); when using multiple threads, this is still true, if not even more so.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
|
i have the idea about inheritance, but the problem is about the performance when a child class is assigned to a parent class.
please let me explain.
class A is the parent of class B ,an d is the parent of C like wise
A->B->C->D->E->F->G
then i know that when i create an object from class G all the constructors from A to G is called.
Now when i'm assigning an object of G to object of A
A aa = new A();
G gg = new G();
aa = gg;
object "gg" is casted to A type , then is this happens like it happened in creating "gg" all through the hierarchy, or is it just one step from G to A... or is something else happens.. and what about the performance?
|
|
|
|
|
prasadbuddhika wrote: it happened in creating "gg" all through the hierarchy,
No. AFAIK, it is just one step.
Type casting performance - you might want to take a look here.
My signature "sucks" today
modified on Monday, May 24, 2010 11:18 AM
|
|
|
|
|
prasadbuddhika wrote: A->B->C->D->E->F->G
A aa = new A();
G gg = new G();
aa = gg;
nothing gets cast. All the last statement does is forget the existing instance of class G is a highly specialized instance of class A.
If class G represents gray cats, and A represents animals, gg may be the little gray kitten you found yesterday on your doorstep and decided to call Fluffy; still your last statement just says: I'll forget it is gray, I'll forget it is a cat, I just remember it is an animal. But then, it won't meow anymore, as the Meow() method is not in class A, it only exists in F and G.
There is no activity involved.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
thanx for tour explanation
|
|
|
|
|
this is called upcasting.
Reference is to 'A', but type still remains 'G'.
This type of upcast later is very useful in dynamic method dispatch.
|
|
|
|
|
thanx new word for me upcasting
|
|
|
|
|
Hello all!
I'm new to asp.net and i'm trying to bind some XML data to a gridview.
abviously I'm not understanding how to do it properly because that my code doesn't seem to
work...Can anyone could help me please?
this is my xml:
#########################################
<?xml version "1.0" encoding "utf-8"?>
<dictionary>
<item>
<key>
<string> hello world </string>
</key>
<value> <anytype xmlns:q1="http://www.w3.org/2001/XMLSchame" d4p1:type="q1:int"
xmlns:d4p1="http-instance">45</anytype>
</value>
</item>
</dictionary>
and this is my code:
########################################
string path = "D:\\myXmlFile.xml";
DataSet oDs = new DataSet();
oDs.ReadXml(path);
GridView1.DataSource = oDs;
GridView1.DataBind();
thanks
Tom
modified on Saturday, May 22, 2010 8:57 AM
|
|
|
|
|
You would actually find more people answering this question if you would post it in the ASP.Net forum.
My signature "sucks" today
|
|
|
|
|