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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Can you help me where i should put the code...

Can you help me where i should put the code...

Scheduled Pinned Locked Moved ASP.NET
questiondatabasecsharpasp-nethelp
4 Posts 3 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.
  • B Offline
    B Offline
    blitz2bleach
    wrote on last edited by
    #1

    Hello there, i just need your opinion about this...i have now database and all i need to do is to connect it on this page..my question is..where i should put the code of connecting this page to my database that has a column of "ID" and "Password" and it has already a data of "ID:054806054" and PAssword:"blitz2bleach"...can i access it on my database..should i used a "connection string" on it?what is the easy to used "data Source"?sqlDataSource or AccessDataSource?...i dont want to include some ado.net on it...it is possible to code it only in asp.net?.. this are the codes hope you can help me and should i get your opinion what code i should remove and add..and in where i should put it... sorry but i know that all you can do is to make a comment but this is urgent..it is our project to bulid a website and im new in progamming in asp.net, i read books and have aself study on it..but the things is actual teaching is the best, but here no one in my professor can teach me.. hope you can help to figure out what should i add and remove code.. for now thank you for you cooperation and for the help you will given me n advance...:-D;):) ----.this code is from the file name "index.aspx"

    Username

    Password

    G J 2 Replies Last reply
    0
    • B blitz2bleach

      Hello there, i just need your opinion about this...i have now database and all i need to do is to connect it on this page..my question is..where i should put the code of connecting this page to my database that has a column of "ID" and "Password" and it has already a data of "ID:054806054" and PAssword:"blitz2bleach"...can i access it on my database..should i used a "connection string" on it?what is the easy to used "data Source"?sqlDataSource or AccessDataSource?...i dont want to include some ado.net on it...it is possible to code it only in asp.net?.. this are the codes hope you can help me and should i get your opinion what code i should remove and add..and in where i should put it... sorry but i know that all you can do is to make a comment but this is urgent..it is our project to bulid a website and im new in progamming in asp.net, i read books and have aself study on it..but the things is actual teaching is the best, but here no one in my professor can teach me.. hope you can help to figure out what should i add and remove code.. for now thank you for you cooperation and for the help you will given me n advance...:-D;):) ----.this code is from the file name "index.aspx"

      Username

      Password

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Use the "Ignore HTML" option when you post markup code. It would also help if you only post the relevant code, and not hundreds of lines of auto-genereted code.

      --- single minded; short sighted; long gone;

      1 Reply Last reply
      0
      • B blitz2bleach

        Hello there, i just need your opinion about this...i have now database and all i need to do is to connect it on this page..my question is..where i should put the code of connecting this page to my database that has a column of "ID" and "Password" and it has already a data of "ID:054806054" and PAssword:"blitz2bleach"...can i access it on my database..should i used a "connection string" on it?what is the easy to used "data Source"?sqlDataSource or AccessDataSource?...i dont want to include some ado.net on it...it is possible to code it only in asp.net?.. this are the codes hope you can help me and should i get your opinion what code i should remove and add..and in where i should put it... sorry but i know that all you can do is to make a comment but this is urgent..it is our project to bulid a website and im new in progamming in asp.net, i read books and have aself study on it..but the things is actual teaching is the best, but here no one in my professor can teach me.. hope you can help to figure out what should i add and remove code.. for now thank you for you cooperation and for the help you will given me n advance...:-D;):) ----.this code is from the file name "index.aspx"

        Username

        Password

        J Offline
        J Offline
        Jasmine2501
        wrote on last edited by
        #3

        I hope you didn't just give us your actual password. Anyway, you store your connection strings in Web.config, or Machine.config. I prefer to use machine.config because it's more secure, and I can have a different connection string on my development machine, and my junior guys don't fuck it up when they upload web pages. The documentation for web.config and machine.config is very complete and it's on the web and in your MSDN files. Should be easy to find.

        "Quality Software since 1983!"
        http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

        B 1 Reply Last reply
        0
        • J Jasmine2501

          I hope you didn't just give us your actual password. Anyway, you store your connection strings in Web.config, or Machine.config. I prefer to use machine.config because it's more secure, and I can have a different connection string on my development machine, and my junior guys don't fuck it up when they upload web pages. The documentation for web.config and machine.config is very complete and it's on the web and in your MSDN files. Should be easy to find.

          "Quality Software since 1983!"
          http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

          B Offline
          B Offline
          blitz2bleach
          wrote on last edited by
          #4

          well thank you..and the password i put is just a sample..im not that stupid..thanks again...:)

          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