Re: typecast error!

Discussion in 'ASP .Net' started by Otis Mukinfus, Feb 3, 2006.

  1. On Mon, 13 Feb 2006 18:13:11 +0530, "Arvind R" <arvind
    > wrote:

    I'd like to answer your question but you are in the future and I can't
    do time travel yet.

    >Whats the solution for this?
    >
    >Specified cast is not valid.
    >Description: An unhandled exception occurred during the execution of the
    >current web request. Please review the stack trace for more information
    >about the error and where it originated in the code.
    >
    >Exception Details: System.InvalidCastException: Specified cast is not valid.
    >
    >Source Error:
    >
    >Line 118: if ((dr["session_startdate"].ToString() !=
    >DBNull.Value.ToString()))
    >Line 119: {
    >Line 120: DateTime dtEvent = (DateTime)dr["session_startdate"];
    >Line 121:
    >Line 122:public void CalendarDRender(object sender,
    >System.Web.UI.WebControls.DayRenderEventArgs e)


    Otis Mukinfus
    http://www.otismukinfus.com
    http://www.tomchilders.com
     
    Otis Mukinfus, Feb 3, 2006
    #1
    1. Advertising

  2. Otis Mukinfus

    Terry Burns Guest

    LOL

    --
    Terry Burns
    http://TrainingOn.net
    "Otis Mukinfus" <> wrote in message
    news:...
    > On Mon, 13 Feb 2006 18:13:11 +0530, "Arvind R" <arvind
    > > wrote:
    >
    > I'd like to answer your question but you are in the future and I can't
    > do time travel yet.
    >
    >>Whats the solution for this?
    >>
    >>Specified cast is not valid.
    >>Description: An unhandled exception occurred during the execution of the
    >>current web request. Please review the stack trace for more information
    >>about the error and where it originated in the code.
    >>
    >>Exception Details: System.InvalidCastException: Specified cast is not
    >>valid.
    >>
    >>Source Error:
    >>
    >>Line 118: if ((dr["session_startdate"].ToString() !=
    >>DBNull.Value.ToString()))
    >>Line 119: {
    >>Line 120: DateTime dtEvent = (DateTime)dr["session_startdate"];
    >>Line 121:
    >>Line 122:public void CalendarDRender(object sender,
    >>System.Web.UI.WebControls.DayRenderEventArgs e)

    >
    > Otis Mukinfus
    > http://www.otismukinfus.com
    > http://www.tomchilders.com
     
    Terry Burns, Feb 4, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Fitzpatrick

    Re: typecast error!

    Mark Fitzpatrick, Feb 1, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,691
    Lau Lei Cheong
    Feb 8, 2006
  2. Joe Van Meer

    Re: typecast error!

    Joe Van Meer, Feb 1, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    435
    Bob Lehmann
    Feb 2, 2006
  3. Tomba

    generics typecast

    Tomba, Jan 9, 2006, in forum: Java
    Replies:
    8
    Views:
    1,352
  4. Martin Himmel
    Replies:
    0
    Views:
    318
    Martin Himmel
    Jul 12, 2006
  5. Martin Himmel
    Replies:
    1
    Views:
    409
    Victor Bazarov
    Jul 12, 2006
Loading...

Share This Page