Click here to Skip to main content
15,881,027 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionlinkbutton Pin
UD(IA)27-Sep-08 2:15
UD(IA)27-Sep-08 2:15 
AnswerRe: linkbutton Pin
Paul Conrad27-Sep-08 5:33
professionalPaul Conrad27-Sep-08 5:33 
AnswerRe: linkbutton Pin
saini arun27-Sep-08 8:24
saini arun27-Sep-08 8:24 
QuestionIntegrated Windows autentication not working??? Pin
Nada Adel27-Sep-08 0:21
Nada Adel27-Sep-08 0:21 
Questionquerystring Pin
UD(IA)26-Sep-08 22:30
UD(IA)26-Sep-08 22:30 
AnswerRe: querystring Pin
snouto26-Sep-08 22:45
snouto26-Sep-08 22:45 
Questionhandle a db null value Pin
Meax26-Sep-08 22:00
Meax26-Sep-08 22:00 
AnswerRe: handle a db null value Pin
snouto26-Sep-08 22:57
snouto26-Sep-08 22:57 
my friend you set that variable as integer

<br />
Dim CurrentMaxDocumentIDForASpecificUser As Integer<br />


and then run your sql command to retrieve the last inserted row
in the database and return that to you as object because ExecuteScalar() return only one record casted within type object

so if you want to check if that ExecuteScalar will return that record or there is no any records returned that is so easy
cast the return value of the ExecuteScalar to an integer and check it

<br />
Dim CurrentMaxDocumentIDForASpecificUser As Integer<br />
<br />
CurrentMaxDocumentIDForASpecificUser = (int)SqlCommand.ExecuteScalar();<br />
<br />
if(CurrentMaxDocumentIDForASpecificUser > 0)<br />
//there was a record returned <br />
else<br />
//there was no any records returned back<br />


Human knowledge belongs to the world.

GeneralRe: handle a db null value Pin
Meax26-Sep-08 23:24
Meax26-Sep-08 23:24 
GeneralRe: handle a db null value Pin
AlexeiXX327-Sep-08 17:15
AlexeiXX327-Sep-08 17:15 
QuestionLogic for Attendance System Pin
Milind Panchal26-Sep-08 21:47
Milind Panchal26-Sep-08 21:47 
AnswerRe: Logic for Attendance System Pin
sumanth Reddy26-Sep-08 22:39
sumanth Reddy26-Sep-08 22:39 
AnswerRe: Logic for Attendance System Pin
Paul Conrad27-Sep-08 5:34
professionalPaul Conrad27-Sep-08 5:34 
GeneralRe: Logic for Attendance System Pin
leckey27-Sep-08 13:37
leckey27-Sep-08 13:37 
GeneralRe: Logic for Attendance System Pin
Paul Conrad27-Sep-08 14:13
professionalPaul Conrad27-Sep-08 14:13 
GeneralRe: Logic for Attendance System Pin
leckey27-Sep-08 14:54
leckey27-Sep-08 14:54 
GeneralRe: Logic for Attendance System Pin
Paul Conrad27-Sep-08 17:44
professionalPaul Conrad27-Sep-08 17:44 
QuestionSeerver Controls.. Pin
Jamal Abdul Nasir26-Sep-08 21:29
Jamal Abdul Nasir26-Sep-08 21:29 
QuestionProblem visual basic 'exe' run on IIS through asp.net Pin
Rinki Mukheraji26-Sep-08 21:12
Rinki Mukheraji26-Sep-08 21:12 
QuestionAJAX CALL Pin
CrazyCoder2626-Sep-08 21:11
CrazyCoder2626-Sep-08 21:11 
AnswerRe: AJAX CALL Pin
AlexeiXX327-Sep-08 17:38
AlexeiXX327-Sep-08 17:38 
AnswerRe: AJAX CALL Pin
Prasanna Kumar Pete28-Sep-08 22:33
Prasanna Kumar Pete28-Sep-08 22:33 
Questionhow to call classes in web site using C#.net Pin
sumanth Reddy26-Sep-08 21:09
sumanth Reddy26-Sep-08 21:09 
AnswerRe: how to call classes in web site using C#.net Pin
snouto26-Sep-08 23:02
snouto26-Sep-08 23:02 
Questionrequest of Procedure to host the files in web server using FTP and making the website work. Pin
sumanth Reddy26-Sep-08 20:58
sumanth Reddy26-Sep-08 20:58 

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.