Click here to Skip to main content
15,909,530 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Auto Increment problem (Identity property) Pin
Vimalsoft(Pty) Ltd29-Nov-09 19:20
professionalVimalsoft(Pty) Ltd29-Nov-09 19:20 
Questiondatasource on asp:dropdownlist is null after a postback Pin
AlexG211926-Nov-09 14:30
AlexG211926-Nov-09 14:30 
AnswerRe: datasource on asp:dropdownlist is null after a postback Pin
Kannan Ar26-Nov-09 15:14
professionalKannan Ar26-Nov-09 15:14 
QuestionCan't update file/database running ASP.NET under IIS Pin
vlehotay26-Nov-09 10:29
vlehotay26-Nov-09 10:29 
AnswerRe: Can't update file/database running ASP.NET under IIS Pin
Petr Pechovic26-Nov-09 11:19
professionalPetr Pechovic26-Nov-09 11:19 
GeneralRe: Can't update file/database running ASP.NET under IIS Pin
vlehotay26-Nov-09 15:29
vlehotay26-Nov-09 15:29 
GeneralRe: Can't update file/database running ASP.NET under IIS [modified] Pin
Petr Pechovic26-Nov-09 22:11
professionalPetr Pechovic26-Nov-09 22:11 
QuestionConverting a DataTable Column to an Array? Pin
James Shao26-Nov-09 5:10
James Shao26-Nov-09 5:10 
Hi, I am having some trouble with creating a simple function that converts a column of a datatable to an array (containing all numbers). Upon running it, it says "Index was outside the bounds of the array"; however, I couldn't understand why my function would create this problem. Frown | :(

Also since I do not usually program using VB.Net, I am not sure if my function has other errors (like syntax errors). Could you please help me check it out? I'd greatly appreciate it! Smile | :) Thanks in advance.

Here's my VB function:

Public Function DatatableToArray(ByVal dt As DataTable, ByVal intColomn As Integer) As Double()<br />
    Dim intRows As Integer = dt.Rows.Count<br />
    Dim arrValues() As Double = New Double(){}<br />
    Dim i2 As Integer<br />
    For i2 = 0 To intRows - 1<br />
        arrValues(i2) = dt.Rows(i2).Item(intColomn)<br />
    Next<br />
    Return arrValues<br />
End Function

AnswerRe: Converting a DataTable Column to an Array? Pin
dan!sh 26-Nov-09 5:22
professional dan!sh 26-Nov-09 5:22 
AnswerRe: Converting a DataTable Column to an Array? Pin
Covean26-Nov-09 5:30
Covean26-Nov-09 5:30 
AnswerRe: Converting a DataTable Column to an Array? Pin
Kannan Ar26-Nov-09 5:30
professionalKannan Ar26-Nov-09 5:30 
AnswerRe: Converting a DataTable Column to an Array? Pin
Abhishek Sur26-Nov-09 8:18
professionalAbhishek Sur26-Nov-09 8:18 
AnswerRe: Converting a DataTable Column to an Array? Pin
James Shao26-Nov-09 14:38
James Shao26-Nov-09 14:38 
AnswerRe: Converting a DataTable Column to an Array? Pin
carlecomm26-Nov-09 23:28
carlecomm26-Nov-09 23:28 
AnswerRe: Converting a DataTable Column to an Array? Pin
James Shao28-Nov-09 18:07
James Shao28-Nov-09 18:07 
QuestionIncorrect Auto Size of DIV Tags when size of contents are dynamically changed. Pin
Mehdi Ghiasi26-Nov-09 4:11
Mehdi Ghiasi26-Nov-09 4:11 
AnswerRe: Incorrect Auto Size of DIV Tags when size of contents are dynamically changed. Pin
Abhishek Sur26-Nov-09 4:36
professionalAbhishek Sur26-Nov-09 4:36 
GeneralRe: Incorrect Auto Size of DIV Tags when size of contents are dynamically changed. Pin
Mehdi Ghiasi26-Nov-09 20:09
Mehdi Ghiasi26-Nov-09 20:09 
GeneralRe: Incorrect Auto Size of DIV Tags when size of contents are dynamically changed. Pin
Abhishek Sur26-Nov-09 22:15
professionalAbhishek Sur26-Nov-09 22:15 
QuestionUser.Identity.Name is empty Pin
rljurado26-Nov-09 3:50
rljurado26-Nov-09 3:50 
AnswerRe: User.Identity.Name is empty Pin
Abhijit Jana26-Nov-09 3:51
professionalAbhijit Jana26-Nov-09 3:51 
GeneralRe: User.Identity.Name is empty Pin
rljurado26-Nov-09 3:55
rljurado26-Nov-09 3:55 
GeneralRe: User.Identity.Name is empty PinPopular
Abhijit Jana26-Nov-09 4:00
professionalAbhijit Jana26-Nov-09 4:00 
GeneralRe: Why ? Pin
Abhijit Jana26-Nov-09 6:35
professionalAbhijit Jana26-Nov-09 6:35 
GeneralRe: Why ? Pin
Abhishek Sur26-Nov-09 7:07
professionalAbhishek Sur26-Nov-09 7:07 

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.