debugging is bugging me :-\

Last post 05-11-2008 9:38 PM by patron. 4 replies.

Sort Posts:

  • Angry [:@] debugging is bugging me :-\

    05-09-2008, 1:01 AM
    • Loading...
    • patron
    • Joined on 08-11-2006, 8:17 PM
    • Posts 74

    hi guys

    I have one of those weired ones

     I have a aspx page that has the code in the aspx file versus external vb file.

    in this aspx file I have below script

    1        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
    2            
    3        End Sub
    4        Protected Sub txtid_Init(ByVal sender As Object, ByVal e As System.EventArgs)
    5            If Me.txtid.Text = "" Then
    6                Dim bn As Integer = biletnumarasial()
    7                Me.txtid.Text = bn
    8            End If
    9            
    10       End Sub
    11   
    

     when I use line 6 and 7 in page_load sub it won't work

    I put the same code as shown above it works of course I had to put if condition there becuase it is running more then once because of postbacks (I guess)

    anyway if you want to hear one more weired thing, when I put a breakpoint (red dot on left of line) I can't VWD won't stop but, if  I put breakpoint in "txtid_init sub" it breaks.

     so, my debug=true on aspx file, IE setting and asp.net server config

    Please help before I pul the last hair from head.

    Thanks in advance.

    Cemal

  • Re: debugging is bugging me :-\

    05-09-2008, 2:28 AM
    • Loading...
    • frostfang
    • Joined on 12-12-2007, 11:43 PM
    • Posts 155

    What is the method txtid_init doing? is it firing before the init phase of the page lifecycle or the load phase??? The code you have given doesn't help me to much, please explain what the txtid_init is associated with / handles and when it's called?

    Micky B
    Intranet Developer
  • Re: debugging is bugging me :-\

    05-09-2008, 8:24 AM
    • Loading...
    • patron
    • Joined on 08-11-2006, 8:17 PM
    • Posts 74

    I do not know when it is called, I was assuming during rendering the page every control initialized that includes txtid_init

    as you can see I am not expert on the subject.

     

  • Re: debugging is bugging me :-\

    05-11-2008, 7:06 PM
    • Loading...
    • frostfang
    • Joined on 12-12-2007, 11:43 PM
    • Posts 155

    Ok thats cool, in an aspx page life cycle the init phase occurs before the load phase, so the txtid_init method gets run before page_load.

    Can you tell me what control has the id - txtid, in other words what is txtid, am i right in assuming it's a label or a textbox?

    And also what is the method biletnumarasial() returning, is it an integer or string, etc...???

    Also is the method biletnumarasial() accessing something in viewstate or sessionstate, etc...

    Micky B
    Intranet Developer
  • Re: debugging is bugging me :-\

    05-11-2008, 9:38 PM
    • Loading...
    • patron
    • Joined on 08-11-2006, 8:17 PM
    • Posts 74

    never mind,

    I don't know how to do all that, and I don't want to bother you guys any longer.

    thanks for trying.

     

Page 1 of 1 (5 items)