Click here to Skip to main content
15,891,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: adding Textchanged event to textbox placed in the datagrid footer template Pin
_AK_15-Aug-06 19:07
_AK_15-Aug-06 19:07 
Questioncan someone explain this please? partial trust assemblies Pin
g00fyman13-Aug-06 0:40
g00fyman13-Aug-06 0:40 
QuestionHow to trigger an treeview node to expand itself when checking Pin
steven_wong12-Aug-06 21:55
steven_wong12-Aug-06 21:55 
QuestionProblems with ASP.Net and GMail Pin
Clickok12-Aug-06 17:32
Clickok12-Aug-06 17:32 
QuestionHow to list server directories in ASP.Net 2.0 Pin
chinna8212-Aug-06 7:49
chinna8212-Aug-06 7:49 
QuestionHow to list server directories in ASP.Net 2.0 Pin
chinna8213-Aug-06 9:33
chinna8213-Aug-06 9:33 
Questionchanging the header on a datagrid Pin
ssbelfast12-Aug-06 7:02
ssbelfast12-Aug-06 7:02 
QuestionCharacter count problem.. Pin
waddie112-Aug-06 6:30
waddie112-Aug-06 6:30 
Hey all

I've got an aspx page that has a number of text boxes on it. I have the following javascript function that counts characters within the text box:

function myLength(lbl,tb,max){
//lbl is the ID of the control that displays the count
//tb is the ID of the control that is being counted
//max is the maximum amount of characters allowed in the control


lbl.innerHTML = tb.innerHTML.length + " of " + max;
}

Within the vb page associated to the aspx page I have the following code:

txtTitle.Attributes.Add("OnKeyUp", "myLength(document.getElementById('" _
+ lblWC_Title.ClientID + "'),document.getElementById('" + _
txtTitle.ClientID + "')," + txtTitle.MaxLength.ToString + ")")

This adds the onkeyup event to the text box and passes the correct client ID's into the javascript function.

Now my problem is this, if my asp text box is multiline then the word count works fine but nothing happens if it is a text box set to be single line. I use the same methods as shown above for both types of text box. Any ideas on what is causing this?



Thanks in advance

W.Smile | :)

AnswerRe: Character count problem.. Pin
Guffa13-Aug-06 0:44
Guffa13-Aug-06 0:44 
AnswerRe: Character count problem.. Pin
waddie125-Aug-06 3:17
waddie125-Aug-06 3:17 
QuestionFirst ClienSide or ServerSide Pin
MHASSANF12-Aug-06 2:51
MHASSANF12-Aug-06 2:51 
AnswerRe: First ClienSide or ServerSide Pin
Guffa12-Aug-06 4:05
Guffa12-Aug-06 4:05 
QuestionHow to acces the runtime creation file in asp.net? Pin
subburaj.sabapathy12-Aug-06 2:13
subburaj.sabapathy12-Aug-06 2:13 
AnswerRe: How to acces the runtime creation file in asp.net? Pin
Guffa12-Aug-06 2:40
Guffa12-Aug-06 2:40 
GeneralRe: How to acces the runtime creation file in asp.net? Pin
subburaj.sabapathy12-Aug-06 2:59
subburaj.sabapathy12-Aug-06 2:59 
AnswerRe: How to acces the runtime creation file in asp.net? Pin
Guffa12-Aug-06 6:00
Guffa12-Aug-06 6:00 
GeneralRe: How to acces the runtime creation file in asp.net? Pin
subburaj.sabapathy13-Aug-06 19:00
subburaj.sabapathy13-Aug-06 19:00 
AnswerRe: How to acces the runtime creation file in asp.net? Pin
Guffa13-Aug-06 21:15
Guffa13-Aug-06 21:15 
QuestionProblem regarding Team Suit Pin
Muhammad Chitrali12-Aug-06 1:57
Muhammad Chitrali12-Aug-06 1:57 
QuestionHow to integrate payment gateway Pin
sabby200612-Aug-06 1:26
sabby200612-Aug-06 1:26 
AnswerRe: How to integrate payment gateway Pin
seee sharp14-Aug-06 0:15
seee sharp14-Aug-06 0:15 
GeneralRe: How to integrate payment gateway Pin
sabby200614-Aug-06 21:52
sabby200614-Aug-06 21:52 
GeneralRe: How to integrate payment gateway Pin
mrsnipey14-Aug-06 22:50
mrsnipey14-Aug-06 22:50 
QuestionHi, Please help me Pin
latha_city12-Aug-06 0:12
latha_city12-Aug-06 0:12 
QuestionBuilding a search function Pin
tmoney10111-Aug-06 20:22
tmoney10111-Aug-06 20:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.