Error

Last post 02-07-2008 12:19 AM by BryianTan. 6 replies.

Sort Posts:

  • Error

    02-06-2008, 7:49 AM
    • Member
      point Member
    • Rajaramk
    • Member since 01-17-2008, 4:11 AM
    • Posts 19

    HI, while executing the line string PPAValues = Request.Form["_HS" + i + "ProjPAValues"].ToString();

    in ASP.Net(.aspx.cs file), i m getting error as "Thread was being aborted". can anyone pls help me to resolve it.

     Previosly this code was working fine.

    Thank you.

  • Re: Error

    02-06-2008, 8:40 AM
    • All-Star
      49,152 point All-Star
    • Curt_C
    • Member since 07-23-2003, 8:27 PM
    • Plover, WI - USA
    • Posts 5,347
    • Moderator
      TrustedFriends-MVPs

    not sure why you are using a Request.Form() call?

    Have you tried a <parentContainer/form/etc>.FindControl["_HS" + i + "ProjPAValues"].ToString()

    Blatant Self-Promotion: Book Released - ASP.Net CMS Development
  • Re: Error

    02-07-2008, 12:00 AM
    • Member
      point Member
    • Rajaramk
    • Member since 01-17-2008, 4:11 AM
    • Posts 19

    Thankyou.

    I tried with the following. but still am getting the "Thread was being aborted error".

  • Re: Error

    02-07-2008, 12:02 AM
    • Member
      point Member
    • Rajaramk
    • Member since 01-17-2008, 4:11 AM
    • Posts 19

    Thank you.

    I tried with the following but still am getting "Thread was being aborted exception" error.

    PAValues = PreviousPage.FindControl("_HS" + i + "PAValues").ToString();

  • Re: Error

    02-07-2008, 12:04 AM
    • Member
      505 point Member
    • suriyamail001
    • Member since 06-29-2007, 8:27 AM
    • Mumbai
    • Posts 162

    Sad

    If debugging is the process of removing bugs, then programming must be the process of putting them in.

    Suriya
  • Re: Error

    02-07-2008, 12:09 AM
    Answer
    • All-Star
      19,498 point All-Star
    • e_screw
    • Member since 10-20-2004, 9:22 AM
    • Women, Guitar, Russia, Billiards, Nature, .NET
    • Posts 3,893

    Rajaramk:

    I tried with the following but still am getting "Thread was being aborted exception" error.

    Do you have any Response.Redirect in a try - catch block in the code ? If so , pass the endResponse parameter to the Response.Redirect as "false"

    Response.Redirect( string url, bool endResponse);

    Thanks

    -Mark post(s) as "Answer" that helped you

    Mark post(s) as "Answer" that helped you

    Electronic Screw
    Website||Blog||Dub@i.net
  • Re: Error

    02-07-2008, 12:19 AM
    • Contributor
      3,868 point Contributor
    • BryianTan
    • Member since 02-03-2008, 12:50 PM
    • VA
    • Posts 776

     did you check if Request.Form["_HS" + i + "ProjPAValues"] is null?

    I like the idea from the above post, try catch

    Bryian Tan
    MCP, MCAD
    Blog
Page 1 of 1 (7 items)