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
K

krishnakumark

@krishnakumark
About
Posts
8
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to get the culture info for languages other than english
    K krishnakumark

    Hi all Can anybody tell be how to get the culture info for all the languages . Regards Krishna Kumar

    Kk

    ASP.NET tutorial

  • How to bring the Ms-Access DB record to a DropdownList?
    K krishnakumark

    Hi it should look similer to this.. i tried here.. its working fine...did you remove the statement DBReader.Close() ????? Dim DBConnection As System.Data.OleDb.OleDbConnection Dim DBCommand As System.Data.OleDb.OleDbCommand Dim DBReader As System.Data.OleDb.OleDbDataReader Dim SQLString As String Dim DataSet1 As System.Data.DataSet If Not Page.IsPostBack Then DBConnection = New System.Data.OleDb.OleDbConnection( _ "put your connection string here") DBConnection.Open() DBCommand = New OleDb.OleDbCommand("select email from users", DBConnection) OleDbDataAdapter1.SelectCommand = DBCommand DataSet1 = New DataSet OleDbDataAdapter1.Fill(DataSet1, "Attendance_Details") DropDownList1.DataSource = DataSet1.Tables("Attendance_Details") DropDownList1.DataValueField = "email" DropDownList1.DataBind() DBConnection.Close() End If

    Kk

    ASP.NET help database tutorial question

  • How to bring the Ms-Access DB record to a DropdownList?
    K krishnakumark

    Initialize data set before filling it ... like .. DataSet1 = New DataSet OleDbDataAdapter1.Fill(DataSet1, "Attendance_Details") also remove DBReader.Close() .. because you have not used it at alll...

    Kk

    ASP.NET help database tutorial question

  • How to bring a database record to DropdownList in asp .net app?
    K krishnakumark

    sorry for the mistake... Name is the text (and not test) .. which will be displayed in the dropdown .. and id is the value which will be stroed internally...

    Kk

    ASP.NET csharp asp-net database tutorial question

  • How to bring a database record to DropdownList in asp .net app?
    K krishnakumark

    Name is the test .. which will be displayed in the dropdown .. and id is the value which will be stroed internally...

    Kk

    ASP.NET csharp asp-net database tutorial question

  • How to bring a database record to DropdownList in asp .net app?
    K krishnakumark

    Hi ..Try this..dont forget to include System.Data.OleDb namespace OleDbConnection con= new OleDbConnection("Place your connection string here"); string sql="select id,name from users"; OleDbCommand sqlcmd = new OleDbCommand(sql,con); con.Open(); DropDownList1.DataSource= sqlcmd.ExecuteReader(CommandBehavior.CloseConnection); DropDownList1.DataTextField = "name"; DropDownList1.DataValueField = "id"; DropDownList1.DataBind();

    Kk

    ASP.NET csharp asp-net database tutorial question

  • file handling
    K krishnakumark

    You import System.IO namespace.. and use File object to handile files and Directory object to handile directory.. Kk

    ASP.NET help

  • How to bring a database record to DropdownList in asp .net app?
    K krishnakumark

    Hi Praveen if you are using .net 2.0, You either use datareader and attach that with the dropdownlist (.net 1.1 and .net 2.0) OR create a acces datasource and attach it with the dropdown list... Krishna Kumar

    Kk

    ASP.NET csharp asp-net database tutorial question
  • Login

  • Don't have an account? Register

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