Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Yesterday at 12:26 PM
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Sunday at 12:41 PM
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
FREE SEO Check & Google Maps Check for Sri Lankan Businesses | Web Design, Website Price Rs 14,900 |
LankaSolve
Updated:
Oct 20, 2026
ඕනම රටකට සෙට් වෙන CV එකක්
ErMurazor
Updated:
Oct 17, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
vb............... help
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="ad.hasareli" data-source="post: 12641359" data-attributes="member: 275082"><p>If sqlConn.State = ConnectionState.Closed Then</p><p> sqlConn.Open()</p><p> End If</p><p></p><p> Dim code As String = cmbitemcode.Text</p><p></p><p> Dim sqlstr As String = "Select * from items where ItemCode='" & code & "'"</p><p></p><p> sqlAD = New SqlDataAdapter(sqlstr, sqlConn)</p><p></p><p> Sqlds.Clear()</p><p></p><p> sqlAD.Fill(Sqlds, "det")</p><p></p><p> txtitemname.Text = Sqlds.Tables("det").Rows(0).Item(1)</p><p> txtuprice.Text = Sqlds.Tables("det").Rows(0).Item(2)</p><p> txtstoreloc.Text = Sqlds.Tables("det").Rows(0).Item(3)</p><p> txtsupcode.Text = Sqlds.Tables("det").Rows(0).Item(4)</p><p> txtcstock.Text = Sqlds.Tables("det").Rows(0).Item(5)</p><p></p><p></p><p> sqlConn.Close()</p><p></p><p> End Sub</p><p></p><p><span style="font-size: 15px"><span style="color: Red"></span></span></p><p><span style="font-size: 15px"><span style="color: Red">uda thiyena code aka me class akata set wena widihata hadala dennako plzzzz.</span></span></p><p></p><p></p><p>Imports System.Data.SqlClient</p><p></p><p>Module Dbconn</p><p> Public Dset1 As New DataSet</p><p> Public Sqlda As New SqlDataAdapter</p><p> Public Cmd As New SqlCommand</p><p> Public Conn As New SqlConnection</p><p></p><p> Public Sqlds As String = "Data Source=AMILA-03F56932B;Initial Catalog=items;Integrated Security=True"</p><p></p><p></p><p>End Module</p></blockquote><p></p>
[QUOTE="ad.hasareli, post: 12641359, member: 275082"] If sqlConn.State = ConnectionState.Closed Then sqlConn.Open() End If Dim code As String = cmbitemcode.Text Dim sqlstr As String = "Select * from items where ItemCode='" & code & "'" sqlAD = New SqlDataAdapter(sqlstr, sqlConn) Sqlds.Clear() sqlAD.Fill(Sqlds, "det") txtitemname.Text = Sqlds.Tables("det").Rows(0).Item(1) txtuprice.Text = Sqlds.Tables("det").Rows(0).Item(2) txtstoreloc.Text = Sqlds.Tables("det").Rows(0).Item(3) txtsupcode.Text = Sqlds.Tables("det").Rows(0).Item(4) txtcstock.Text = Sqlds.Tables("det").Rows(0).Item(5) sqlConn.Close() End Sub [SIZE=4][COLOR=Red] uda thiyena code aka me class akata set wena widihata hadala dennako plzzzz.[/COLOR][/SIZE] Imports System.Data.SqlClient Module Dbconn Public Dset1 As New DataSet Public Sqlda As New SqlDataAdapter Public Cmd As New SqlCommand Public Conn As New SqlConnection Public Sqlds As String = "Data Source=AMILA-03F56932B;Initial Catalog=items;Integrated Security=True" End Module [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom