public class MyHandler : IHttpHandler, System.Web.SessionState.IReadOnlySessionState
That's it!
public class MyHandler : IHttpHandler, System.Web.SessionState.IReadOnlySessionState
txtName.UniqueID.Replace(":","_")You can then build your JavaScript like this:
ClientScript.RegisterStartupScript(this.getType(),Or, Deal with it at the client
"blah","alert('"
+ txtName.UniqueID.Replace(":","_")
+ "');",true);
function GetElementByIdEndsWith(tagName,endsWith)
{
var elements =
document.getElementsByTagName(tagName);
for(var i = 0; i < elements.length; i++)
{
if (elements[i].id.endsWith(endsWith))
{
return elements[i];
}
}
return null;
}
String.prototype.endsWith = function(txt,ignoreCase)
{
var rgx;
if(ignoreCase)
{
rgx = new RegExp(txt+"$","i");
}
else
{
rgx = new RegExp(txt+"$");
}
return this.match(rgx)!=null;
}var x = GetElementByIdEndsWith("input","txtName");
You can't tell the actual size because there's nothing in the picture to compare it to, but I can tell you it was about the size of a 50-cent piece.The first time I saw one of these was about five years ago. We had some other bug problems in the house so we bought the house-fogger-bug-killer-can-things. I think that's what they're called... ha ha. They killed every bug in the house...except these guys. Basically we killed all of their food, so they all came up from the dank darkness of the basement and underside of the house looking for something to eat. All they found was scared people and ultimately...death by shoe, fly swatter, rock, etc. I'm glad I don't live there anymore, but I guess they're all around since one came to visit today. I'm not sure how to spell this but I'll try... Eeeewwwww!