Design webpage in Asp.NET using CSS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • donilourdu
    New Member
    • Jan 2007
    • 53

    Design webpage in Asp.NET using CSS

    Hi,

    I am doni. I need help in developing a website.
    I can able to fit layouts. using the following codes.
    Code:
    <div id="nav">
          <ul>
          <li><a>About Us</a></li>
          <li><a>Home</a></li>
          <li><a>Services</a></li>
          <li><a>Contact us</a></li>
          </ul>
    </div>

    Since <a> tag has redirection (href) property. using that we can redirect page.
    But I need to preform operation in code behind page (Default.aspx.c s)
    kindly give me solutions.


    with regards,
    Doni.
    Last edited by Frinavale; Jul 1 '10, 01:02 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    Originally posted by donilourdu
    Hi,

    I am doni. I need help in developing a website.
    I can able to fit layouts. using the following codes.

    <div id="nav">
    <ul>
    <li><a>About Us</a></li>
    <li><a>Home</a></li>
    <li><a>Services </a></li>
    <li><a>Contac t us</a></li>
    </ul>
    </div>

    Since <a> tag has redirection (href) property. using that we can redirect page.
    But I need to preform operation in code behind page (Default.aspx.c s)
    kindly give me solutions.


    with regards,
    Doni.
    Code:
    Response.Redirect("Page.aspx");
    will redirect the page

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Change the "<a>" elements into <asp:LinkButton > controls.
      LinkButtons postback to the page that they belong to instead of automatically taking the user to the next page. So this means that you can do whatever you need to do in the Default page server-side code before you call the Response.Redire ct() method that ThatThatGuy demonstrated.

      -Frinny

      Comment

      • donilourdu
        New Member
        • Jan 2007
        • 53

        #4
        Originally posted by Frinavale
        Change the "<a>" elements into <asp:LinkButton > controls.
        LinkButtons postback to the page that they belong to instead of automatically taking the user to the next page. So this means that you can do whatever you need to do in the Default page server-side code before you call the Response.Redire ct() method that ThatThatGuy demonstrated.

        -Frinny
        Thank you very much for your reply.
        my problem solved by using <asp:linkbutton > control

        Comment

        Working...