Hi Friends well i m developing an application into asp.net database is access
now i want to show a particular record into 1 textbox names txtbox1 here is code plz give me code that i can show record into textbox
Imports System.Data.OleDb
Partial Class Default123
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim vparam, dbconn, sql, dbcomm, dbread
dbconn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & Server.MapPath("abcd.mdb"))
dbconn.Open()
vparam = Request.QueryString.Get("un")
sql = "SELECT * FROM user_login where user_name=vparam "
dbcomm = New OleDbCommand(sql, dbconn)
dbread = dbcomm.ExecuteReader()
Repeater1.DataSource = dbread
Repeater1.DataBind()
dbread.Close()
dbconn.Close()
End Sub
End Class