|
My understanding (from reading a WCF book) is that web.config is used by IIS when it runs your application.
Your application is basically a plug-in that IIS runs if it has been configured to do so.
I would put my own configuration information somewhere else.
|
|
|
|
|
i got little problem with opening a webpage in masterpage's contentplaceholder.
To open a webpage in contentplaceholder of masterpage i need to do is
remove html tag , head and title... and doctype tag too. along with
this i need to remove runat=server from form tag and put action
instead. and on the top most line '@page' i need to add masterpagefile
attribute. All code except for the first line has to be placed in
asp:content control with ref to master contentplaceholder......
but what i do if my webpage has style sheet ..i cant remove head tag
bcoz it contains style sheet link..and if dont remove style from the
head and try to run removing html tags and doctype....the webpage
opens in masterpage but on clicking on tab which is in webpage takes
me to homepage instead of opening tab.
master page code:
<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Pathology.master.vb"
Inherits="PATHOLOGY.Pathology" %>
<title>Pathology
webpage code .aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestStandards.aspx.vb"
Inherits="PATHOLOGY.TestStandards" %>
<title>Standards
<asp:table id="maintab" runat="server">
<asp:tablerow>
<asp:tablecell>
<asp:table id="content" runat="server">
<asp:tablerow>
<asp:tablecell>
Test Name:
<asp:tablecell>
<asp:dropdownlist id="testnameddl" runat="server">
<asp:tablerow>
<asp:tablecell>
Technique Name:
<asp:tablecell>
<asp:dropdownlist id="techniqddl" runat="server">
<asp:menu id="teststdmenu" borderwidth="0" width="150px" runat="server" orientation="Horizontal"
="" staticmenuitemstyle-cssclass="tab" staticselectedstyle-cssclass="selectedTab" cssclass="tabs" onmenuitemclick="teststd_MenuItemClick" height="16px">
<items>
<asp:menuitem text="Pre-Test & Post-Test" value="0">
<asp:menuitem text="Procedure & Protocols " value="1">
<asp:table runat="server" id="teststdmultiview">
<asp:tablerow cssclass="ViewStyle">
<asp:tablecell>
<asp:multiview id="STDmultiview" runat="server">
<asp:view id="pptestview" runat="server">
<asp:table width="600" height="400" cellpadding="0" cellspacing="0" id="pretesttable"
="" runat="server">
<asp:tablerow verticalalign="top">
<asp:tablecell width="600px">
TAB VIEW 1
<asp:tablerow>
<asp:tablecell>
<asp:button id="pptestbackbtn" runat="server" text="BACK">
<asp:button id="pptestsearchbtn" runat="server" text="SEARCH">
<asp:view id="prprview" runat="server">
<asp:table width="600" height="400" cellpadding="0" cellspacing="0" id="protocoltable"
="" runat="server">
<asp:tablerow verticalalign="top">
<asp:tablecell width="600px">
TAB VIEW 2
<asp:tablerow>
<asp:tablecell>
<asp:button id="prprbackbtn" runat="server" text="BACK">
<asp:button id="prprsearchbtn" runat="server" text="SEARCH">
webpage code .vb
Public Partial Class TestStandards
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub teststd_MenuItemClick(ByVal sender As Object, _
ByVal e As MenuEventArgs) Handles teststdmenu.MenuItemClick
STDmultiview.ActiveViewIndex = Int32.Parse(e.Item.Value)
Dim i As Integer
'Make the selected menu item reflect the correct imageurl
End Sub
End Class
|
|
|
|
|
This is the wrong forum, try Web Development or ASP.NET. Also read the message at the top "How to get an answer".
It's time for a new signature.
|
|
|
|
|
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
|
|
|
|