Click here to Skip to main content
15,918,007 members
Home / Discussions / C#
   

C#

 
Generaltextbox cairrage return Pin
V.22-Feb-07 21:01
professionalV.22-Feb-07 21:01 
GeneralRe: textbox cairrage return Pin
Christian Graus22-Feb-07 23:57
protectorChristian Graus22-Feb-07 23:57 
GeneralRe: textbox cairrage return Pin
V.23-Feb-07 0:19
professionalV.23-Feb-07 0:19 
GeneralRe: textbox cairrage return Pin
Martin#23-Feb-07 0:08
Martin#23-Feb-07 0:08 
GeneralRe: textbox cairrage return Pin
V.23-Feb-07 0:22
professionalV.23-Feb-07 0:22 
QuestionSet StandardClick/StandardDoubleClick to a ListView control Pin
blackjack215022-Feb-07 21:01
blackjack215022-Feb-07 21:01 
QuestionXSL Variable in .cs File Pin
Abubakarsb22-Feb-07 20:56
Abubakarsb22-Feb-07 20:56 
AnswerRe: XSL Variable in .cs File Pin
Stefan Troschuetz22-Feb-07 22:22
Stefan Troschuetz22-Feb-07 22:22 
GeneralRe: XSL Variable in .cs File Pin
Abubakarsb22-Feb-07 23:51
Abubakarsb22-Feb-07 23:51 
GeneralRe: XSL Variable in .cs File Pin
Abubakarsb22-Feb-07 23:52
Abubakarsb22-Feb-07 23:52 
GeneralRe: XSL Variable in .cs File Pin
Stefan Troschuetz23-Feb-07 0:04
Stefan Troschuetz23-Feb-07 0:04 
GeneralRe: XSL Variable in .cs File Pin
Abubakarsb23-Feb-07 0:11
Abubakarsb23-Feb-07 0:11 
GeneralRe: XSL Variable in .cs File Pin
Stefan Troschuetz23-Feb-07 0:22
Stefan Troschuetz23-Feb-07 0:22 
GeneralRe: XSL Variable in .cs File Pin
Abubakarsb23-Feb-07 0:11
Abubakarsb23-Feb-07 0:11 
GeneralRe: XSL Variable in .cs File Pin
Stefan Troschuetz23-Feb-07 0:24
Stefan Troschuetz23-Feb-07 0:24 
GeneralRe: XSL Variable in .cs File Pin
Abubakarsb23-Feb-07 0:26
Abubakarsb23-Feb-07 0:26 
GeneralRe: XSL Variable in .cs File Pin
Stefan Troschuetz23-Feb-07 0:32
Stefan Troschuetz23-Feb-07 0:32 
QuestionFetch last record of table Pin
Nekshan22-Feb-07 20:08
Nekshan22-Feb-07 20:08 
AnswerRe: Fetch last record of table Pin
il_masacratore22-Feb-07 21:23
il_masacratore22-Feb-07 21:23 
AnswerRe: Fetch last record of table Pin
althamda22-Feb-07 22:27
althamda22-Feb-07 22:27 
AnswerRe: Fetch last record of table Pin
virendra patel23-Feb-07 16:37
virendra patel23-Feb-07 16:37 
' convert it onto c# this code is i writen in vb
' this answer is the question u ask how to get value in dataset through function
' now u bind that as

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'write this code place at which u want data.
Dim ds As New DataSet
ds = RmaSearchByDays("0065xyz", 10)
' if u want to access ds data then write
For i = 0 To ds.Tables(0).Rows.Count
Dim str As String = ds.Tables(0).Rows(0).Item(0)
' str contain value item(0) means column 0, item(1) means column 1 ok.
Next i

End Sub

Public Function RmaSearchByDays(ByVal ACCOUNT_REF As String, ByVal TotalDays As Integer) As DataSet

Dim cn As SqlConnection = New SqlConnection("write here connection strings")

Dim cmd As SqlCommand = New SqlCommand()
cmd.CommandText = "write here select statement where account_ref='" + ACCOUNT_REF + "'" + "and tdays =" + TotalDays
cmd.Connection = cn

Dim da As SqlDataAdapter = New SqlDataAdapter()
Dim dsResult As New DataSet

da.SelectCommand = cmd
da.Fill(dsResult)
' Return the dataset result
Return dsResult

End Function
End Class

' this question answer is

select top 1 * from tablename order by column_name desc

'column name is column which is unique number columnname ok
' if u not able to understand then replay me.

QuestionFont size increases after postback Pin
Bobb198222-Feb-07 20:01
Bobb198222-Feb-07 20:01 
AnswerRe: Font size increases after postback Pin
Harini N K22-Feb-07 21:29
Harini N K22-Feb-07 21:29 
QuestionDisplay LoginName from LoginControl Pin
SharonRao22-Feb-07 19:59
SharonRao22-Feb-07 19:59 
QuestionHow to get all the tables with their schema name in sql server 2005. Pin
NK722-Feb-07 19:56
NK722-Feb-07 19:56 

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.