Click here to Skip to main content
15,891,938 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Thumnail Viewver Pin
sjs4u14-Jul-08 21:46
sjs4u14-Jul-08 21:46 
GeneralRe: Thumnail Viewver Pin
_AK_15-Jul-08 0:40
_AK_15-Jul-08 0:40 
AnswerRe: Thumnail Viewver [modified] Pin
raushan_914-Jul-08 21:40
raushan_914-Jul-08 21:40 
GeneralRe: Thumnail Viewver Pin
sjs4u14-Jul-08 21:53
sjs4u14-Jul-08 21:53 
GeneralRe: Thumnail Viewver Pin
raushan_914-Jul-08 22:02
raushan_914-Jul-08 22:02 
QuestionHow to get the current time of UK from US time using c# [modified] Pin
G Nathan14-Jul-08 20:02
G Nathan14-Jul-08 20:02 
AnswerRe: How to get the current time of UK from US time using c# Pin
eyeseetee14-Jul-08 21:31
eyeseetee14-Jul-08 21:31 
Questionhow to remove System.InvalidCastException error? Pin
sathyan_829414-Jul-08 20:01
sathyan_829414-Jul-08 20:01 
hai all,
i am using .net 2005.i am doing my project in asp.net using c#.for my project back end is MS ACCESS 97.
the following code is
com = new OleDbCommand("select HolderNo,HolderName,DepartmentNo,mid(Appsetdata," + bb + ",2),JobTitle from holderdata where DepartmentNo <> '0000'", con);
dr = com.ExecuteReader();
i1 = 0;
while (dr.Read())
{
holno[i1] = dr.GetString(0);
holname[i1] = dr.GetString(1);
dept[i1] = dr.GetString(2);
appset_holder[i1] = Convert.ToInt16(dr.GetString(3));
jobtitle[i1] = dr.GetString(4);
i1++;
}
dr.Close();
in the above code shown the error in jobtitle[i1] = dr.GetString(4);
the following error were display,
System.InvalidCastException: Specified cast is not valid. at System.Data.OleDb.ColumnBinding.ValueString() at System.Data.OleDb.OleDbDataReader.GetString(Int32 ordinal) at _Default.emp_iterate() in c:\Documents and Settings\sabari\My Documents\Visual Studio 2005\Projects\styrisact1\Default.aspx.cs:line 182 at _Default.validate_main() in c:\Documents and Settings\sabari\My Documents\Visual Studio 2005\Projects\styrisact1\Default.aspx.cs:line 126 at _Default.SubmitImageButton_Click(Object sender, ImageClickEventArgs e) in c:\Documents and Settings\sabari\My Documents\Visual Studio 2005\Projects\styrisact1\Default.aspx.cs:line 101
how to solve the above error?thanks to all in advance.
AnswerRe: how to remove System.InvalidCastException error? Pin
firozu15-Jul-08 1:31
firozu15-Jul-08 1:31 
Questionhow to remove this error? Pin
sathyan_829414-Jul-08 19:37
sathyan_829414-Jul-08 19:37 
AnswerRe: how to remove this error? Pin
Herman<T>.Instance14-Jul-08 19:44
Herman<T>.Instance14-Jul-08 19:44 
QuestionConvert a control to its subClass in runtime Pin
WangHu2514-Jul-08 19:34
WangHu2514-Jul-08 19:34 
QuestionHow to display .gif,.bmp,.png,.swf(flash),.jpeg & .jpg file under single asp.net control Pin
K V Sekhar14-Jul-08 19:31
K V Sekhar14-Jul-08 19:31 
QuestionAjax Problem / Pin
Zeyad Jalil14-Jul-08 19:20
professionalZeyad Jalil14-Jul-08 19:20 
QuestionHow to find the Application path of a Window application through Web Service Pin
K.Safvi14-Jul-08 19:11
K.Safvi14-Jul-08 19:11 
AnswerRe: How to find the Application path of a Window application through Web Service Pin
K.Safvi14-Jul-08 21:36
K.Safvi14-Jul-08 21:36 
Question[Message Deleted] Pin
wEb GuRu...14-Jul-08 19:11
wEb GuRu...14-Jul-08 19:11 
JokeRe: MultiLevel Category Structure! Pin
Venkatesh Mookkan14-Jul-08 19:22
Venkatesh Mookkan14-Jul-08 19:22 
QuestionComunicate from web app to windows app Pin
AlexeiXX314-Jul-08 14:32
AlexeiXX314-Jul-08 14:32 
NewsRe: Comunicate from web app to windows app Pin
Venkatesh Mookkan14-Jul-08 18:03
Venkatesh Mookkan14-Jul-08 18:03 
QuestionSimple path question Pin
Leo Smith14-Jul-08 12:47
Leo Smith14-Jul-08 12:47 
AnswerRe: Simple path question Pin
Guffa14-Jul-08 13:39
Guffa14-Jul-08 13:39 
QuestionNhibernate Pin
Aslesh14-Jul-08 10:55
Aslesh14-Jul-08 10:55 
AnswerRe: Nhibernate Pin
led mike14-Jul-08 11:01
led mike14-Jul-08 11:01 
AnswerRe: Nhibernate Pin
Herman<T>.Instance14-Jul-08 19:43
Herman<T>.Instance14-Jul-08 19:43 

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.