P
P4trykx
Hello
I'm want to add some custom attributes to WebControls using
WebControl.Attributes.Add("abc","234");
So the html output will look like this,
<input type="hidden" abc="123" /> etc.
I know that I need to modify .dtd file and tell the browser that abc i
legal attribute.
But I have another problem, I can't change the abc attribute using
javascript, the change is invisible in code behind :-(. (in js it's
visible)
C#
someTextBox.Attrbites.Add("abc","1");
JS
document.GetElementById("someTextBox").abc = "0" ;
here goes the psotabck on server
C#
someTextBox.Attrbites["abc"] == "1"
Patryk
I'm want to add some custom attributes to WebControls using
WebControl.Attributes.Add("abc","234");
So the html output will look like this,
<input type="hidden" abc="123" /> etc.
I know that I need to modify .dtd file and tell the browser that abc i
legal attribute.
But I have another problem, I can't change the abc attribute using
javascript, the change is invisible in code behind :-(. (in js it's
visible)
C#
someTextBox.Attrbites.Add("abc","1");
JS
document.GetElementById("someTextBox").abc = "0" ;
here goes the psotabck on server
C#
someTextBox.Attrbites["abc"] == "1"
Patryk