Weird issue about span and checkbox

  • Thread starter Raj Balakrishnan
  • Start date
R

Raj Balakrishnan

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
 
K

Ken Cox [Microsoft MVP]

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

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
 
R

Raj Balakrishnan

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top