Weird issue about span and checkbox

Discussion in 'ASP .Net Web Controls' started by Raj Balakrishnan, Aug 8, 2003.

  1. Hi,

    The issue I am experiencing is
    that on my development server(.NET Framework version V.1.0.3705),
    the <asp:checkbox onclick="toggleRejectOff(this)" id="edit_approve"
    Runat="server" >
    controls renders html like the below

    <span Onclick="toggleRejectOff(this)">
    <input id="CRPendingDGrid__ctl3_edit_approve" type="checkbox"
    name="CRPendingDGrid:_ctl3:edit_approve" />
    </span>

    but on the QA server((.NET Framework version V.1.0.3705) it renders html
    like the below

    <input id="CRPendingDGrid__ctl10_edit_reject" type="checkbox"
    name="CRPendingDGrid:_ctl10:edit_reject" onclick="toggleApproveOff(this)" />

    It is exactly the same code and the same .NET Framework version. The
    javascript function looks for the children(the check box) to do some
    function.So, this works on the DEV machine but doesnot work on the QA
    server. Any ideas?
    Thanks,
    Raj Balakrishnan
     
    Raj Balakrishnan, Aug 8, 2003
    #1
    1. Advertising

  2. Is it possible that you are using a different browsers to view the QA and Dev
    sites? I'm just wondering whether .NET is detecting an uplevel browser in one
    case and a downlevel browser in the other?

    Ken

    "Raj Balakrishnan" <> wrote in message
    news:OEIB$...
    Hi,

    The issue I am experiencing is
    that on my development server(.NET Framework version V.1.0.3705),
    the <asp:checkbox onclick="toggleRejectOff(this)" id="edit_approve"
    Runat="server" >
    controls renders html like the below

    <span Onclick="toggleRejectOff(this)">
    <input id="CRPendingDGrid__ctl3_edit_approve" type="checkbox"
    name="CRPendingDGrid:_ctl3:edit_approve" />
    </span>

    but on the QA server((.NET Framework version V.1.0.3705) it renders html
    like the below

    <input id="CRPendingDGrid__ctl10_edit_reject" type="checkbox"
    name="CRPendingDGrid:_ctl10:edit_reject" onclick="toggleApproveOff(this)" />

    It is exactly the same code and the same .NET Framework version. The
    javascript function looks for the children(the check box) to do some
    function.So, this works on the DEV machine but doesnot work on the QA
    server. Any ideas?
    Thanks,
    Raj Balakrishnan
     
    Ken Cox [Microsoft MVP], Aug 10, 2003
    #2
    1. Advertising

  3. Ken,

    Thank you for replying to my post.
    I am using only one browser (IE 6.0.2800.1106) to view the pages on both
    sites.

    Thanks,
    Raj

    "Ken Cox [Microsoft MVP]" <> wrote in message
    news:...
    > Is it possible that you are using a different browsers to view the QA and

    Dev
    > sites? I'm just wondering whether .NET is detecting an uplevel browser in

    one
    > case and a downlevel browser in the other?
    >
    > Ken
    >
    > "Raj Balakrishnan" <> wrote in message
    > news:OEIB$...
    > Hi,
    >
    > The issue I am experiencing is
    > that on my development server(.NET Framework version V.1.0.3705),
    > the <asp:checkbox onclick="toggleRejectOff(this)" id="edit_approve"
    > Runat="server" >
    > controls renders html like the below
    >
    > <span Onclick="toggleRejectOff(this)">
    > <input id="CRPendingDGrid__ctl3_edit_approve" type="checkbox"
    > name="CRPendingDGrid:_ctl3:edit_approve" />
    > </span>
    >
    > but on the QA server((.NET Framework version V.1.0.3705) it renders html
    > like the below
    >
    > <input id="CRPendingDGrid__ctl10_edit_reject" type="checkbox"
    > name="CRPendingDGrid:_ctl10:edit_reject" onclick="toggleApproveOff(this)"

    />
    >
    > It is exactly the same code and the same .NET Framework version. The
    > javascript function looks for the children(the check box) to do some
    > function.So, this works on the DEV machine but doesnot work on the QA
    > server. Any ideas?
    > Thanks,
    > Raj Balakrishnan
    >
    >
    >
     
    Raj Balakrishnan, Aug 11, 2003
    #3
    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. Fulio Open

    Can span include span?

    Fulio Open, Jun 26, 2009, in forum: HTML
    Replies:
    5
    Views:
    576
    dorayme
    Jun 26, 2009
  2. Stéphane Klein
    Replies:
    2
    Views:
    1,854
    John Nagle
    Mar 30, 2010
  3. Stefan Behnel
    Replies:
    0
    Views:
    503
    Stefan Behnel
    Mar 29, 2010
  4. Dan Bishop

    DataGrid (body only) contained in <span>...</span> tags

    Dan Bishop, Jun 7, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    306
    Kilic Beg
    Jun 7, 2004
  5. Wang, Jay
    Replies:
    5
    Views:
    522
    Wang, Jay
    May 25, 2004
Loading...

Share This Page