Click here to Skip to main content
16,007,443 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncopying data of table (.net) Pin
divaa3-Sep-06 23:52
divaa3-Sep-06 23:52 
AnswerRe: copying data of table (.net) Pin
pjc*4-Sep-06 6:50
pjc*4-Sep-06 6:50 
QuestionLink Button Mystery Pin
Dayekh3-Sep-06 23:45
Dayekh3-Sep-06 23:45 
AnswerRe: Link Button Mystery Pin
_AK_4-Sep-06 1:08
_AK_4-Sep-06 1:08 
GeneralRe: Link Button Mystery Pin
Dayekh4-Sep-06 1:57
Dayekh4-Sep-06 1:57 
Questiondisplay animated image Pin
pjc*3-Sep-06 23:24
pjc*3-Sep-06 23:24 
QuestionNavigate records from db Pin
Kissy163-Sep-06 23:14
Kissy163-Sep-06 23:14 
AnswerRe: Navigate records from db [modified] Pin
Suresh Pirsquare3-Sep-06 23:48
Suresh Pirsquare3-Sep-06 23:48 
Hi kissy,

There is no need of using datagrid for moving to next records or retrieving the records into datagrid.

You can have a look at the following code, it will help u out of your problems:

Private Sub btnnext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnext.Click
Try
Dim sqlstmt As String = "select * from orders"
Dim ds As DataSet = New DataSet
Dim ConString As String = "server=.;database=Northwind;user id=sa;password=sa"
Dim con As New SqlConnection(ConString)
Dim myDataAdapter As New SqlDataAdapter(sqlstmt, con)
myDataAdapter.Fill(ds, "orders")

If Session("sessionid") <= ds.Tables(0).Rows.Count - 1 Then
txtretrieve.Text = ds.Tables(0).Rows(Session("sessionid"))("ShipName") 'retrieves values into the textbox using datasets
txtretrieve.DataBind()
Session("sessionid") = Session("sessionid") + 1
End If

Catch ex As Exception
lblexception.Text = ex.Message
End Try
End Sub

Hope this will help you out of your problems.Big Grin | :-D

Thanks & regards,

Suresh Dayma


-- modified at 6:32 Monday 4th September, 2006

Everything is Possible!

GeneralRe: Navigate records from db [modified] Pin
Kissy164-Sep-06 1:19
Kissy164-Sep-06 1:19 
GeneralRe: Navigate records from db Pin
_AK_4-Sep-06 1:28
_AK_4-Sep-06 1:28 
GeneralRe: Navigate records from db [modified] Pin
Kissy164-Sep-06 1:21
Kissy164-Sep-06 1:21 
GeneralRe: Navigate records from db Pin
Suresh Pirsquare4-Sep-06 1:47
Suresh Pirsquare4-Sep-06 1:47 
QuestionImageButton Pin
Vsree3-Sep-06 21:51
Vsree3-Sep-06 21:51 
AnswerRe: ImageButton Pin
Wesley Samuel3-Sep-06 22:26
Wesley Samuel3-Sep-06 22:26 
GeneralRe: ImageButton Pin
Vsree3-Sep-06 23:40
Vsree3-Sep-06 23:40 
Questionwill atlas solve it ??? Pin
jagmit203-Sep-06 21:26
jagmit203-Sep-06 21:26 
Questionauto unzip files to local machine Pin
kodulkar_nilesh3-Sep-06 21:26
kodulkar_nilesh3-Sep-06 21:26 
AnswerRe: auto unzip files to local machine Pin
Suresh Pirsquare4-Sep-06 0:05
Suresh Pirsquare4-Sep-06 0:05 
QuestionUser controls' problem Pin
arunpnair3-Sep-06 20:56
arunpnair3-Sep-06 20:56 
AnswerRe: User controls' problem Pin
Guffa3-Sep-06 21:12
Guffa3-Sep-06 21:12 
Questionhow can i retreive list of stored logon (username) information? Pin
Saeed80803-Sep-06 20:42
Saeed80803-Sep-06 20:42 
QuestionSelecting Images in aspx page Pin
psmukil3-Sep-06 20:27
psmukil3-Sep-06 20:27 
QuestionPersisting expanded/collapsed state of TreeView - how? Pin
nzmike3-Sep-06 19:09
nzmike3-Sep-06 19:09 
AnswerRe: Persisting expanded/collapsed state of TreeView - how? Pin
minhpc_bk4-Sep-06 15:20
minhpc_bk4-Sep-06 15:20 
QuestionUS asp.net & MS SQL hosting companies ? Pin
digsy_3-Sep-06 14:10
digsy_3-Sep-06 14:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.