Click here to Skip to main content
15,903,628 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Referencing User Control Attributes in Page Code Behind Pin
RichardGrimmer5-Dec-11 5:37
RichardGrimmer5-Dec-11 5:37 
GeneralRe: Referencing User Control Attributes in Page Code Behind Pin
janetb996-Dec-11 8:40
janetb996-Dec-11 8:40 
GeneralRe: Referencing User Control Attributes in Page Code Behind Pin
janetb996-Dec-11 9:06
janetb996-Dec-11 9:06 
Questionconvert detailsview control to formview control Pin
classy_dog1-Dec-11 8:43
classy_dog1-Dec-11 8:43 
QuestionHow to Create a Dynamic Questionnaire Pin
Vimalsoft(Pty) Ltd1-Dec-11 3:49
professionalVimalsoft(Pty) Ltd1-Dec-11 3:49 
QuestionThe header and footer contents in master page are refreshing - Need help Pin
Member 322226430-Nov-11 19:21
Member 322226430-Nov-11 19:21 
AnswerRe: The header and footer contents in master page are refreshing - Need help Pin
uspatel30-Nov-11 23:10
professionaluspatel30-Nov-11 23:10 
AnswerRe: The header and footer contents in master page are refreshing - Need help Pin
jkirkerx1-Dec-11 11:29
professionaljkirkerx1-Dec-11 11:29 
The master pages solves an old issue with classic asp, php, and just plain html in which developers wanted to create a consistent header and footer. So before in the old days, you had to sort of slip your header and footer file into your content file, or vice versus, I don't remember which.

if you place linkbuttons on your master page, when you click them they will generate a postback like they are suppose to. They are not refreshing, but are sending the form back to the server for processing.

Now with just plain html, you can get rid of the form tag, and the page will not postback, because there is no form data. But ASP.Net requires a form tag on all pages.

So if you want to confine the postback to just the content, wrap the content in an update panel, and make a trigger for each button you need to issue a small async postback to the server, in which only the content in the update panel will make the round trip to the server and back.

You can rid of the linkbuttons, for they are not needed, unless you need to calculate something before the action. Use a Hyperlink if you want to send to another page.

XML
<td style="width: auto; text-align: right;">
     <asp:Hyperlink ID="lnHome" runat="server" class="hrefClass">Home</asp:Hyperlink>&nbsp
     <asp:Hyperlink ID="lnLogout" runat="server" class="hrefClass">Logout</asp:Hyperlink>
</td>

<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
     <asp:updatepanel id="updatePanel_Content1" runat="server">
    <asp:contentTemplate>

    </asp:contentTemplate>
    // add a asyncpostback trigger
     </asp:updatepanel>
</asp:ContentPlaceHolder>

GeneralRe: The header and footer contents in master page are refreshing - Need help Pin
Member 32222641-Dec-11 23:38
Member 32222641-Dec-11 23:38 
GeneralRe: The header and footer contents in master page are refreshing - Need help Pin
jkirkerx2-Dec-11 6:23
professionaljkirkerx2-Dec-11 6:23 
GeneralRe: The header and footer contents in master page are refreshing - Need help Pin
Member 32222645-Dec-11 19:06
Member 32222645-Dec-11 19:06 
QuestionWCF message edit error Pin
arnold0930-Nov-11 19:19
arnold0930-Nov-11 19:19 
AnswerRe: WCF message edit error Pin
jkirkerx1-Dec-11 11:49
professionaljkirkerx1-Dec-11 11:49 
GeneralRe: WCF message edit error Pin
arnold092-Dec-11 0:45
arnold092-Dec-11 0:45 
GeneralRe: WCF message edit error Pin
jkirkerx2-Dec-11 6:36
professionaljkirkerx2-Dec-11 6:36 
GeneralRe: WCF message edit error Pin
arnold095-Dec-11 18:55
arnold095-Dec-11 18:55 
GeneralRe: WCF message edit error Pin
jkirkerx6-Dec-11 6:45
professionaljkirkerx6-Dec-11 6:45 
Questionloginstatus control-sessions Pin
MalarGayu30-Nov-11 14:57
MalarGayu30-Nov-11 14:57 
AnswerRe: loginstatus control-sessions Pin
Member 322226430-Nov-11 19:48
Member 322226430-Nov-11 19:48 
AnswerRe: loginstatus control-sessions Pin
uspatel30-Nov-11 23:23
professionaluspatel30-Nov-11 23:23 
AnswerRe: loginstatus control-sessions Pin
coded0071-Dec-11 2:21
professionalcoded0071-Dec-11 2:21 
GeneralRe: loginstatus control-sessions Pin
MalarGayu1-Dec-11 13:09
MalarGayu1-Dec-11 13:09 
AnswerRe: loginstatus control-sessions Pin
thatraja1-Dec-11 21:04
professionalthatraja1-Dec-11 21:04 
QuestionFIXED HEADER AND FOOTER IN MASTER PAGE-WITHOUT REFRESH ON MENU CLICK Pin
Member 322226430-Nov-11 1:39
Member 322226430-Nov-11 1:39 
AnswerRe: FIXED HEADER AND FOOTER IN MASTER PAGE-WITHOUT REFRESH ON MENU CLICK Pin
jkirkerx30-Nov-11 12:03
professionaljkirkerx30-Nov-11 12:03 

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.