Click here to Skip to main content
15,902,635 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: mozilla problem Pin
PavanPareta6-Jun-07 1:43
PavanPareta6-Jun-07 1:43 
GeneralRe: mozilla problem Pin
DKalepu6-Jun-07 18:25
DKalepu6-Jun-07 18:25 
QuestionHow to get Total count of records from database? Pin
clife5376-Jun-07 1:13
clife5376-Jun-07 1:13 
AnswerRe: How to get Total count of records from database? Pin
Chetan Ranpariya6-Jun-07 1:18
Chetan Ranpariya6-Jun-07 1:18 
AnswerRe: How to get Total count of records from database? Pin
koolprasad20036-Jun-07 1:19
professionalkoolprasad20036-Jun-07 1:19 
AnswerRe: How to get Total count of records from database? Pin
Fred_Smith6-Jun-07 2:36
Fred_Smith6-Jun-07 2:36 
GeneralRe: How to get Total count of records from database? Pin
clife5373-Oct-07 0:42
clife5373-Oct-07 0:42 
GeneralRe: How to get Total count of records from database? Pin
Fred_Smith3-Oct-07 0:49
Fred_Smith3-Oct-07 0:49 
Same way you print anything... you have to read the result into a variable and print it.

You can use the ExecuteScalar command on a Command object to read the number directly into a variable - eg, in VB, SQLServer:

Dim objCmd As SqlCommand
Dim n As Integer, s As String
...
objCmd.CommandText = "SELECT COUNT(ID) FROM TableName"
n = objCmd.ExecuteScalar
...
s = "There are " & n.ToString & " records in the database."




GeneralRe: How to get Total count of records from database? Pin
clife53715-Oct-07 3:34
clife53715-Oct-07 3:34 
QuestionWork with RSS Pin
Kusal6-Jun-07 1:11
Kusal6-Jun-07 1:11 
QuestionHow to access data from iframe Pin
sasimadunoori6-Jun-07 1:08
sasimadunoori6-Jun-07 1:08 
AnswerRe: How to access data from iframe Pin
Rohan Priya6-Jun-07 23:35
Rohan Priya6-Jun-07 23:35 
QuestionWhat should i use ? Pin
Sandeep Akhare6-Jun-07 0:51
Sandeep Akhare6-Jun-07 0:51 
AnswerRe: What should i use ? Pin
Christian Graus6-Jun-07 0:56
protectorChristian Graus6-Jun-07 0:56 
AnswerRe: What should i use ? Pin
Sathesh Sakthivel6-Jun-07 3:35
Sathesh Sakthivel6-Jun-07 3:35 
QuestionMenu related Problem(Plz Help) Pin
suveenmohan6-Jun-07 0:32
suveenmohan6-Jun-07 0:32 
AnswerRe: Menu related Problem(Plz Help) Pin
Christian Graus6-Jun-07 0:48
protectorChristian Graus6-Jun-07 0:48 
AnswerRe: Menu related Problem(Plz Help) Pin
www.Developerof.NET6-Jun-07 2:07
www.Developerof.NET6-Jun-07 2:07 
AnswerRe: Menu related Problem(Plz Help) Pin
Sathesh Sakthivel6-Jun-07 2:59
Sathesh Sakthivel6-Jun-07 2:59 
Questionweb.config in subfolder Pin
Diablo_m6-Jun-07 0:29
Diablo_m6-Jun-07 0:29 
AnswerRe: web.config in subfolder Pin
badgrs6-Jun-07 0:32
badgrs6-Jun-07 0:32 
GeneralRe: web.config in subfolder Pin
Diablo_m6-Jun-07 0:42
Diablo_m6-Jun-07 0:42 
GeneralRe: web.config in subfolder Pin
ganti.r6-Jun-07 2:04
ganti.r6-Jun-07 2:04 
GeneralRe: web.config in subfolder Pin
Diablo_m6-Jun-07 2:55
Diablo_m6-Jun-07 2:55 
GeneralRe: web.config in subfolder Pin
ganti.r6-Jun-07 6:19
ganti.r6-Jun-07 6:19 

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.