Click here to Skip to main content
15,919,422 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
QuestionDelete Value from Cookie Pin
Abdullah S. Abdelhay22-Jan-09 4:43
Abdullah S. Abdelhay22-Jan-09 4:43 
AnswerRe: Delete Value from Cookie Pin
Jon Rista22-Jan-09 6:32
Jon Rista22-Jan-09 6:32 
GeneralRe: Delete Value from Cookie Pin
rama charan22-Jan-09 17:47
rama charan22-Jan-09 17:47 
AnswerRe: Delete Value from Cookie Pin
Rajdev Ramasamy26-Jan-09 22:28
Rajdev Ramasamy26-Jan-09 22:28 
Questionworking with excel files version independantly in asp.net2.0 Pin
Nitin K22-Jan-09 3:47
Nitin K22-Jan-09 3:47 
AnswerRe: working with excel files version independantly in asp.net2.0 Pin
Rutvik Dave22-Jan-09 3:56
professionalRutvik Dave22-Jan-09 3: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.