Showing posts with label controls. Show all posts
Showing posts with label controls. Show all posts

Thursday, March 29, 2012

Set controls to nothing when finished?

Hello,
I recently saw some example code that looked similar to the following...

...
Dim literalBr As New System.Web.UI.LiteralControl()
literalBr.Text = "<br>"
literalBr.ID = "anId"
Panel1.Controls.Add(literalBr)
literalBr = Nothing
...

Is there a reason why the literalBr control was set to nothing after adding it to the panel? Does it cause memory usage to go up if you dont set controls to nothing after creating them programmatically?The garbage collector will take care cleaning up literalBr in this case. Setting literalBr to nothing is a waste of time. SeeProgramming for Garbage Collection for more details.

Monday, March 26, 2012

Set Enabled to false for multiple web controls

Hi,
I have a usercontrol which contains multiple server controls like
textbox, radiobutton..., I have a public field in the usercontrol
"Enabled". What i want to do is when the usercontrol's "Enabled" is
set to false, set all its child controls "Enabled" to false. I know i
can set them one by one. But there should be a easy way to do it
like :
for(int i=0;i<myUserControl.Controls.Count;i++)
{
control oControl = (control) myUserControl.Controls(i);
oControl.Enabled = false;
}
Anyone can give me a hint?
ElaineOn May 23, 9:01 pm, elaine <elain...@.gmail.com> wrote:
> But there should be a easy way to do it
> like :
> for(int i=0;i<myUserControl.Controls.Count;i++)
> {
> control oControl = (control) myUserControl.Controls(i);
> oControl.Enabled = false;
> }
> Anyone can give me a hint?
Sorry, I'm not clear on your question...
..do you mean that the for loop you wrote up there doesn't work ?
If it does, that seems fairly simple to me.. maybe I'd try to save a
line with:
foreach(Control ctrl in this.Controls)
ctrl.Enabled=false;
However, I don't think that the base Control class defines an Enabled
property, and that might be a problem. Then again, a Control might be
a label, a text literal, a generic html control, a bunch of things
were it's not quite clear what it means to be 'enabled' or not. Maybe
when 'enabled' is turned to false on your user control, you just don't
want to display any of its children controls ?
If so, at render time, you could check the value of the user control's
Enabled property:
if(this.Enabled)
base.Render(writer);
HTH,
~O
You could use control tree recursion to touch all the controls in the way
you describe.
Here are the details:
http://SteveOrr.net/faq/ControlTreeRecursion.aspx
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"elaine" <elain.sun@.gmail.com> wrote in message
news:1179968508.834610.110610@.n15g2000prd.googlegroups.com...
> Hi,
> I have a usercontrol which contains multiple server controls like
> textbox, radiobutton..., I have a public field in the usercontrol
> "Enabled". What i want to do is when the usercontrol's "Enabled" is
> set to false, set all its child controls "Enabled" to false. I know i
> can set them one by one. But there should be a easy way to do it
> like :
> for(int i=0;i<myUserControl.Controls.Count;i++)
> {
> control oControl = (control) myUserControl.Controls(i);
> oControl.Enabled = false;
> }
> Anyone can give me a hint?
> Elaine
>

Set Enabled to false for multiple web controls

Hi,

I have a usercontrol which contains multiple server controls like
textbox, radiobutton..., I have a public field in the usercontrol
"Enabled". What i want to do is when the usercontrol's "Enabled" is
set to false, set all its child controls "Enabled" to false. I know i
can set them one by one. But there should be a easy way to do it
like :

for(int i=0;i<myUserControl.Controls.Count;i++)
{
control oControl = (control) myUserControl.Controls(i);
oControl.Enabled = false;
}

Anyone can give me a hint?

ElaineOn May 23, 9:01 pm, elaine <elain...@.gmail.comwrote:

Quote:

Originally Posted by

But there should be a easy way to do it
like :
>
for(int i=0;i<myUserControl.Controls.Count;i++)
{
control oControl = (control) myUserControl.Controls(i);
oControl.Enabled = false;
>
}
>
Anyone can give me a hint?


Sorry, I'm not clear on your question...
...do you mean that the for loop you wrote up there doesn't work ?
If it does, that seems fairly simple to me.. maybe I'd try to save a
line with:

foreach(Control ctrl in this.Controls)
ctrl.Enabled=false;

However, I don't think that the base Control class defines an Enabled
property, and that might be a problem. Then again, a Control might be
a label, a text literal, a generic html control, a bunch of things
were it's not quite clear what it means to be 'enabled' or not. Maybe
when 'enabled' is turned to false on your user control, you just don't
want to display any of its children controls ?
If so, at render time, you could check the value of the user control's
Enabled property:

if(this.Enabled)
base.Render(writer);

HTH,
~O
You could use control tree recursion to touch all the controls in the way
you describe.
Here are the details:
http://SteveOrr.net/faq/ControlTreeRecursion.aspx
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"elaine" <elain.sun@.gmail.comwrote in message
news:1179968508.834610.110610@.n15g2000prd.googlegr oups.com...

Quote:

Originally Posted by

Hi,
>
I have a usercontrol which contains multiple server controls like
textbox, radiobutton..., I have a public field in the usercontrol
"Enabled". What i want to do is when the usercontrol's "Enabled" is
set to false, set all its child controls "Enabled" to false. I know i
can set them one by one. But there should be a easy way to do it
like :
>
for(int i=0;i<myUserControl.Controls.Count;i++)
{
control oControl = (control) myUserControl.Controls(i);
oControl.Enabled = false;
}
>
Anyone can give me a hint?
>
Elaine
>

Saturday, March 24, 2012

Set focus problem

I have a page with a drop down and several web controls. The drop down
is set to postback and it reloads the textboxes based on the selected
drop down item. I set the focus to the first textbox control on the
client like this:
<script language="vbscript">
Option Explicit
...other code
If Not <%=mbReadOnly%> Then
document.frmDetails.txtName.focus()
End If
...other code
</script>
This works fine on first page load but when I change the drop down it
does reset the focus and you can't even type in the first textbox
until you select another textbox first.
To debug I added a message box right before the set focus to see if it
was even getting to this line of code and it works but I can't leave a
message box here.
Any ideas on what could be the problem?
Thanks in advance for any help,
DeidreHi

setfocus in body onload event,

document.frmDetails.txtName.focus()

HTH
Ravikanth

>--Original Message--
>I have a page with a drop down and several web controls.
The drop down
>is set to postback and it reloads the textboxes based on
the selected
>drop down item. I set the focus to the first textbox
control on the
>client like this:
><script language="vbscript">
>Option Explicit
>...other code
>If Not <%=mbReadOnly%> Then
>document.frmDetails.txtName.focus()
>End If
>...other code
></script>
>This works fine on first page load but when I change the
drop down it
>does reset the focus and you can't even type in the
first textbox
>until you select another textbox first.
>To debug I added a message box right before the set
focus to see if it
>was even getting to this line of code and it works but I
can't leave a
>message box here.
>Any ideas on what could be the problem?
>Thanks in advance for any help,
>Deidre
>.
Thanks for the suggestion but it does the same thing if I put it in a
body onload event.

"Ravikanth[MVP]" <dvravikanth@.hotmail.com> wrote in message news:<0e1c01c34d31$17c134a0$a301280a@.phx.gbl>...
> Hi
> setfocus in body onload event,
> document.frmDetails.txtName.focus()
> HTH
> Ravikanth
I fixed my problem. I needed to move my set focus command to the window_onload sub:
Sub Window_OnLoad()
If Not <%=mbReadOnly%> Then
document.frmDetails.txtName.focus()
End If
End Sub

Deidre

Thursday, March 22, 2012

Set more than one ValidationGroup to a Button?

ASP.NET 2.0
Is it possible to set more than one ValidationGroup to a Button?
I have two sets of controls on a Web page, into two different
ValidationGroups. I would like when the user clicks on a specific button,
that both groups be validated.
Thanks.
MichaelI don't see any way of this directly using the .NET 2.0 Framework. I'm
sure, given the time, you could come up with a custom Button object and
custom Validation object that could handle it.
Another option could be to use the CustomValidator object. It provides with
both server and client validation functionality, but I'm not how complex it
might be with your validation needs. It's at least worth a look.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."
"news.microsoft.com" <someone@.somewhere.com> wrote in message
news:eq3UiunPGHA.3848@.TK2MSFTNGP12.phx.gbl...
> ASP.NET 2.0
> Is it possible to set more than one ValidationGroup to a Button?
> I have two sets of controls on a Web page, into two different
> ValidationGroups. I would like when the user clicks on a specific button,
> that both groups be validated.
> Thanks.
> Michael
>
With validation groups in ASP.NET 2.0, you can only match a button to one
group name.
Just so you know that the option exists, my replacement for the Microsoft
validators, "Professional Validation And More"
(http://www.peterblum.com/vam/home.aspx) offers validation groups with the
extensions that you need. You can use "*" in the button's Group property to
fire all validation groups. Similarly, the ValidationSummary can have a
group name of "*" to show all validators on the page, if you like.
-- Peter Blum
www.PeterBlum.com
Email: PLBlum@.PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"news.microsoft.com" <someone@.somewhere.com> wrote in message
news:eq3UiunPGHA.3848@.TK2MSFTNGP12.phx.gbl...
> ASP.NET 2.0
> Is it possible to set more than one ValidationGroup to a Button?
> I have two sets of controls on a Web page, into two different
> ValidationGroups. I would like when the user clicks on a specific button,
> that both groups be validated.
> Thanks.
> Michael
>

Set more than one ValidationGroup to a Button?

ASP.NET 2.0

Is it possible to set more than one ValidationGroup to a Button?

I have two sets of controls on a Web page, into two different
ValidationGroups. I would like when the user clicks on a specific button,
that both groups be validated.

Thanks.
MichaelI don't see any way of this directly using the .NET 2.0 Framework. I'm
sure, given the time, you could come up with a custom Button object and
custom Validation object that could handle it.

Another option could be to use the CustomValidator object. It provides with
both server and client validation functionality, but I'm not how complex it
might be with your validation needs. It's at least worth a look.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"news.microsoft.com" <someone@.somewhere.com> wrote in message
news:eq3UiunPGHA.3848@.TK2MSFTNGP12.phx.gbl...
> ASP.NET 2.0
> Is it possible to set more than one ValidationGroup to a Button?
> I have two sets of controls on a Web page, into two different
> ValidationGroups. I would like when the user clicks on a specific button,
> that both groups be validated.
> Thanks.
> Michael
With validation groups in ASP.NET 2.0, you can only match a button to one
group name.

Just so you know that the option exists, my replacement for the Microsoft
validators, "Professional Validation And More"
(http://www.peterblum.com/vam/home.aspx) offers validation groups with the
extensions that you need. You can use "*" in the button's Group property to
fire all validation groups. Similarly, the ValidationSummary can have a
group name of "*" to show all validators on the page, if you like.

-- Peter Blum
www.PeterBlum.com
Email: PLBlum@.PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"news.microsoft.com" <someone@.somewhere.com> wrote in message
news:eq3UiunPGHA.3848@.TK2MSFTNGP12.phx.gbl...
> ASP.NET 2.0
> Is it possible to set more than one ValidationGroup to a Button?
> I have two sets of controls on a Web page, into two different
> ValidationGroups. I would like when the user clicks on a specific button,
> that both groups be validated.
> Thanks.
> Michael

Tuesday, March 13, 2012

set public property in another web user control

I have two user controls in a web form...user control 1 contains just a
label, but I want to set its value from another web user control (2) in the
same web form. I am able to set the value from the web form, but not from
the user control 2...what am I doing wrong?
This is in the web form:
<uc1:statusMessage id="StatusMessage1" runat="server"></uc1:statusMessage>
This is in the first user control 1:
Public theMessage As String
Public Property statusMessage() As String
Get
lblStatusMessage.Text = theMessage
End Get
Set(ByVal Value As String)
theMessage = Value
End Set
End Property
This is in the user control 2:
Public WithEvents statusMessage1 As statusMessage
statusMessage1.theMessage = "No communities selected"
_____
DC GDingo:
Check out:
http://openmymind.net/index.aspx?documentId=9
I'm in a rush, else I'd explain in great detail :) lemme know if that solved
it for you...
Karl
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"DC Gringo" <dcgringo@.visiontechnology.net> wrote in message
news:OgKTBCgSFHA.3176@.TK2MSFTNGP09.phx.gbl...
>I have two user controls in a web form...user control 1 contains just a
>label, but I want to set its value from another web user control (2) in the
>same web form. I am able to set the value from the web form, but not from
>the user control 2...what am I doing wrong?
> This is in the web form:
> <uc1:statusMessage id="StatusMessage1" runat="server"></uc1:statusMessage>
>
> This is in the first user control 1:
> Public theMessage As String
> Public Property statusMessage() As String
> Get
> lblStatusMessage.Text = theMessage
> End Get
> Set(ByVal Value As String)
> theMessage = Value
> End Set
> End Property
>
>
> This is in the user control 2:
> Public WithEvents statusMessage1 As statusMessage
> statusMessage1.theMessage = "No communities selected"
> _____
> DC G
>

set public property in another web user control

I have two user controls in a web form...user control 1 contains just a
label, but I want to set its value from another web user control (2) in the
same web form. I am able to set the value from the web form, but not from
the user control 2...what am I doing wrong?

This is in the web form:

<uc1:statusMessage id="StatusMessage1" runat="server"></uc1:statusMessage
This is in the first user control 1:

Public theMessage As String
Public Property statusMessage() As String
Get
lblStatusMessage.Text = theMessage
End Get
Set(ByVal Value As String)
theMessage = Value
End Set
End Property

This is in the user control 2:

Public WithEvents statusMessage1 As statusMessage
statusMessage1.theMessage = "No communities selected"

_____
DC GDingo:
Check out:
http://openmymind.net/index.aspx?documentId=9

I'm in a rush, else I'd explain in great detail :) lemme know if that solved
it for you...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)

"DC Gringo" <dcgringo@.visiontechnology.net> wrote in message
news:OgKTBCgSFHA.3176@.TK2MSFTNGP09.phx.gbl...
>I have two user controls in a web form...user control 1 contains just a
>label, but I want to set its value from another web user control (2) in the
>same web form. I am able to set the value from the web form, but not from
>the user control 2...what am I doing wrong?
> This is in the web form:
> <uc1:statusMessage id="StatusMessage1" runat="server"></uc1:statusMessage>
>
> This is in the first user control 1:
> Public theMessage As String
> Public Property statusMessage() As String
> Get
> lblStatusMessage.Text = theMessage
> End Get
> Set(ByVal Value As String)
> theMessage = Value
> End Set
> End Property
>
>
> This is in the user control 2:
> Public WithEvents statusMessage1 As statusMessage
> statusMessage1.theMessage = "No communities selected"
> _____
> DC G

Set Radiobuttonlist Value via Javascript

Hi all,

I have two radiobuttonlist controls on a page. When a user checks 'No' for
rblDeleted, I want to automatically set rblSendCard to 'No' and disable it.
The javascript function I wrote to do this 'appears' to work on the screen,
however, when the page is posted back and I check the value of rblSendCard,
it is an empty string when I expect it to be 'N'.
Of, course I can work around the problem by assuming 'N' when it is an empty
string, but would prefer to have the correct value posted back.

Can anyone tell me how to get it to work the way I expect or explain why it
can't.
Code is below.
TIA

<asp:radiobuttonlist id="rblSendCard" tabIndex="13" runat="server"
RepeatDirection="Horizontal" CellPadding="0"
CellSpacing="0" EnableViewState="False">
<asp:ListItem Value="Y">Yes</asp:ListItem>
<asp:ListItem Value="N">No</asp:ListItem>
</asp:radiobuttonlist>
<asp:radiobuttonlist id="rblDeleted" tabIndex="14" runat="server"
RepeatDirection="Horizontal" EnableViewState="False"
CellPadding="0" CellSpacing="0">
<asp:ListItem Value="Y">Yes</asp:ListItem>
<asp:ListItem Value="N" Selected="True">No</asp:ListItem>
</asp:radiobuttonlist
<script language="JavaScript"> function SetDeleted() {
if(document.getElementById('U_Members1_rblDeleted_ 0').checked){
document.getElementById('U_Members1_rblSendCard_1' ).checked=true;
document.getElementById('U_Members1_rblSendCard'). disabled='disabled';}
else{
document.getElementById('U_Members1_rblSendCard'). disabled='';}}</script
--

Alphonse Giambrone
Email: a-giam at customdatasolutions dot usWhen an html element is disabled, it is not posted in the Request.Forms
Collection.

bill

"Alphonse Giambrone" <NOSPAMa-giam@.example.invalid> wrote in message
news:uZGOHdHMFHA.1948@.TK2MSFTNGP14.phx.gbl...
> Hi all,
> I have two radiobuttonlist controls on a page. When a user checks 'No' for
> rblDeleted, I want to automatically set rblSendCard to 'No' and disable
it.
> The javascript function I wrote to do this 'appears' to work on the
screen,
> however, when the page is posted back and I check the value of
rblSendCard,
> it is an empty string when I expect it to be 'N'.
> Of, course I can work around the problem by assuming 'N' when it is an
empty
> string, but would prefer to have the correct value posted back.
> Can anyone tell me how to get it to work the way I expect or explain why
it
> can't.
> Code is below.
> TIA
> <asp:radiobuttonlist id="rblSendCard" tabIndex="13" runat="server"
> RepeatDirection="Horizontal" CellPadding="0"
> CellSpacing="0" EnableViewState="False">
> <asp:ListItem Value="Y">Yes</asp:ListItem>
> <asp:ListItem Value="N">No</asp:ListItem>
> </asp:radiobuttonlist>
> <asp:radiobuttonlist id="rblDeleted" tabIndex="14" runat="server"
> RepeatDirection="Horizontal" EnableViewState="False"
> CellPadding="0" CellSpacing="0">
> <asp:ListItem Value="Y">Yes</asp:ListItem>
> <asp:ListItem Value="N" Selected="True">No</asp:ListItem>
> </asp:radiobuttonlist>
> <script language="JavaScript"> function SetDeleted() {
> if(document.getElementById('U_Members1_rblDeleted_ 0').checked){
> document.getElementById('U_Members1_rblSendCard_1' ).checked=true;
> document.getElementById('U_Members1_rblSendCard'). disabled='disabled';}
> else{
> document.getElementById('U_Members1_rblSendCard'). disabled='';}}</script>
> --
> Alphonse Giambrone
> Email: a-giam at customdatasolutions dot us
Thanks for the quick reply, Bill.

That certainly explains it.

--

Alphonse Giambrone
Email: a-giam at customdatasolutions dot us

"William F. Robertson, Jr." <theman@.nameht.org> wrote in message
news:eONsxwHMFHA.2736@.TK2MSFTNGP09.phx.gbl...
> When an html element is disabled, it is not posted in the Request.Forms
> Collection.
> bill
>
> "Alphonse Giambrone" <NOSPAMa-giam@.example.invalid> wrote in message
> news:uZGOHdHMFHA.1948@.TK2MSFTNGP14.phx.gbl...
>> Hi all,
>>
>> I have two radiobuttonlist controls on a page. When a user checks 'No'
>> for
>> rblDeleted, I want to automatically set rblSendCard to 'No' and disable
> it.
>> The javascript function I wrote to do this 'appears' to work on the
> screen,
>> however, when the page is posted back and I check the value of
> rblSendCard,
>> it is an empty string when I expect it to be 'N'.
>> Of, course I can work around the problem by assuming 'N' when it is an
> empty
>> string, but would prefer to have the correct value posted back.
>>
>> Can anyone tell me how to get it to work the way I expect or explain why
> it
>> can't.
>> Code is below.
>> TIA
>>
>> <asp:radiobuttonlist id="rblSendCard" tabIndex="13" runat="server"
>> RepeatDirection="Horizontal" CellPadding="0"
>> CellSpacing="0" EnableViewState="False">
>> <asp:ListItem Value="Y">Yes</asp:ListItem>
>> <asp:ListItem Value="N">No</asp:ListItem>
>> </asp:radiobuttonlist>
>> <asp:radiobuttonlist id="rblDeleted" tabIndex="14" runat="server"
>> RepeatDirection="Horizontal" EnableViewState="False"
>> CellPadding="0" CellSpacing="0">
>> <asp:ListItem Value="Y">Yes</asp:ListItem>
>> <asp:ListItem Value="N" Selected="True">No</asp:ListItem>
>> </asp:radiobuttonlist>
>>
>> <script language="JavaScript"> function SetDeleted() {
>> if(document.getElementById('U_Members1_rblDeleted_ 0').checked){
>> document.getElementById('U_Members1_rblSendCard_1' ).checked=true;
>> document.getElementById('U_Members1_rblSendCard'). disabled='disabled';}
>> else{
>> document.getElementById('U_Members1_rblSendCard'). disabled='';}}</script>
>>
>> --
>>
>> Alphonse Giambrone
>> Email: a-giam at customdatasolutions dot us
>>
>>
>>

Set Radiobuttonlist Value via Javascript

Hi all,
I have two radiobuttonlist controls on a page. When a user checks 'No' for
rblDeleted, I want to automatically set rblSendCard to 'No' and disable it.
The javascript function I wrote to do this 'appears' to work on the screen,
however, when the page is posted back and I check the value of rblSendCard,
it is an empty string when I expect it to be 'N'.
Of, course I can work around the problem by assuming 'N' when it is an empty
string, but would prefer to have the correct value posted back.
Can anyone tell me how to get it to work the way I expect or explain why it
can't.
Code is below.
TIA
<asp:radiobuttonlist id="rblSendCard" tabIndex="13" runat="server"
RepeatDirection="Horizontal" CellPadding="0"
CellSpacing="0" EnableViewState="False">
<asp:ListItem Value="Y">Yes</asp:ListItem>
<asp:ListItem Value="N">No</asp:ListItem>
</asp:radiobuttonlist>
<asp:radiobuttonlist id="rblDeleted" tabIndex="14" runat="server"
RepeatDirection="Horizontal" EnableViewState="False"
CellPadding="0" CellSpacing="0">
<asp:ListItem Value="Y">Yes</asp:ListItem>
<asp:ListItem Value="N" Selected="True">No</asp:ListItem>
</asp:radiobuttonlist>
<script language="JavaScript"> function SetDeleted() {
if(document. getElementById('U_Members1_rblDeleted_0'
).checked){
document. getElementById('U_Members1_rblSendCard_1
').checked=true;
document. getElementById('U_Members1_rblSendCard')
.disabled='disabled';}
else{
document. getElementById('U_Members1_rblSendCard')
.disabled='';}}</script>
Alphonse Giambrone
Email: a-giam at customdatasolutions dot usWhen an html element is disabled, it is not posted in the Request.Forms
Collection.
bill
"Alphonse Giambrone" <NOSPAMa-giam@.example.invalid> wrote in message
news:uZGOHdHMFHA.1948@.TK2MSFTNGP14.phx.gbl...
> Hi all,
> I have two radiobuttonlist controls on a page. When a user checks 'No' for
> rblDeleted, I want to automatically set rblSendCard to 'No' and disable
it.
> The javascript function I wrote to do this 'appears' to work on the
screen,
> however, when the page is posted back and I check the value of
rblSendCard,
> it is an empty string when I expect it to be 'N'.
> Of, course I can work around the problem by assuming 'N' when it is an
empty
> string, but would prefer to have the correct value posted back.
> Can anyone tell me how to get it to work the way I expect or explain why
it
> can't.
> Code is below.
> TIA
> <asp:radiobuttonlist id="rblSendCard" tabIndex="13" runat="server"
> RepeatDirection="Horizontal" CellPadding="0"
> CellSpacing="0" EnableViewState="False">
> <asp:ListItem Value="Y">Yes</asp:ListItem>
> <asp:ListItem Value="N">No</asp:ListItem>
> </asp:radiobuttonlist>
> <asp:radiobuttonlist id="rblDeleted" tabIndex="14" runat="server"
> RepeatDirection="Horizontal" EnableViewState="False"
> CellPadding="0" CellSpacing="0">
> <asp:ListItem Value="Y">Yes</asp:ListItem>
> <asp:ListItem Value="N" Selected="True">No</asp:ListItem>
> </asp:radiobuttonlist>
> <script language="JavaScript"> function SetDeleted() {
> if(document. getElementById('U_Members1_rblDeleted_0'
).checked){
> document. getElementById('U_Members1_rblSendCard_1
').checked=true;
> document. getElementById('U_Members1_rblSendCard')
.disabled='disabled';}
> else{
> document. getElementById('U_Members1_rblSendCard')
.disabled='';}}</script>
> --
> Alphonse Giambrone
> Email: a-giam at customdatasolutions dot us
>
>
Thanks for the quick reply, Bill.
That certainly explains it.
Alphonse Giambrone
Email: a-giam at customdatasolutions dot us
"William F. Robertson, Jr." <theman@.nameht.org> wrote in message
news:eONsxwHMFHA.2736@.TK2MSFTNGP09.phx.gbl...
> When an html element is disabled, it is not posted in the Request.Forms
> Collection.
> bill
>
> "Alphonse Giambrone" <NOSPAMa-giam@.example.invalid> wrote in message
> news:uZGOHdHMFHA.1948@.TK2MSFTNGP14.phx.gbl...
> it.
> screen,
> rblSendCard,
> empty
> it
>