c# - need to get a page heading -
this code when displays, has page heading of main form, how can page heading page?
<asp:content id="content1" contentplaceholderid="maincontent" runat="server"> <table cellpadding="5" cellspacing="5" border="0"> <tr> <td colspan="2" style="width:100px;"> <dx:aspxlabel id="aspxlabel1" runat="server" text="facility name:"></dx:aspxlabel> </td> <td colspan="9"> <dx:aspxtextbox id="tbfacility" runat="server" width="800px"></dx:aspxtextbox> </td> </tr> <tr> <td colspan="2"> <dx:aspxlabel id="aspxlabel3" runat="server" text="resident name:"></dx:aspxlabel> </td> <td colspan="3"> <dx:aspxtextbox id="tbresidentname" runat="server" width="200px"></dx:aspxtextbox> </td> <td > <dx:aspxlabel id="aspxlabel2" runat="server" text="physician name:"></dx:aspxlabel> </td> <td colspan="5"> <dx:aspxtextbox id="tbphysicianname" runat="server" width="200px"></dx:aspxtextbox> </td> </tr> <tr> <td colspan="2"> <dx:aspxlabel id="aspxlabel4" runat="server" text="allergies:"></dx:aspxlabel> </td> <td colspan="9"> <dx:aspxtextbox id="tballergies" runat="server" width="200px"></dx:aspxtextbox> </td> </tr> <tr> <td colspan="2"> <dx:aspxlabel id="aspxlabel5" runat="server" text="diagnosis:"></dx:aspxlabel> </td> <td colspan="9"> <dx:aspxtextbox id="tbdiagnosis" runat="server" width="200px"></dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxlabel id="aspxlabel8" runat="server" text="dob:" width="50px"></dx:aspxlabel> </td> <td align="left"> </td> <td> <dx:aspxtextbox id="tbdob" runat="server" width="100px"></dx:aspxtextbox> </td> <td align="right"> <dx:aspxlabel id="aspxlabel9" runat="server" text="weight:" width="50px"></dx:aspxlabel> </td> <td align="left"> <dx:aspxtextbox id="tbweight" runat="server" width="100px"></dx:aspxtextbox> </td> <td align="right"> <dx:aspxlabel id="aspxlabel10" runat="server" text="height:" width="50px"></dx:aspxlabel> </td> <td align="left"> <dx:aspxtextbox id="tbheight" runat="server" width="100px"></dx:aspxtextbox> </td> <td align="right"> <dx:aspxlabel id="aspxlabel11" runat="server" text="bp:" width="50px"></dx:aspxlabel> </td> <td align="left"> <dx:aspxtextbox id="tbbp" runat="server" width="100px"></dx:aspxtextbox> </td> <td align="right"> <dx:aspxlabel id="aspxlabel12" runat="server" text="pulse:" width="50px"></dx:aspxlabel> </td> <td align="left"> <dx:aspxtextbox id="tbpulse" runat="server" width="100px" ></dx:aspxtextbox> </td> </tr> <tr> <td colspan="11" style="height: 180px"> <dx:aspxroundpanel id="aspxroundpanel1" runat="server" backcolor="#ffffcc" headertext="reason request" width="100%"> <headerstyle font-bold="true" /> <panelcollection> <dx:panelcontent id="panelcontent1" runat="server" supportsdisabledattribute="true"> <table cellpadding="2" style="width: 100%"> <tr> <td width="200"> <dx:aspxcheckbox id="aspxcheckbox1" runat="server" checkstate="unchecked" text="short term stay"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox1" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox2" runat="server" checkstate="unchecked" text="anticipated discharge date"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox2" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox3" runat="server" checkstate="unchecked" text="significant chagne in condition"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox3" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox4" runat="server" checkstate="unchecked" text="other"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox4" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> </table> <br /> </dx:panelcontent> </panelcollection> </dx:aspxroundpanel> </td> </tr> <tr> <td colspan="11"> <dx:aspxroundpanel id="aspxroundpanel2" runat="server" backcolor="#ffffcc" headertext="clinical description of need review (please check apply , explain)" width="100%" height="416px"> <headerstyle font-bold="true" /> <panelcollection> <dx:panelcontent id="panelcontent2" runat="server" supportsdisabledattribute="true"> <table cellpadding="2" style="width: 100%"> <tr> <td style="width:200px;"> <dx:aspxcheckbox id="aspxcheckbox5" runat="server" checkstate="unchecked" text="anorexia and/or unplanned weight loss or gain"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox5" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox6" runat="server" checkstate="unchecked" text="behavioral changes, unusual behavioe patterns (incl. increased distressed behavior)"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox6" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox7" runat="server" checkstate="unchecked" text="bowel function changes incl. constipation; impaction"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox7" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td style="height: 27px"> <dx:aspxcheckbox id="aspxcheckbox8" runat="server" checkstate="unchecked" text="confusion, cognitive decline, worsening of dementia (incl. delirium) of recent onset"> </dx:aspxcheckbox> </td> <td style="height: 27px"> <dx:aspxtextbox id="aspxtextbox8" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td width="200"> <dx:aspxcheckbox id="aspxcheckbox9" runat="server" checkstate="unchecked" text="dehydration, fluid/electrolyte imbalance"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox9" runat="server" width="650px" text=" "> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox10" runat="server" checkstate="unchecked" text="depression; mood disturbance"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox10" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox11" runat="server" checkstate="unchecked" text="dyshangia, swallowing difficulty"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox11" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox12" runat="server" checkstate="unchecked" text="excessive sedation, insomnia, or sleep disturbance"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox12" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td width="200"> <dx:aspxcheckbox id="aspxcheckbox13" runat="server" checkstate="unchecked" text="falls, dizziness, or evidence of impaited condition"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox13" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox14" runat="server" checkstate="unchecked" text="gastrointestinal bleeding"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox14" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox15" runat="server" checkstate="unchecked" text="headaches, muscle pain, generalized aching or pain"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox15" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox16" runat="server" checkstate="unchecked" text="rash; prutus"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox16" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td width="200"> <dx:aspxcheckbox id="aspxcheckbox17" runat="server" checkstate="unchecked" text="seizure activity"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox17" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox18" runat="server" checkstate="unchecked" text="spontaneousor unexplained bleeding/bruising"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox18" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox19" runat="server" checkstate="unchecked" text="unexplained decline in functional status (e.g. adl's, vision)"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox19" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> <tr> <td> <dx:aspxcheckbox id="aspxcheckbox20" runat="server" checkstate="unchecked" text="urinary retention or incontinence"> </dx:aspxcheckbox> </td> <td> <dx:aspxtextbox id="aspxtextbox20" runat="server" width="650px"> </dx:aspxtextbox> </td> </tr> </table> </dx:panelcontent> </panelcollection> </dx:aspxroundpanel> </td> </tr> </table> <br /> </asp:content>
looks you're using master page.
if want specific heading each page (i assuming mean title? i.e. browser has window title) need specify value in <title>
tag.
if don't have placeholder <head>
content, make one, , use title there.
i.e.
in page:
<asp:content id="headcontent" contentplaceholderid="headcontentplaceholder" runat="server"> <title><asp:label> .... </asp:label></title> </asp:content>
in master:
<head> <asp:contentplaceholder id="headcontentplaceholder" runat="server"></asp:content> </head>
Comments
Post a Comment