Click here to Skip to main content
15,891,372 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: How to get all the tables with their schema name in sql server 2005. Pin
Hesham Amin22-Feb-07 22:35
Hesham Amin22-Feb-07 22:35 
Questionstatic page user logon active directory Pin
mushy22-Feb-07 19:51
mushy22-Feb-07 19:51 
QuestionError! Pin
hiremath7122-Feb-07 19:46
hiremath7122-Feb-07 19:46 
AnswerRe: Error! Pin
__DanC__22-Feb-07 20:45
__DanC__22-Feb-07 20:45 
QuestionMINIMIZE TO MAXIMIZE Pin
M Riaz Bashir22-Feb-07 19:29
M Riaz Bashir22-Feb-07 19:29 
AnswerRe: MINIMIZE TO MAXIMIZE Pin
Stefan Troschuetz22-Feb-07 22:08
Stefan Troschuetz22-Feb-07 22:08 
GeneralRe: MINIMIZE TO MAXIMIZE Pin
M Riaz Bashir22-Feb-07 22:18
M Riaz Bashir22-Feb-07 22:18 
GeneralRe: MINIMIZE TO MAXIMIZE Pin
Stefan Troschuetz22-Feb-07 22:24
Stefan Troschuetz22-Feb-07 22:24 
QuestionConditional Operator in C# Pin
AesopTurtle22-Feb-07 19:21
AesopTurtle22-Feb-07 19:21 
AnswerRe: Conditional Operator in C# [modified] Pin
Tuwing.Sabado22-Feb-07 19:32
Tuwing.Sabado22-Feb-07 19:32 
GeneralRe: Conditional Operator in C# Pin
Harini N K22-Feb-07 19:41
Harini N K22-Feb-07 19:41 
GeneralRe: Conditional Operator in C# Pin
Tuwing.Sabado22-Feb-07 19:49
Tuwing.Sabado22-Feb-07 19:49 
GeneralRe: Conditional Operator in C# [modified] Pin
AesopTurtle22-Feb-07 19:52
AesopTurtle22-Feb-07 19:52 

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.