Is there any way to alter this? I am aware that it's read only.
Essentially the problem is that I have a webcontrol that dynamically
creates a textbox and a requiredfieldva lidator control with the
validator validating the textbox. This worked fine in my test harness
and works fine in my other projects using master page based pages when
in IE but in Firefox, the other project doesn't work. I've been able to
narrow it down to teh fact that we've got a preappend on the ID of the
controls of "_ctl0" and as an underscore isn't a valid start character,
firefox doesn't run the javascript (quite rightly).
I'd prefer to alter this within the original code that creates the sub
controls rather than hack it in the other project as it's to be part of
a common library for use elsewhere. 9 1674
Can you try the name tag instead?
<ja*******@gmai l.comschreef in bericht
news:11******** **************@ i3g2000cwc.goog legroups.com...
Is there any way to alter this? I am aware that it's read only.
Essentially the problem is that I have a webcontrol that dynamically
creates a textbox and a requiredfieldva lidator control with the
validator validating the textbox. This worked fine in my test harness
and works fine in my other projects using master page based pages when
in IE but in Firefox, the other project doesn't work. I've been able to
narrow it down to teh fact that we've got a preappend on the ID of the
controls of "_ctl0" and as an underscore isn't a valid start character,
firefox doesn't run the javascript (quite rightly).
I'd prefer to alter this within the original code that creates the sub
controls rather than hack it in the other project as it's to be part of
a common library for use elsewhere.
Not really an option, the validators work by writing a javascript array
called Page_Validators , automatically generated by .NET itself. This is
then referenced by another automatically generated item, a javascript
file, which it pulls out using a handler via
webresource.axd ?somerandomguid . As such, can't really alter the
javascript call itself where the validation fires off nor is it really
practical to try and reverse engineer this js file.
I have found another ID reference: ClientID but again, read only. The
only one which you appera to be able to alter is ID which is of no use
whatsoever. All I want is to be able to change the ID, I fail to
understand why this is so hard, especially as I keep hearing "oh yes,
validators have been fixed to work with Firefox in .NET 2.0".
BTW, Test Harness works in Firefox because it lacks the auto
pre-append. I'm not exactly sure where this auto generated _ctl0 is
coming from. Admittedly the control sits inside an ascx (which has a
normal id) and then itself with a contentplacehol der based off a
seperate master page. If I knew where that was coming from I would be
able to override it but the control has an ID, the placeholder has an
ID and I'm at a loss to determine why it's appearing.
Edwin Knoppert wrote:
Can you try the name tag instead?
<ja*******@gmai l.comschreef in bericht
news:11******** **************@ i3g2000cwc.goog legroups.com...
Is there any way to alter this? I am aware that it's read only.
Essentially the problem is that I have a webcontrol that dynamically
creates a textbox and a requiredfieldva lidator control with the
validator validating the textbox. This worked fine in my test harness
and works fine in my other projects using master page based pages when
in IE but in Firefox, the other project doesn't work. I've been able to
narrow it down to teh fact that we've got a preappend on the ID of the
controls of "_ctl0" and as an underscore isn't a valid start character,
firefox doesn't run the javascript (quite rightly).
I'd prefer to alter this within the original code that creates the sub
controls rather than hack it in the other project as it's to be part of
a common library for use elsewhere.
I don't have ff installed but i often needed to use document.GetEl. . ByID(
'name of control') to get an object refer.
Is the quoted way not a solution?
"RVB" <ja*******@gmai l.comschreef in bericht
news:11******** **************@ m7g2000cwm.goog legroups.com...
Not really an option, the validators work by writing a javascript array
called Page_Validators , automatically generated by .NET itself. This is
then referenced by another automatically generated item, a javascript
file, which it pulls out using a handler via
webresource.axd ?somerandomguid . As such, can't really alter the
javascript call itself where the validation fires off nor is it really
practical to try and reverse engineer this js file.
I have found another ID reference: ClientID but again, read only. The
only one which you appera to be able to alter is ID which is of no use
whatsoever. All I want is to be able to change the ID, I fail to
understand why this is so hard, especially as I keep hearing "oh yes,
validators have been fixed to work with Firefox in .NET 2.0".
BTW, Test Harness works in Firefox because it lacks the auto
pre-append. I'm not exactly sure where this auto generated _ctl0 is
coming from. Admittedly the control sits inside an ascx (which has a
normal id) and then itself with a contentplacehol der based off a
seperate master page. If I knew where that was coming from I would be
able to override it but the control has an ID, the placeholder has an
ID and I'm at a loss to determine why it's appearing.
Edwin Knoppert wrote:
>Can you try the name tag instead?
<ja*******@gma il.comschreef in bericht news:11******* *************** @i3g2000cwc.goo glegroups.com.. .
Is there any way to alter this? I am aware that it's read only.
Essentially the problem is that I have a webcontrol that dynamically
creates a textbox and a requiredfieldva lidator control with the
validator validating the textbox. This worked fine in my test harness
and works fine in my other projects using master page based pages when
in IE but in Firefox, the other project doesn't work. I've been able to
narrow it down to teh fact that we've got a preappend on the ID of the
controls of "_ctl0" and as an underscore isn't a valid start character,
firefox doesn't run the javascript (quite rightly).
I'd prefer to alter this within the original code that creates the sub
controls rather than hack it in the other project as it's to be part of
a common library for use elsewhere.
Like:
var o = document.getEle mentById('<%=tx t_Index.ClientI D%>');
o.value = ....
"RVB" <ja*******@gmai l.comschreef in bericht
news:11******** **************@ m7g2000cwm.goog legroups.com...
Not really an option, the validators work by writing a javascript array
called Page_Validators , automatically generated by .NET itself. This is
then referenced by another automatically generated item, a javascript
file, which it pulls out using a handler via
webresource.axd ?somerandomguid . As such, can't really alter the
javascript call itself where the validation fires off nor is it really
practical to try and reverse engineer this js file.
I have found another ID reference: ClientID but again, read only. The
only one which you appera to be able to alter is ID which is of no use
whatsoever. All I want is to be able to change the ID, I fail to
understand why this is so hard, especially as I keep hearing "oh yes,
validators have been fixed to work with Firefox in .NET 2.0".
BTW, Test Harness works in Firefox because it lacks the auto
pre-append. I'm not exactly sure where this auto generated _ctl0 is
coming from. Admittedly the control sits inside an ascx (which has a
normal id) and then itself with a contentplacehol der based off a
seperate master page. If I knew where that was coming from I would be
able to override it but the control has an ID, the placeholder has an
ID and I'm at a loss to determine why it's appearing.
Edwin Knoppert wrote:
>Can you try the name tag instead?
<ja*******@gma il.comschreef in bericht news:11******* *************** @i3g2000cwc.goo glegroups.com.. .
Is there any way to alter this? I am aware that it's read only.
Essentially the problem is that I have a webcontrol that dynamically
creates a textbox and a requiredfieldva lidator control with the
validator validating the textbox. This worked fine in my test harness
and works fine in my other projects using master page based pages when
in IE but in Firefox, the other project doesn't work. I've been able to
narrow it down to teh fact that we've got a preappend on the ID of the
controls of "_ctl0" and as an underscore isn't a valid start character,
firefox doesn't run the javascript (quite rightly).
I'd prefer to alter this within the original code that creates the sub
controls rather than hack it in the other project as it's to be part of
a common library for use elsewhere.
As far as I'm aware, it's not, reason being that the actual javascript
array creation is done by the .NET framework automatically if it
detects that there are validators in the validator collection. It is
doing essentially the same as your snippet, it just outputs the actual
clientid for the validator control (at that point rendered as a span)
instead of doing a codebehind call. I can't actually get alter this
array and in any case, it wouldn't work because of the actual format of
the ID:
Using your example, "txt_Index.Clie ntID" would equate to
"_ctl0_txt_Inde x1". As it starts with an underscore, firefox doesn't
recognize it as a correct ID. So, as you can see, the problem stems
from the whole auto-generation of the clientID. Fix that and you'd be
laughing.
Several other people have apparently got around this by doing
control.ClientI D = control.ClientI D.Replace("_"," ") but I find that
highly unlikely as you -cannot- set the ClientID property, nor the
UniqueID.
Edwin Knoppert wrote:
Like:
var o = document.getEle mentById('<%=tx t_Index.ClientI D%>');
o.value = ....
"RVB" <ja*******@gmai l.comschreef in bericht
news:11******** **************@ m7g2000cwm.goog legroups.com...
Not really an option, the validators work by writing a javascript array
called Page_Validators , automatically generated by .NET itself. This is
then referenced by another automatically generated item, a javascript
file, which it pulls out using a handler via
webresource.axd ?somerandomguid . As such, can't really alter the
javascript call itself where the validation fires off nor is it really
practical to try and reverse engineer this js file.
I have found another ID reference: ClientID but again, read only. The
only one which you appera to be able to alter is ID which is of no use
whatsoever. All I want is to be able to change the ID, I fail to
understand why this is so hard, especially as I keep hearing "oh yes,
validators have been fixed to work with Firefox in .NET 2.0".
BTW, Test Harness works in Firefox because it lacks the auto
pre-append. I'm not exactly sure where this auto generated _ctl0 is
coming from. Admittedly the control sits inside an ascx (which has a
normal id) and then itself with a contentplacehol der based off a
seperate master page. If I knew where that was coming from I would be
able to override it but the control has an ID, the placeholder has an
ID and I'm at a loss to determine why it's appearing.
Edwin Knoppert wrote:
Can you try the name tag instead?
<ja*******@gmai l.comschreef in bericht
news:11******** **************@ i3g2000cwc.goog legroups.com...
Is there any way to alter this? I am aware that it's read only.
Essentially the problem is that I have a webcontrol that dynamically
creates a textbox and a requiredfieldva lidator control with the
validator validating the textbox. This worked fine in my test harness
and works fine in my other projects using master page based pages when
in IE but in Firefox, the other project doesn't work. I've been able to
narrow it down to teh fact that we've got a preappend on the ID of the
controls of "_ctl0" and as an underscore isn't a valid start character,
firefox doesn't run the javascript (quite rightly).
I'd prefer to alter this within the original code that creates the sub
controls rather than hack it in the other project as it's to be part of
a common library for use elsewhere.
I had the thought the quoted situation might have helped
(getElementById ('...')
Have you actually tried this approach?
"RVB" <ja*******@gmai l.comschreef in bericht
news:11******** *************@i 3g2000cwc.googl egroups.com...
As far as I'm aware, it's not, reason being that the actual javascript
array creation is done by the .NET framework automatically if it
detects that there are validators in the validator collection. It is
doing essentially the same as your snippet, it just outputs the actual
clientid for the validator control (at that point rendered as a span)
instead of doing a codebehind call. I can't actually get alter this
array and in any case, it wouldn't work because of the actual format of
the ID:
Using your example, "txt_Index.Clie ntID" would equate to
"_ctl0_txt_Inde x1". As it starts with an underscore, firefox doesn't
recognize it as a correct ID. So, as you can see, the problem stems
from the whole auto-generation of the clientID. Fix that and you'd be
laughing.
Several other people have apparently got around this by doing
control.ClientI D = control.ClientI D.Replace("_"," ") but I find that
highly unlikely as you -cannot- set the ClientID property, nor the
UniqueID.
Edwin Knoppert wrote:
>Like: var o = document.getEle mentById('<%=tx t_Index.ClientI D%>'); o.value = ....
"RVB" <ja*******@gmai l.comschreef in bericht news:11******* *************** @m7g2000cwm.goo glegroups.com.. .
Not really an option, the validators work by writing a javascript array
called Page_Validators , automatically generated by .NET itself. This is
then referenced by another automatically generated item, a javascript
file, which it pulls out using a handler via
webresource.axd ?somerandomguid . As such, can't really alter the
javascript call itself where the validation fires off nor is it really
practical to try and reverse engineer this js file.
I have found another ID reference: ClientID but again, read only. The
only one which you appera to be able to alter is ID which is of no use
whatsoever. All I want is to be able to change the ID, I fail to
understand why this is so hard, especially as I keep hearing "oh yes,
validators have been fixed to work with Firefox in .NET 2.0".
BTW, Test Harness works in Firefox because it lacks the auto
pre-append. I'm not exactly sure where this auto generated _ctl0 is
coming from. Admittedly the control sits inside an ascx (which has a
normal id) and then itself with a contentplacehol der based off a
seperate master page. If I knew where that was coming from I would be
able to override it but the control has an ID, the placeholder has an
ID and I'm at a loss to determine why it's appearing.
Edwin Knoppert wrote: Can you try the name tag instead?
<ja*******@gma il.comschreef in bericht news:11******* *************** @i3g2000cwc.goo glegroups.com.. .
Is there any way to alter this? I am aware that it's read only.
Essentially the problem is that I have a webcontrol that dynamically
creates a textbox and a requiredfieldva lidator control with the
validator validating the textbox. This worked fine in my test
harness
and works fine in my other projects using master page based pages
when
in IE but in Firefox, the other project doesn't work. I've been able
to
narrow it down to teh fact that we've got a preappend on the ID of
the
controls of "_ctl0" and as an underscore isn't a valid start
character,
firefox doesn't run the javascript (quite rightly).
I'd prefer to alter this within the original code that creates the
sub
controls rather than hack it in the other project as it's to be part
of
a common library for use elsewhere.
I -cannot- alter the javascript as it is auto-generated and the API
does not provide me with an entry point to do so.
I have gotten a touch further, the original _ctrl0 was coming from the
ID of the Master.ID property on the page itself. When I altered the ID
of the Page.Master property, I was able to remove the "_" from the
generated clientID so it ends up as "ctrl0_txtSomet hing_ctrl1" which,
as far as I can see is definately a valid ID which can be passed to the
document.getEle mentById function. However, still doesn't work.
Additionally, I've crossposted to the javascript newsgroup but has
anyone hit this before in .NET?
Edwin Knoppert wrote:
I had the thought the quoted situation might have helped
(getElementById ('...')
Have you actually tried this approach?
"RVB" <ja*******@gmai l.comschreef in bericht
news:11******** *************@i 3g2000cwc.googl egroups.com...
As far as I'm aware, it's not, reason being that the actual javascript
array creation is done by the .NET framework automatically if it
detects that there are validators in the validator collection. It is
doing essentially the same as your snippet, it just outputs the actual
clientid for the validator control (at that point rendered as a span)
instead of doing a codebehind call. I can't actually get alter this
array and in any case, it wouldn't work because of the actual format of
the ID:
Using your example, "txt_Index.Clie ntID" would equate to
"_ctl0_txt_Inde x1". As it starts with an underscore, firefox doesn't
recognize it as a correct ID. So, as you can see, the problem stems
from the whole auto-generation of the clientID. Fix that and you'd be
laughing.
Several other people have apparently got around this by doing
control.ClientI D = control.ClientI D.Replace("_"," ") but I find that
highly unlikely as you -cannot- set the ClientID property, nor the
UniqueID.
Edwin Knoppert wrote:
Like:
var o = document.getEle mentById('<%=tx t_Index.ClientI D%>');
o.value = ....
"RVB" <ja*******@gmai l.comschreef in bericht
news:11******** **************@ m7g2000cwm.goog legroups.com...
Not really an option, the validators work by writing a javascript array
called Page_Validators , automatically generated by .NET itself. This is
then referenced by another automatically generated item, a javascript
file, which it pulls out using a handler via
webresource.axd ?somerandomguid . As such, can't really alter the
javascript call itself where the validation fires off nor is it really
practical to try and reverse engineer this js file.
I have found another ID reference: ClientID but again, read only. The
only one which you appera to be able to alter is ID which is of no use
whatsoever. All I want is to be able to change the ID, I fail to
understand why this is so hard, especially as I keep hearing "oh yes,
validators have been fixed to work with Firefox in .NET 2.0".
BTW, Test Harness works in Firefox because it lacks the auto
pre-append. I'm not exactly sure where this auto generated _ctl0 is
coming from. Admittedly the control sits inside an ascx (which has a
normal id) and then itself with a contentplacehol der based off a
seperate master page. If I knew where that was coming from I would be
able to override it but the control has an ID, the placeholder has an
ID and I'm at a loss to determine why it's appearing.
Edwin Knoppert wrote:
Can you try the name tag instead?
<ja*******@gmai l.comschreef in bericht
news:11******** **************@ i3g2000cwc.goog legroups.com...
Is there any way to alter this? I am aware that it's read only.
Essentially the problem is that I have a webcontrol that dynamically
creates a textbox and a requiredfieldva lidator control with the
validator validating the textbox. This worked fine in my test
harness
and works fine in my other projects using master page based pages
when
in IE but in Firefox, the other project doesn't work. I've been able
to
narrow it down to teh fact that we've got a preappend on the ID of
the
controls of "_ctl0" and as an underscore isn't a valid start
character,
firefox doesn't run the javascript (quite rightly).
I'd prefer to alter this within the original code that creates the
sub
controls rather than hack it in the other project as it's to be part
of
a common library for use elsewhere.
>I -cannot- alter the javascript as it is auto-generated and the API does
>not provide me with an entry point to do so.
That was not my point.
I asked if you tried to obtain an object using this getElementById( '...')
often people directly refer to a control in js, which not always works.
Obtaining a refer to the control using getElementById( '...') is imo better.
So.. a simple:
alert( getElementById( ' your clientid stuff here ') );
Does that result in an object or null?
"RVB" <ja*******@gmai l.comschreef in bericht
news:11******** **************@ i3g2000cwc.goog legroups.com...
>I -cannot- alter the javascript as it is auto-generated and the API
does not provide me with an entry point to do so.
I have gotten a touch further, the original _ctrl0 was coming from the
ID of the Master.ID property on the page itself. When I altered the ID
of the Page.Master property, I was able to remove the "_" from the
generated clientID so it ends up as "ctrl0_txtSomet hing_ctrl1" which,
as far as I can see is definately a valid ID which can be passed to the
document.getEle mentById function. However, still doesn't work.
Additionally, I've crossposted to the javascript newsgroup but has
anyone hit this before in .NET?
Edwin Knoppert wrote:
>I had the thought the quoted situation might have helped (getElementByI d('...') Have you actually tried this approach?
"RVB" <ja*******@gmai l.comschreef in bericht news:11******* **************@ i3g2000cwc.goog legroups.com...
As far as I'm aware, it's not, reason being that the actual javascript
array creation is done by the .NET framework automatically if it
detects that there are validators in the validator collection. It is
doing essentially the same as your snippet, it just outputs the actual
clientid for the validator control (at that point rendered as a span)
instead of doing a codebehind call. I can't actually get alter this
array and in any case, it wouldn't work because of the actual format of
the ID:
Using your example, "txt_Index.Clie ntID" would equate to
"_ctl0_txt_Inde x1". As it starts with an underscore, firefox doesn't
recognize it as a correct ID. So, as you can see, the problem stems
from the whole auto-generation of the clientID. Fix that and you'd be
laughing.
Several other people have apparently got around this by doing
control.ClientI D = control.ClientI D.Replace("_"," ") but I find that
highly unlikely as you -cannot- set the ClientID property, nor the
UniqueID.
Edwin Knoppert wrote: Like: var o = document.getEle mentById('<%=tx t_Index.ClientI D%>'); o.value = ....
"RVB" <ja*******@gmai l.comschreef in bericht news:11******* *************** @m7g2000cwm.goo glegroups.com.. .
Not really an option, the validators work by writing a javascript
array
called Page_Validators , automatically generated by .NET itself. This
is
then referenced by another automatically generated item, a
javascript
file, which it pulls out using a handler via
webresource.axd ?somerandomguid . As such, can't really alter the
javascript call itself where the validation fires off nor is it
really
practical to try and reverse engineer this js file.
I have found another ID reference: ClientID but again, read only.
The
only one which you appera to be able to alter is ID which is of no
use
whatsoever. All I want is to be able to change the ID, I fail to
understand why this is so hard, especially as I keep hearing "oh
yes,
validators have been fixed to work with Firefox in .NET 2.0".
BTW, Test Harness works in Firefox because it lacks the auto
pre-append. I'm not exactly sure where this auto generated _ctl0 is
coming from. Admittedly the control sits inside an ascx (which has a
normal id) and then itself with a contentplacehol der based off a
seperate master page. If I knew where that was coming from I would
be
able to override it but the control has an ID, the placeholder has
an
ID and I'm at a loss to determine why it's appearing.
Edwin Knoppert wrote: Can you try the name tag instead?
<ja*******@gma il.comschreef in bericht news:11******* *************** @i3g2000cwc.goo glegroups.com.. .
Is there any way to alter this? I am aware that it's read only.
Essentially the problem is that I have a webcontrol that
dynamically
creates a textbox and a requiredfieldva lidator control with the
validator validating the textbox. This worked fine in my test
harness
and works fine in my other projects using master page based pages
when
in IE but in Firefox, the other project doesn't work. I've been
able
to
narrow it down to teh fact that we've got a preappend on the ID
of
the
controls of "_ctl0" and as an underscore isn't a valid start
character,
firefox doesn't run the javascript (quite rightly).
I'd prefer to alter this within the original code that creates
the
sub
controls rather than hack it in the other project as it's to be
part
of
a common library for use elsewhere.
Sorry for the mix up.
I've actually got a touch further in that it now does populate the
array correctly but the actual validation function isn't being called.
I've checked with various formats of IDs and it definately wasn't
picking it up when using an underscore as the beginning character, i.e.
the array was empty. Got it to output without that beginning underscore
and it now picks up the elements. Now just seeing why it doesn't
register the validator.IsVal id property as false.
Edwin Knoppert wrote:
I -cannot- alter the javascript as it is auto-generated and the API does
not provide me with an entry point to do so.
That was not my point.
I asked if you tried to obtain an object using this getElementById( '...')
often people directly refer to a control in js, which not always works.
Obtaining a refer to the control using getElementById( '...') is imo better.
So.. a simple:
alert( getElementById( ' your clientid stuff here ') );
Does that result in an object or null?
"RVB" <ja*******@gmai l.comschreef in bericht
news:11******** **************@ i3g2000cwc.goog legroups.com...
I -cannot- alter the javascript as it is auto-generated and the API
does not provide me with an entry point to do so.
I have gotten a touch further, the original _ctrl0 was coming from the
ID of the Master.ID property on the page itself. When I altered the ID
of the Page.Master property, I was able to remove the "_" from the
generated clientID so it ends up as "ctrl0_txtSomet hing_ctrl1" which,
as far as I can see is definately a valid ID which can be passed to the
document.getEle mentById function. However, still doesn't work.
Additionally, I've crossposted to the javascript newsgroup but has
anyone hit this before in .NET?
Edwin Knoppert wrote:
I had the thought the quoted situation might have helped
(getElementById ('...')
Have you actually tried this approach?
"RVB" <ja*******@gmai l.comschreef in bericht
news:11******** *************@i 3g2000cwc.googl egroups.com...
As far as I'm aware, it's not, reason being that the actual javascript
array creation is done by the .NET framework automatically if it
detects that there are validators in the validator collection. It is
doing essentially the same as your snippet, it just outputs the actual
clientid for the validator control (at that point rendered as a span)
instead of doing a codebehind call. I can't actually get alter this
array and in any case, it wouldn't work because of the actual format of
the ID:
Using your example, "txt_Index.Clie ntID" would equate to
"_ctl0_txt_Inde x1". As it starts with an underscore, firefox doesn't
recognize it as a correct ID. So, as you can see, the problem stems
from the whole auto-generation of the clientID. Fix that and you'd be
laughing.
Several other people have apparently got around this by doing
control.ClientI D = control.ClientI D.Replace("_"," ") but I find that
highly unlikely as you -cannot- set the ClientID property, nor the
UniqueID.
Edwin Knoppert wrote:
Like:
var o = document.getEle mentById('<%=tx t_Index.ClientI D%>');
o.value = ....
"RVB" <ja*******@gmai l.comschreef in bericht
news:11******** **************@ m7g2000cwm.goog legroups.com...
Not really an option, the validators work by writing a javascript
array
called Page_Validators , automatically generated by .NET itself. This
is
then referenced by another automatically generated item, a
javascript
file, which it pulls out using a handler via
webresource.axd ?somerandomguid . As such, can't really alter the
javascript call itself where the validation fires off nor is it
really
practical to try and reverse engineer this js file.
I have found another ID reference: ClientID but again, read only.
The
only one which you appera to be able to alter is ID which is of no
use
whatsoever. All I want is to be able to change the ID, I fail to
understand why this is so hard, especially as I keep hearing "oh
yes,
validators have been fixed to work with Firefox in .NET 2.0".
BTW, Test Harness works in Firefox because it lacks the auto
pre-append. I'm not exactly sure where this auto generated _ctl0 is
coming from. Admittedly the control sits inside an ascx (which has a
normal id) and then itself with a contentplacehol der based off a
seperate master page. If I knew where that was coming from I would
be
able to override it but the control has an ID, the placeholder has
an
ID and I'm at a loss to determine why it's appearing.
Edwin Knoppert wrote:
Can you try the name tag instead?
<ja*******@gmai l.comschreef in bericht
news:11******** **************@ i3g2000cwc.goog legroups.com...
Is there any way to alter this? I am aware that it's read only.
Essentially the problem is that I have a webcontrol that
dynamically
creates a textbox and a requiredfieldva lidator control with the
validator validating the textbox. This worked fine in my test
harness
and works fine in my other projects using master page based pages
when
in IE but in Firefox, the other project doesn't work. I've been
able
to
narrow it down to teh fact that we've got a preappend on the ID
of
the
controls of "_ctl0" and as an underscore isn't a valid start
character,
firefox doesn't run the javascript (quite rightly).
I'd prefer to alter this within the original code that creates
the
sub
controls rather than hack it in the other project as it's to be
part
of
a common library for use elsewhere. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Scott |
last post by:
I am trying to alter the ForeColor of a TextBox object so
that parts of the displayed text are written in various
colors. For example, when writing to the TextBox I wish
to display parts of the text in red and then other parts
of the text in black. Is it possible to do this with the
TextBox object or do I need to use the RichTextBox
object? Thank you for your help!
Scott
|
by: David Whitney |
last post by:
Hi, all.
I'm trying to work with some client-side scripting issues with an
ASP.NET application. I realize I've probably done something wrong, but
at the moment it looks to me like an inconsistency in the way
javascript is interpreting form elements.
I generate my Javascript from a server-side control, and use the
UniqueID property of the control to generate what will be the final
client-side reference. Normally, this works fine; I've...
|
by: Henri |
last post by:
Sorry to post so many questions but if you could tell me the difference
between these 3 IDs, it would help me a lot.
I don't know which one to use inside my custom control...
|
by: Kepler |
last post by:
I have a custom control that is thrown onto a UserControl that is
thrown onto a WebForm. Basically, I've got a scenario where if my
UserControl sets an attribute on the custom control in the ascx,
EnsureChildControls gets called, creating the control before the
UserControl is even added to the webform. The problem with this is
that the UniqueID of the custom control will be false, since OnInit
has yet to be called on its parent, somehow...
|
by: Ken Baltrinic |
last post by:
Can someone explain this?
I am writing an owner rendered User Control that basically wraps some
functionality around a text box. This control uses client side javascript
and implments IPostBackDataHandler. In order for my JaveScript to find the
control using GetElementByID I must emit Control.ClientID as the value of
the ID attribute of my textbox and in order for the postback handling
mechanism to link up that same textbox with my...
| |
by: Aamir Mahmood |
last post by:
Hi all,
Is there a bug in the implementation of property UniqueID for radio button
control.
Because what I get through the UniqueID property is not what is rendered in
the final html output.
This is causing my javascript to fail.
Is this some feature? If not, then what is the workaround?
|
by: Sam Samnah |
last post by:
Sorry if this seems like a simplestic question, but what is the difference
between "this.UniqueID" and "this.ClientID"? and when should either be used?
I am Sam I am.
|
by: JimmyKoolPantz |
last post by:
IDE: Visual Studio 2005
Language: VB.NET
Fox Pro Driver Version: 9.0.0.3504
Problem: I currently have a problem altering a DBF file. I do not get
any syntax errors when running the program. However, after I alter the
table and open microsoft excel to look at any changes; I get the
following error: "This file is not in a recognizable format" If I do
open the file in excel it looks like its not formatted.
|
by: zufie |
last post by:
Hi,
I want to specifying a foreign key by altering a table.
First, I create an ORDERS table without specifying a foreign key. Here
is my code:
CREATE TABLE ORDERS
(Order_ID integer,
Order_Date date,
Customer_SID integer,
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |