Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Formation of url(using query strings)

Formation of url(using query strings)

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabase
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    srikanth ravipati
    wrote on last edited by
    #1

    Hi i have 3 web pages in my website as first one login.aspx, second one home.aspx third one info.aspx, if i enter into the site the default page is login.aspx, after login.aspx, home.aspx will come and after home,aspx info.aspx will come. This is the normal flow of execution. . But i want a URL like, with that URL if i enter the site, i should able to open the page info.aspx directly and before opening the page info.aspx it should check my login credentials using login.aspx. Can you suggest any ideas for this and if possible give me full length code in asp.net using c#.

    B 1 Reply Last reply
    0
    • S srikanth ravipati

      Hi i have 3 web pages in my website as first one login.aspx, second one home.aspx third one info.aspx, if i enter into the site the default page is login.aspx, after login.aspx, home.aspx will come and after home,aspx info.aspx will come. This is the normal flow of execution. . But i want a URL like, with that URL if i enter the site, i should able to open the page info.aspx directly and before opening the page info.aspx it should check my login credentials using login.aspx. Can you suggest any ideas for this and if possible give me full length code in asp.net using c#.

      B Offline
      B Offline
      boy pockets
      wrote on last edited by
      #2

      Have a look at http://aspnet.4guysfromrolla.com/articles/020205-1.aspx it gives you a nice url/parameter manager. You could specify in the inital url which page you want to go in after login. for example: localhost:1885/DevelopmentWebsite/login.aspx?redirect=info when you authenticate the user you can check the redirect param and make your redirection based on that value.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups