Click here to Skip to main content
15,886,873 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionWhen is web.config called? Pin
Tripathi Swati26-May-10 0:16
Tripathi Swati26-May-10 0:16 
AnswerRe: When is web.config called? Pin
JHizzle26-May-10 0:23
JHizzle26-May-10 0:23 
GeneralRe: When is web.config called? Pin
Tripathi Swati26-May-10 0:34
Tripathi Swati26-May-10 0:34 
GeneralRe: When is web.config called? Pin
JHizzle26-May-10 0:51
JHizzle26-May-10 0:51 
GeneralRe: When is web.config called? Pin
Tripathi Swati26-May-10 0:54
Tripathi Swati26-May-10 0:54 
GeneralRe: When is web.config called? Pin
Not Active26-May-10 2:29
mentorNot Active26-May-10 2:29 
AnswerRe: When is web.config called? Pin
PIEBALDconsult27-May-10 2:29
mvePIEBALDconsult27-May-10 2:29 
QuestionOpening webpage having stylesheets in masterpage contentplaceholder Pin
mominafiz25-May-10 21:19
mominafiz25-May-10 21:19 
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




<asp:table id="MainPagePath" runat="server" width="100%" height="100%" borderwidth="0">
<asp:tablerow>
<asp:tablecell width="12%">
Image/Logo

<asp:tablecell>
<asp:table id="hospdet" runat="server" width="100%">
<asp:tablerow>
<asp:tablecell>
hospital name


<asp:tablerow>
<asp:tablecell>
Hospital Address


<asp:tablerow>
<asp:tablecell>
Hospital city, pincode


<asp:tablerow>
<asp:tablecell>
Hospital Contact Numbers




<asp:tablecell width="12%">
<asp:table id="docdet" runat="server" width="100%">
<asp:tablerow>
<asp:tablecell> 
<asp:tablecell width="12%">
<asp:button id="logout" runat="server" text="Logout" width="100%">


<asp:tablerow>
<asp:tablecell>
<asp:label id="docid" runat="server" text="ID:">


<asp:tablecell>
<asp:label id="docidval" runat="server" borderstyle="Solid" borderwidth="1" visible="True"
="" width="125px" height="18px">



<asp:tablerow>
<asp:tablecell>
<asp:label id="docname" runat="server" text="Name:">


<asp:tablecell>
<asp:label id="docnameval" runat="server" borderstyle="Solid" borderwidth="1" visible="True"
="" width="125px" height="18px">






<asp:tablerow borderwidth="1" backcolor="Lavender">
<asp:tablecell columnspan="2">
<asp:label id="deptname" runat="server" text="Department:" height="15px">
<asp:label id="deptnameval" runat="server" text="" width="200px" height="15px">

<asp:tablecell>
<asp:label id="date" runat="server" text="Date:" height="15px">
<asp:label id="dateval" runat="server" text="" width="150px" height="15px">


<asp:tablerow>
<asp:tablecell font-size="X-Large" horizontalalign="Center" verticalalign="Bottom">LINKS
<asp:tablecell columnspan="2">
<asp:table id="linktab" runat="server" cellpadding="-1" cellspacing="2" width="100%"
="" borderstyle="Solid" borderwidth="1">
<asp:tablerow horizontalalign="Center" verticalalign="Middle" backcolor="Navy">
<asp:tablecell width="20%">
<asp:linkbutton id="schedlinkbtn" runat="server" font-underline="false" forecolor="White"
="" postbackurl="~/ScheduleList.aspx">Schedule

<asp:tablecell width="20%">
<asp:linkbutton id="pattestreqlinkbtn" runat="server" font-underline="false" forecolor="White"
="" postbackurl="~/PatTestRequest.aspx">Patient:Test Requests

<asp:tablecell width="20%">
<asp:linkbutton id="labelslinkbtn" runat="server" font-underline="false" forecolor="White"
="" postbackurl="~/GenLabels.aspx">Labels

<asp:tablecell width="20%">
<asp:linkbutton id="testresultlinkbtn" runat="server" font-underline="false" forecolor="White"
="" postbackurl="~/TestResults.aspx">Test Results

<asp:tablecell width="20%">
<asp:linkbutton id="reportslinkbtn" runat="server" font-underline="false" forecolor="White"
="" postbackurl="~/default.aspx">Reports


<asp:tablerow horizontalalign="Center" verticalalign="Middle" backcolor="Navy">
<asp:tablecell>
<asp:linkbutton id="stdlinkbtn" runat="server" font-underline="false" forecolor="White"
="" postbackurl="~/TestStandards.aspx">Standards

<asp:tablecell>
<asp:linkbutton id="invlinkbtn" runat="server" font-underline="false" forecolor="White"
="" postbackurl="~/InvRequest.aspx">Inventory

<asp:tablecell>
<asp:linkbutton id="discardlinkbtn" runat="server" font-underline="false" forecolor="White"
="" postbackurl="~/DiscardMaterial.aspx">Discard

<asp:tablecell>
<asp:linkbutton id="manmatlinkbtn" runat="server" font-underline="false" forecolor="White"
="" postbackurl="~/ManageMaterials.aspx">Manage Material

<asp:tablecell>
<asp:linkbutton id="searchlinkbtn" runat="server" font-underline="false" forecolor="White"
="" postbackurl="~/SearchPage.aspx">Search





<asp:tablerow>
<asp:tablecell horizontalalign="Justify" verticalalign="Top">
<asp:table id="linktable" runat="server">
<asp:tablerow>
<asp:tablecell>
Home



<asp:tablerow>
<asp:tablecell>
Schedule Calender





<asp:tablecell columnspan="2" borderstyle="Solid" bordercolor="Black" borderwidth="1px">
<asp:contentplaceholder id="PathologyCPH" runat="server">










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
AnswerRe: Opening webpage having stylesheets in masterpage contentplaceholder Pin
Richard MacCutchan25-May-10 22:27
mveRichard MacCutchan25-May-10 22:27 
AnswerRe: Opening webpage having stylesheets in masterpage contentplaceholder Pin
T M Gray26-May-10 8:03
T M Gray26-May-10 8:03 
QuestionNarayanan [modified] Pin
Narayanan chidambaram25-May-10 20:26
Narayanan chidambaram25-May-10 20:26 
AnswerRe: Narayanan Pin
Hristo-Bojilov25-May-10 20:40
Hristo-Bojilov25-May-10 20:40 
AnswerRe: Narayanan Pin
Abhinav S25-May-10 20:46
Abhinav S25-May-10 20:46 
AnswerRe: Narayanan Pin
Dave Kreskowiak26-May-10 2:09
mveDave Kreskowiak26-May-10 2:09 
AnswerRe: Narayanan Pin
LloydA11130-May-10 11:26
LloydA11130-May-10 11:26 
QuestionNET Framework 3.5 Configuration tool in VISTA Pin
NarVish25-May-10 19:34
NarVish25-May-10 19:34 
AnswerRe: NET Framework 3.5 Configuration tool in VISTA Pin
Hristo-Bojilov25-May-10 20:37
Hristo-Bojilov25-May-10 20:37 
QuestionHow to handle windows message in my .NET layer? Pin
cmartono25-May-10 17:06
cmartono25-May-10 17:06 
AnswerRe: How to handle windows message in my .NET layer? Pin
Luc Pattyn25-May-10 17:23
sitebuilderLuc Pattyn25-May-10 17:23 
GeneralRe: How to handle windows message in my .NET layer? Pin
cmartono25-May-10 17:59
cmartono25-May-10 17:59 
GeneralRe: How to handle windows message in my .NET layer? Pin
Luc Pattyn25-May-10 18:06
sitebuilderLuc Pattyn25-May-10 18:06 
Questionhow to set Tag property of validationresult from WCF ValidationFault Pin
MurtuzaJ25-May-10 3:33
MurtuzaJ25-May-10 3:33 
Questionanother clarification about using static methods and instantiated methods for threads Pin
prasadbuddhika24-May-10 18:24
prasadbuddhika24-May-10 18:24 
AnswerRe: another clarification about using static methods and instantiated methods for threads Pin
Luc Pattyn24-May-10 18:48
sitebuilderLuc Pattyn24-May-10 18:48 
AnswerRe: another clarification about using static methods and instantiated methods for threads Pin
prasadbuddhika25-May-10 2:21
prasadbuddhika25-May-10 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.