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. General Programming
  3. C#
  4. Pl help me in this issue

Pl help me in this issue

Scheduled Pinned Locked Moved C#
helpcsharpasp-netdatabasesql-server
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.
  • A Offline
    A Offline
    Arun Hegde
    wrote on last edited by
    #1

    I am working on a project i have created 3 tiers: presentation layer datalinklayer business logiclayer i have a dropdownlist named Category_List resides in my login screen.I want to dynamically add the items to it .so i created a table called type which has a single field called Category. now i want to bind my backend sql server with my application. i am able to do it staight away in my asp.net application but what i want is that the connection string should be in a class file ,while the page loads the method that contains the connection string should be called and the items must get filled in my Dropdownlist. iam unable to do it inthe class file,pl help me in doing so with helpof an example. thank u arun

    K 1 Reply Last reply
    0
    • A Arun Hegde

      I am working on a project i have created 3 tiers: presentation layer datalinklayer business logiclayer i have a dropdownlist named Category_List resides in my login screen.I want to dynamically add the items to it .so i created a table called type which has a single field called Category. now i want to bind my backend sql server with my application. i am able to do it staight away in my asp.net application but what i want is that the connection string should be in a class file ,while the page loads the method that contains the connection string should be called and the items must get filled in my Dropdownlist. iam unable to do it inthe class file,pl help me in doing so with helpof an example. thank u arun

      K Offline
      K Offline
      ketankumar
      wrote on last edited by
      #2

      What problem do you have in writing a class file? Would you please elaborate this? Just add one class file in your web application, and define all data access functions in it. Also you can define a function in the class that will dynamically fill the dropdown list by passing it as a parameter by reference. Regards, Ketan

      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