473,795 Members | 2,911 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing an HTML Checkbox

Hello,

How do I access HTML CheckBoxs in the codebehind section of an ASP.NET
program?

In the old Interdev days one would:
For i = 1 to Request.Form("C heckBox").Count
if Request.Form("C heckBox")(i)) > 0 then
End If
Next

That throws
Exception Details: System.NullRefe renceException: Object reference not set
to an instance of an object.
Seems like a simple thing, but I'm obviously missing something.

Thanks in advance,
Craig
Nov 19 '05 #1
9 12546
Hi Craig,

In order to manipulate a HTML control in the codebehind,
first you should set the control's runat="server". Then in
the codebehind you can access the control in following way:

HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

Hope it's helpful.

Elton Wang
el********@hotm ail.com

-----Original Message-----
Hello,

How do I access HTML CheckBoxs in the codebehind section of an ASP.NETprogram?

In the old Interdev days one would:
For i = 1 to Request.Form("C heckBox").Count
if Request.Form("C heckBox")(i)) > 0 then
End If
Next

That throws
Exception Details: System.NullRefe renceException: Object reference not setto an instance of an object.
Seems like a simple thing, but I'm obviously missing something.
Thanks in advance,
Craig
.

Nov 19 '05 #2
Thanks for the response. I guess I'm extra dumb today, because I continue
to struggle.

Here's the code snippet:
For i = 0 To FldCounter
Dim r As New TableRow

Dim c2 As New TableCell
c2.HorizontalAl ign = HorizontalAlign .Center
c2.Controls.Add (New LiteralControl( "<input type=checkbox id=chkboxS
RunAt=Server"))
r.Cells.Add(c2)

Table1.Rows.Add (r)
Next

How do I access chkboxS in the code?

page.findcontro l, table1.findcont ol, table1.rows.fin dcontol all fail.

Thanks again,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in message
news:06******** *************** *****@phx.gbl.. .
Hi Craig,

In order to manipulate a HTML control in the codebehind,
first you should set the control's runat="server". Then in
the codebehind you can access the control in following way:

HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

Hope it's helpful.

Elton Wang
el********@hotm ail.com

-----Original Message-----
Hello,

How do I access HTML CheckBoxs in the codebehind section

of an ASP.NET
program?

In the old Interdev days one would:
For i = 1 to Request.Form("C heckBox").Count
if Request.Form("C heckBox")(i)) > 0 then
End If
Next

That throws
Exception Details: System.NullRefe renceException: Object

reference not set
to an instance of an object.
Seems like a simple thing, but I'm obviously missing

something.

Thanks in advance,
Craig
.

Nov 19 '05 #3
Sorry, I forgot you are using VB.NET.

Following C# code
HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

can be translated to
Dim ckCtrl As HtmlInputCheckB ox = CType(Me.FindCo ntrol
(ckID), HtmlInputCheckB ox)
Dim isChecked As Boolean = ckCtrl.Checked

Just change ckID to chkboxS, it should be able to be used
for your code.

-----Original Message-----
Thanks for the response. I guess I'm extra dumb today, because I continueto struggle.

Here's the code snippet:
For i = 0 To FldCounter
Dim r As New TableRow

Dim c2 As New TableCell
c2.HorizontalAl ign = HorizontalAlign .Center
c2.Controls.Add (New LiteralControl( "<input type=checkbox id=chkboxSRunAt=Server") )
r.Cells.Add(c2)

Table1.Rows.Add (r)
Next

How do I access chkboxS in the code?

page.findcontr ol, table1.findcont ol, table1.rows.fin dcontol all fail.
Thanks again,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in messagenews:06******* *************** ******@phx.gbl. ..
Hi Craig,

In order to manipulate a HTML control in the codebehind,
first you should set the control's runat="server". Then in the codebehind you can access the control in following way:
HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

Hope it's helpful.

Elton Wang
el********@hotm ail.com

-----Original Message-----
Hello,

How do I access HTML CheckBoxs in the codebehind section

of an ASP.NET
program?

In the old Interdev days one would:
For i = 1 to Request.Form("C heckBox").Count
if Request.Form("C heckBox")(i)) > 0 then
End If
Next

That throws
Exception Details: System.NullRefe renceException: Object

reference not set
to an instance of an object.
Seems like a simple thing, but I'm obviously missing

something.

Thanks in advance,
Craig
.

.

Nov 19 '05 #4
Thanks again.

I appreciate your extra effort, nonetheless, the problem still remains. The
error reported is:

System.NullRefe renceException: Object reference not set to an instance of an
object.

This happens when I try to access ckCtrl.Checked.

For what it's worth, Me.Controls.Cou nt returns 3, but there are 12
checkboxes created dynamically. Something seems amiss.

Thanks,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in message
news:06******** *************** *****@phx.gbl.. .
Sorry, I forgot you are using VB.NET.

Following C# code
HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

can be translated to
Dim ckCtrl As HtmlInputCheckB ox = CType(Me.FindCo ntrol
(ckID), HtmlInputCheckB ox)
Dim isChecked As Boolean = ckCtrl.Checked

Just change ckID to chkboxS, it should be able to be used
for your code.

-----Original Message-----
Thanks for the response. I guess I'm extra dumb today,

because I continue
to struggle.

Here's the code snippet:
For i = 0 To FldCounter
Dim r As New TableRow

Dim c2 As New TableCell
c2.HorizontalAl ign = HorizontalAlign .Center
c2.Controls.Add (New LiteralControl( "<input

type=checkbox id=chkboxS
RunAt=Server" ))
r.Cells.Add(c2)

Table1.Rows.Add (r)
Next

How do I access chkboxS in the code?

page.findcont rol, table1.findcont ol,

table1.rows.fin dcontol all fail.

Thanks again,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in

message
news:06****** *************** *******@phx.gbl ...
Hi Craig,

In order to manipulate a HTML control in the codebehind,
first you should set the control's runat="server". Then in the codebehind you can access the control in following way:
HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

Hope it's helpful.

Elton Wang
el********@hotm ail.com
-----Original Message-----
Hello,

How do I access HTML CheckBoxs in the codebehind section
of an ASP.NET
program?

In the old Interdev days one would:
For i = 1 to Request.Form("C heckBox").Count
if Request.Form("C heckBox")(i)) > 0 then
End If
Next

That throws
Exception Details: System.NullRefe renceException: Object
reference not set
to an instance of an object.
Seems like a simple thing, but I'm obviously missing
something.

Thanks in advance,
Craig
.

.

Nov 19 '05 #5
Hi Craig,

Once I find time, I will try your code to figure it out.
If you solve the problem yourself, please let me know.

Elton Wang
el********@hotm ail.com
-----Original Message-----
Thanks again.

I appreciate your extra effort, nonetheless, the problem still remains. Theerror reported is:

System.NullRef erenceException : Object reference not set to an instance of anobject.

This happens when I try to access ckCtrl.Checked.

For what it's worth, Me.Controls.Cou nt returns 3, but there are 12checkboxes created dynamically. Something seems amiss.

Thanks,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in messagenews:06******* *************** ******@phx.gbl. ..
Sorry, I forgot you are using VB.NET.

Following C# code
HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

can be translated to
Dim ckCtrl As HtmlInputCheckB ox = CType(Me.FindCo ntrol
(ckID), HtmlInputCheckB ox)
Dim isChecked As Boolean = ckCtrl.Checked

Just change ckID to chkboxS, it should be able to be used for your code.

-----Original Message-----
Thanks for the response. I guess I'm extra dumb today,

because I continue
to struggle.

Here's the code snippet:
For i = 0 To FldCounter
Dim r As New TableRow

Dim c2 As New TableCell
c2.HorizontalAl ign = HorizontalAlign .Center
c2.Controls.Add (New LiteralControl( "<input

type=checkbox id=chkboxS
RunAt=Server "))
r.Cells.Add(c2)

Table1.Rows.Add (r)
Next

How do I access chkboxS in the code?

page.findcon trol, table1.findcont ol,

table1.rows.fin dcontol all fail.

Thanks again,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in

message
news:06***** *************** ********@phx.gb l...
Hi Craig,

In order to manipulate a HTML control in the codebehind, first you should set the control's runat="server". Then
in
the codebehind you can access the control in following

way:

HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

Hope it's helpful.

Elton Wang
el********@hotm ail.com
>-----Original Message-----
>Hello,
>
>How do I access HTML CheckBoxs in the codebehind

section of an ASP.NET
>program?
>
>In the old Interdev days one would:
> For i = 1 to Request.Form("C heckBox").Count
> if Request.Form("C heckBox")(i)) > 0 then
> End If
> Next
>
>That throws
>Exceptio n Details: System.NullRefe renceException: Object reference not set
>to an instance of an object.
>
>
>Seems like a simple thing, but I'm obviously missing
something.
>
>Thanks in advance,
>Craig
>
>
>.
>
.

.

Nov 19 '05 #6
HTML checkboxes only return the value "on" when the form is submitted and
they are checked, or nothing when they are not checked. If you want to be
able to access them server-side, they must be proper ASP.NET server
controls. You can't create them using a Literal control. You need to create
instances of the ASP.NET control type you want and then add them to the
Controls collection.

"Elton Wang" <an*******@disc ussions.microso ft.com> wrote in message
news:10******** *************** *****@phx.gbl.. .
Hi Craig,

Once I find time, I will try your code to figure it out.
If you solve the problem yourself, please let me know.

Elton Wang
el********@hotm ail.com
-----Original Message-----
Thanks again.

I appreciate your extra effort, nonetheless, the problem

still remains. The
error reported is:

System.NullRef erenceException : Object reference not set

to an instance of an
object.

This happens when I try to access ckCtrl.Checked.

For what it's worth, Me.Controls.Cou nt returns 3, but

there are 12
checkboxes created dynamically. Something seems amiss.

Thanks,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in

message
news:06******* *************** ******@phx.gbl. ..
Sorry, I forgot you are using VB.NET.

Following C# code
HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

can be translated to
Dim ckCtrl As HtmlInputCheckB ox = CType(Me.FindCo ntrol
(ckID), HtmlInputCheckB ox)
Dim isChecked As Boolean = ckCtrl.Checked

Just change ckID to chkboxS, it should be able to be used for your code.
-----Original Message-----
Thanks for the response. I guess I'm extra dumb today,
because I continue
to struggle.

Here's the code snippet:
For i = 0 To FldCounter
Dim r As New TableRow

Dim c2 As New TableCell
c2.HorizontalAl ign = HorizontalAlign .Center
c2.Controls.Add (New LiteralControl( "<input
type=checkbox id=chkboxS
RunAt=Server "))
r.Cells.Add(c2)

Table1.Rows.Add (r)
Next

How do I access chkboxS in the code?

page.findcon trol, table1.findcont ol,
table1.rows.fin dcontol all fail.

Thanks again,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in
message
news:06***** *************** ********@phx.gb l...
> Hi Craig,
>
> In order to manipulate a HTML control in the codebehind,> first you should set the control's runat="server". Then in
> the codebehind you can access the control in following
way:
>
> HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
> this.FindContro l(ckID);
> bool isChacked = ckCtrl.Checked ;
>
> Hope it's helpful.
>
> Elton Wang
> el********@hotm ail.com
>
>
>>-----Original Message-----
>>Hello,
>>
>>How do I access HTML CheckBoxs in the codebehind section> of an ASP.NET
>>program?
>>
>>In the old Interdev days one would:
>> For i = 1 to Request.Form("C heckBox").Count
>> if Request.Form("C heckBox")(i)) > 0 then
>> End If
>> Next
>>
>>That throws
>>Exceptio n Details: System.NullRefe renceException: Object> reference not set
>>to an instance of an object.
>>
>>
>>Seems like a simple thing, but I'm obviously missing
> something.
>>
>>Thanks in advance,
>>Craig
>>
>>
>>.
>>
.

.

Nov 19 '05 #7
Elton,

Thanks for everything.

Ok, I solved it, but it ain't pretty! For each dynamically created checkbox
I named it chkbox + cstr(counter). Then in the code behind, I look though
the request("chkbox 1") ... array and I have my results.

Thanks again for all your help,
Craig

"Elton Wang" <an*******@disc ussions.microso ft.com> wrote in message
news:10******** *************** *****@phx.gbl.. .
Hi Craig,

Once I find time, I will try your code to figure it out.
If you solve the problem yourself, please let me know.

Elton Wang
el********@hotm ail.com
-----Original Message-----
Thanks again.

I appreciate your extra effort, nonetheless, the problem

still remains. The
error reported is:

System.NullRe ferenceExceptio n: Object reference not set

to an instance of an
object.

This happens when I try to access ckCtrl.Checked.

For what it's worth, Me.Controls.Cou nt returns 3, but

there are 12
checkboxes created dynamically. Something seems amiss.

Thanks,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in

message
news:06****** *************** *******@phx.gbl ...
Sorry, I forgot you are using VB.NET.

Following C# code
HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

can be translated to
Dim ckCtrl As HtmlInputCheckB ox = CType(Me.FindCo ntrol
(ckID), HtmlInputCheckB ox)
Dim isChecked As Boolean = ckCtrl.Checked

Just change ckID to chkboxS, it should be able to be used for your code.
-----Original Message-----
Thanks for the response. I guess I'm extra dumb today,
because I continue
to struggle.

Here's the code snippet:
For i = 0 To FldCounter
Dim r As New TableRow

Dim c2 As New TableCell
c2.HorizontalAl ign = HorizontalAlign .Center
c2.Controls.Add (New LiteralControl( "<input
type=checkbox id=chkboxS
RunAt=Serve r"))
r.Cells.Add(c2)

Table1.Rows.Add (r)
Next

How do I access chkboxS in the code?

page.findco ntrol, table1.findcont ol,
table1.rows.fin dcontol all fail.

Thanks again,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in
message
news:06**** *************** *********@phx.g bl...
> Hi Craig,
>
> In order to manipulate a HTML control in the codebehind,> first you should set the control's runat="server". Then in
> the codebehind you can access the control in following
way:
>
> HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
> this.FindContro l(ckID);
> bool isChacked = ckCtrl.Checked ;
>
> Hope it's helpful.
>
> Elton Wang
> el********@hotm ail.com
>
>
>>-----Original Message-----
>>Hello,
>>
>>How do I access HTML CheckBoxs in the codebehind section> of an ASP.NET
>>program ?
>>
>>In the old Interdev days one would:
>> For i = 1 to Request.Form("C heckBox").Count
>> if Request.Form("C heckBox")(i)) > 0 then
>> End If
>> Next
>>
>>That throws
>>Excepti on Details: System.NullRefe renceException: Object> reference not set
>>to an instance of an object.
>>
>>
>>Seems like a simple thing, but I'm obviously missing
> something.
>>
>>Thanks in advance,
>>Craig
>>
>>
>>.
>>
.

.

Nov 19 '05 #8
Alex,
Thanks for responding. Actually, checkboxes can have any value you want,
simply add a value argument:
<input type="checkbox" value="1234" ...>

For visual reason, I can't use a web control checkbox, because the way they
process styles. But I solved my issue by creating an "array" (not really,
but close enough) of checkboxes, then in the post, reading that array.

Again, thanks for responding.

Craig

"Alex Homer" <al**@stonebroo m.com> wrote in message
news:Op******** ******@TK2MSFTN GP09.phx.gbl...
HTML checkboxes only return the value "on" when the form is submitted and
they are checked, or nothing when they are not checked. If you want to be
able to access them server-side, they must be proper ASP.NET server
controls. You can't create them using a Literal control. You need to
create
instances of the ASP.NET control type you want and then add them to the
Controls collection.

"Elton Wang" <an*******@disc ussions.microso ft.com> wrote in message
news:10******** *************** *****@phx.gbl.. .
Hi Craig,

Once I find time, I will try your code to figure it out.
If you solve the problem yourself, please let me know.

Elton Wang
el********@hotm ail.com
>-----Original Message-----
>Thanks again.
>
>I appreciate your extra effort, nonetheless, the problem

still remains. The
>error reported is:
>
>System.NullRef erenceException : Object reference not set

to an instance of an
>object.
>
>This happens when I try to access ckCtrl.Checked.
>
>For what it's worth, Me.Controls.Cou nt returns 3, but

there are 12
>checkboxes created dynamically. Something seems amiss.
>
>Thanks,
>Craig
>
>
>"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in

message
>news:06******* *************** ******@phx.gbl. ..
>> Sorry, I forgot you are using VB.NET.
>>
>> Following C# code
>> HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
>> this.FindContro l(ckID);
>> bool isChacked = ckCtrl.Checked ;
>>
>> can be translated to
>> Dim ckCtrl As HtmlInputCheckB ox = CType(Me.FindCo ntrol
>> (ckID), HtmlInputCheckB ox)
>> Dim isChecked As Boolean = ckCtrl.Checked
>>
>> Just change ckID to chkboxS, it should be able to be

used
>> for your code.
>>
>>
>>>-----Original Message-----
>>>Thanks for the response. I guess I'm extra dumb today,
>> because I continue
>>>to struggle.
>>>
>>>Here's the code snippet:
>>>For i = 0 To FldCounter
>>> Dim r As New TableRow
>>>
>>> Dim c2 As New TableCell
>>> c2.HorizontalAl ign = HorizontalAlign .Center
>>> c2.Controls.Add (New LiteralControl( "<input
>> type=checkbox id=chkboxS
>>>RunAt=Server "))
>>> r.Cells.Add(c2)
>>>
>>> Table1.Rows.Add (r)
>>>Next
>>>
>>>How do I access chkboxS in the code?
>>>
>>>page.findcon trol, table1.findcont ol,
>> table1.rows.fin dcontol all fail.
>>>
>>>Thanks again,
>>>Craig
>>>
>>>
>>>"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in
>> message
>>>news:06***** *************** ********@phx.gb l...
>>>> Hi Craig,
>>>>
>>>> In order to manipulate a HTML control in the

codebehind,
>>>> first you should set the control's runat="server".

Then
>> in
>>>> the codebehind you can access the control in following
>> way:
>>>>
>>>> HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
>>>> this.FindContro l(ckID);
>>>> bool isChacked = ckCtrl.Checked ;
>>>>
>>>> Hope it's helpful.
>>>>
>>>> Elton Wang
>>>> el********@hotm ail.com
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>Hello,
>>>>>
>>>>>How do I access HTML CheckBoxs in the codebehind

section
>>>> of an ASP.NET
>>>>>program?
>>>>>
>>>>>In the old Interdev days one would:
>>>>> For i = 1 to Request.Form("C heckBox").Count
>>>>> if Request.Form("C heckBox")(i)) > 0 then
>>>>> End If
>>>>> Next
>>>>>
>>>>>That throws
>>>>>Exceptio n Details: System.NullRefe renceException:

Object
>>>> reference not set
>>>>>to an instance of an object.
>>>>>
>>>>>
>>>>>Seems like a simple thing, but I'm obviously missing
>>>> something.
>>>>>
>>>>>Thanks in advance,
>>>>>Craig
>>>>>
>>>>>
>>>>>.
>>>>>
>>>
>>>
>>>.
>>>
>
>
>.
>


Nov 19 '05 #9
It seems when creating HTML Checkbox dynamically, the
attribute, runat=server, does work. It may be because the
Checkbox is created by string.

I am sure if you create static HTML Chechbox and set
attribute runat=server, you can use FindControl(con trlID)
to get the reference of the object.
Elton Wang
-----Original Message-----
Thanks again.

I appreciate your extra effort, nonetheless, the problem still remains. Theerror reported is:

System.NullRef erenceException : Object reference not set to an instance of anobject.

This happens when I try to access ckCtrl.Checked.

For what it's worth, Me.Controls.Cou nt returns 3, but there are 12checkboxes created dynamically. Something seems amiss.

Thanks,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in messagenews:06******* *************** ******@phx.gbl. ..
Sorry, I forgot you are using VB.NET.

Following C# code
HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

can be translated to
Dim ckCtrl As HtmlInputCheckB ox = CType(Me.FindCo ntrol
(ckID), HtmlInputCheckB ox)
Dim isChecked As Boolean = ckCtrl.Checked

Just change ckID to chkboxS, it should be able to be used for your code.

-----Original Message-----
Thanks for the response. I guess I'm extra dumb today,

because I continue
to struggle.

Here's the code snippet:
For i = 0 To FldCounter
Dim r As New TableRow

Dim c2 As New TableCell
c2.HorizontalAl ign = HorizontalAlign .Center
c2.Controls.Add (New LiteralControl( "<input

type=checkbox id=chkboxS
RunAt=Server "))
r.Cells.Add(c2)

Table1.Rows.Add (r)
Next

How do I access chkboxS in the code?

page.findcon trol, table1.findcont ol,

table1.rows.fin dcontol all fail.

Thanks again,
Craig
"Elton Wang" <el***@discussi ons.microsoft.c om> wrote in

message
news:06***** *************** ********@phx.gb l...
Hi Craig,

In order to manipulate a HTML control in the codebehind, first you should set the control's runat="server". Then
in
the codebehind you can access the control in following

way:

HtmlInputCheckB ox ckCtrl = (HtmlInputCheck Box)
this.FindContro l(ckID);
bool isChacked = ckCtrl.Checked ;

Hope it's helpful.

Elton Wang
el********@hotm ail.com
>-----Original Message-----
>Hello,
>
>How do I access HTML CheckBoxs in the codebehind

section of an ASP.NET
>program?
>
>In the old Interdev days one would:
> For i = 1 to Request.Form("C heckBox").Count
> if Request.Form("C heckBox")(i)) > 0 then
> End If
> Next
>
>That throws
>Exceptio n Details: System.NullRefe renceException: Object reference not set
>to an instance of an object.
>
>
>Seems like a simple thing, but I'm obviously missing
something.
>
>Thanks in advance,
>Craig
>
>
>.
>
.

.

Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2449
by: trank | last post by:
I created some checkboxes(<input type=checkbox>) dynamically,and then I'd like to access these checkboxes in code behind using C#. For they are not standard controls like Windows Checkbox, I can't catch it by FindControl().....how can i do this? Many thanks a lot! By trank trank@dynamic-x.net
6
2606
by: Dominique | last post by:
Hi all, I'm using .NET v1.1 and the scenario I have is as follows... I have IE as an ActiveX control embedded in may C# App. I generate a HTML file dynamically and within the HTML file I embed a Flash, powerpoint presentation or movie file similar to ... <object id="globalnav-object" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"...
6
2381
by: mumrah | last post by:
When getting different elements out of an array in JS, i know array.item(0) and array both return the 0th element. My question, will this work in any instance?
3
1904
by: Axel Gallus | last post by:
I wrote a javascript function which should return the html code between a frame's body tag: function load_frame_as_string( Framename ) { var Frame = document.getElementsByName(Framename); var Frame_document = Frame.document; var Frame_Body = Frame.document.getElementsByTagName("body");
1
2483
by: spiderman2 | last post by:
When the page is first accessed, certain HTML elements are dynamically created. The checkboxes all have the name "chkBox". There is a special "checkAll" checkbox which when checked or unchecked, does the same operation on all the "chkBox" elements. It gets them by calling document.getElementsByName("chkBox") and then modifies their status. Now I have a requirement to bypass some of the checkboxes. Being too lazy to maintain a separate bit array...
0
3595
by: shapper | last post by:
Hi, I have the following on an Edit view to edit a IsPublished field: <%= Html.CheckBox("IsPublished", "", "", ViewData.Model.PostPaper.Post.IsPublished, new { @class = "CheckBox" }) %> I get the error:
1
5158
by: joecosmides | last post by:
I have a microsoft access front end and backend database for multi- user use. I have the back end located on a server that also is an IIS webserver. I've created a few ASP pages that pull customer lists down so far and it works great. I am trying to edit some of that data and noticed that a checkbox on the webpage uses ON/OFF instead of True/ False like MS Access uses. My problem is trying to get the checkbox to be checked if the data in...
2
3195
by: joecosmides | last post by:
I have a microsoft access front end and backend database for multi- user use. I have the back end located on a server that also is an IIS webserver. I've created a few ASP pages that pull customer lists down so far and it works great. I am trying to edit some of that data and noticed that a checkbox on the webpage uses ON/OFF instead of True/ False like MS Access uses. My problem is trying to get the checkbox to be checked if the data in...
1
2379
by: mithu0189479120 | last post by:
I am new in PHP & MYSQL. I have a multiple checkbox item in html form and want to create a new table by this checked item in an existing database with PHP code .
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7541
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.