Click here to Skip to main content
15,898,035 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Help on people posting comments on my website Pin
CaptainSeeSharp23-Jul-09 15:40
CaptainSeeSharp23-Jul-09 15:40 
Questionurgent help needed asp.net C# code error [modified] Pin
solo_gaurav23-Jul-09 10:20
solo_gaurav23-Jul-09 10:20 
AnswerRe: urgent help needed asp.net C# code error Pin
Abhijit Jana23-Jul-09 10:22
professionalAbhijit Jana23-Jul-09 10:22 
AnswerRe: urgent help needed asp.net C# code error Pin
solo_gaurav23-Jul-09 10:53
solo_gaurav23-Jul-09 10:53 
GeneralRe: urgent help needed asp.net C# code error Pin
Abhijit Jana23-Jul-09 10:57
professionalAbhijit Jana23-Jul-09 10:57 
GeneralRe: urgent help needed asp.net C# code error Pin
solo_gaurav23-Jul-09 11:05
solo_gaurav23-Jul-09 11:05 
GeneralRe: urgent help needed asp.net C# code error Pin
Abhijit Jana23-Jul-09 11:26
professionalAbhijit Jana23-Jul-09 11:26 
GeneralRe: urgent help needed asp.net C# code error Pin
PDTUM23-Jul-09 11:36
PDTUM23-Jul-09 11:36 
Hello solo,

re:
string columnName = myDataSet.Tables["Query"].Columns[colIndex].ColumnName;
int YVal = (int) row[columnName];////// ERRROR IN THIS LINE

I believe that you may be trying to cast a non convertible variable to an integer. Check the value of column name in the debugging mode. If it is indeed a number, so it can be converted to an integer, the use the following code:

intYVal = Convert.toInt32(row[ColumnName].toString());

This should return the correct integer value.

Best Regards, Pat
AnswerRe: urgent help needed asp.net C# code error [modified] Pin
Abhijit Jana23-Jul-09 11:09
professionalAbhijit Jana23-Jul-09 11:09 
GeneralRe: urgent help needed asp.net C# code error Pin
solo_gaurav23-Jul-09 11:15
solo_gaurav23-Jul-09 11:15 
QuestionJust trying to get simple app to run on the server Pin
Jeffrey Webster23-Jul-09 9:10
Jeffrey Webster23-Jul-09 9:10 
AnswerRe: Just trying to get simple app to run on the server Pin
David Mujica23-Jul-09 9:32
David Mujica23-Jul-09 9:32 
GeneralRe: Just trying to get simple app to run on the server Pin
Jeffrey Webster23-Jul-09 9:48
Jeffrey Webster23-Jul-09 9:48 
GeneralRe: Just trying to get simple app to run on the server Pin
Abhijit Jana23-Jul-09 9:59
professionalAbhijit Jana23-Jul-09 9:59 
GeneralRe: Just trying to get simple app to run on the server Pin
Jeffrey Webster23-Jul-09 10:24
Jeffrey Webster23-Jul-09 10:24 
GeneralRe: Just trying to get simple app to run on the server Pin
Abhijit Jana23-Jul-09 10:28
professionalAbhijit Jana23-Jul-09 10:28 
AnswerRe: Just trying to get simple app to run on the server Pin
Abhijit Jana23-Jul-09 9:37
professionalAbhijit Jana23-Jul-09 9:37 
GeneralRe: Just trying to get simple app to run on the server Pin
Jeffrey Webster23-Jul-09 10:17
Jeffrey Webster23-Jul-09 10:17 
GeneralRe: Just trying to get simple app to run on the server Pin
Abhijit Jana23-Jul-09 10:20
professionalAbhijit Jana23-Jul-09 10:20 
GeneralRe: Just trying to get simple app to run on the server Pin
Jeffrey Webster23-Jul-09 10:26
Jeffrey Webster23-Jul-09 10:26 
GeneralRe: Just trying to get simple app to run on the server Pin
Abhijit Jana23-Jul-09 10:30
professionalAbhijit Jana23-Jul-09 10:30 
GeneralRe: Just trying to get simple app to run on the server Pin
Jeffrey Webster23-Jul-09 11:30
Jeffrey Webster23-Jul-09 11:30 
AnswerRe: Just trying to get simple app to run on the server Pin
Abhijit Jana23-Jul-09 11:44
professionalAbhijit Jana23-Jul-09 11:44 
GeneralRe: Just trying to get simple app to run on the server Pin
Jeffrey Webster23-Jul-09 12:41
Jeffrey Webster23-Jul-09 12:41 
GeneralRe: Just trying to get simple app to run on the server Pin
Jeffrey Webster23-Jul-09 13:18
Jeffrey Webster23-Jul-09 13:18 

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.