Click here to Skip to main content
16,003,345 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to identify which div opened the popup Pin
rama charan23-Jan-09 1:35
rama charan23-Jan-09 1:35 
QuestionEnableEventValidation Pin
Member 236391622-Jan-09 17:50
Member 236391622-Jan-09 17:50 
Questionactually i have a database table have four fields rnkid, rnkartid,rnkuserid and rnk marks i want sum all the marks which have same rnk art id . pls hel tell how Pin
anujanujanuj22-Jan-09 17:39
anujanujanuj22-Jan-09 17:39 
AnswerDon't CrossPost Pin
Abhijit Jana22-Jan-09 17:55
professionalAbhijit Jana22-Jan-09 17:55 
Questionactually i have a database table have four fields rnkid, rnkartid,rnkuserid and rnk marks i want sum all the marks which have same rnk art id . pls hel tell how Pin
anujbanka178422-Jan-09 17:24
anujbanka178422-Jan-09 17:24 
AnswerRe: actually i have a database table have four fields rnkid, rnkartid,rnkuserid and rnk marks i want sum all the marks which have same rnk art id . pls hel tell how Pin
Abhijit Jana22-Jan-09 17:47
professionalAbhijit Jana22-Jan-09 17:47 
QuestionEmail Expression Validator Pin
Terick22-Jan-09 8:34
Terick22-Jan-09 8:34 
AnswerRe: Email Expression Validator Pin
rama charan22-Jan-09 19:02
rama charan22-Jan-09 19:02 
QuestionDatagrid Pin
dptalt22-Jan-09 8:14
dptalt22-Jan-09 8:14 
AnswerRe: Datagrid Pin
sudhanvag25-Jan-09 7:48
sudhanvag25-Jan-09 7:48 
GeneralReporting Pin
Brady Kelly22-Jan-09 5:44
Brady Kelly22-Jan-09 5:44 
GeneralRe: Reporting Pin
ToddHileHoffer22-Jan-09 6:54
ToddHileHoffer22-Jan-09 6:54 
GeneralRe: Reporting Pin
Brady Kelly22-Jan-09 7:12
Brady Kelly22-Jan-09 7:12 
GeneralRe: Reporting Pin
VenkatFor.NET22-Jan-09 20:25
VenkatFor.NET22-Jan-09 20:25 
GeneralSQL Reporting Services Pin
David Mujica25-Jan-09 2:04
David Mujica25-Jan-09 2:04 
GeneralRe: SQL Reporting Services Pin
Brady Kelly25-Jan-09 2:53
Brady Kelly25-Jan-09 2:53 
Question[newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
jon-8022-Jan-09 4:45
professionaljon-8022-Jan-09 4:45 
AnswerRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
Ashfield22-Jan-09 4:51
Ashfield22-Jan-09 4:51 
GeneralRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
jon-8022-Jan-09 4:58
professionaljon-8022-Jan-09 4:58 
AnswerRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
Colin Angus Mackay22-Jan-09 4:57
Colin Angus Mackay22-Jan-09 4:57 
GeneralRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
jon-8022-Jan-09 5:11
professionaljon-8022-Jan-09 5:11 
GeneralRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
Colin Angus Mackay22-Jan-09 5:32
Colin Angus Mackay22-Jan-09 5:32 
jon_80 wrote:
Explicit conversion was required because implicit conversion is not allowed by the compiler.


I wasn't talking about that.


jon_80 wrote:
I think can check for a DBNull using typeof presumably


Try something like:
object rawValue = theSqlCommand.ExecuteScalar();
if (rawValue == DBNull.Value)
{
    //...
}
else
{
    string actualValue = (string)rawValue;
}


* Developer Day Scotland 2 - Free community conference
* The Blog of Colin Angus Mackay


Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

GeneralRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
jon-8022-Jan-09 20:50
professionaljon-8022-Jan-09 20:50 
AnswerRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
Colin Angus Mackay22-Jan-09 5:08
Colin Angus Mackay22-Jan-09 5:08 
GeneralRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
jon-8022-Jan-09 7:12
professionaljon-8022-Jan-09 7:12 

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.