Friday, December 19, 2008

Textbox Multiline

When TextBos is in MultiLine Mode then its rendered as TextArea in html and TextArea doesn’t support MaxLength

Multiple Alter Column in a single T-SQL

multiple ALTER COLUMN clauses in a single DDL statement doesn’t exists in T-SQL Today.

Passing 2 ClientIds to a Javascript function

The best way to pass 2 ids is in C#
ClientID requires another id but this.id doesn’t require that

ModalpopupExtender focus

Modalpopupextender C# focus() doesn't work also javascript dynamic passing the id to focus is not working.

ModalpopuExtender displays in Page Load

I'd a ModalPopupExtender in a page which will be in invisible load but there was a problem. Every time page loads the nodalwindow appears for sometime and then disappears.
This can be soled by saying display: none in the aspx page

Replace Javascript Function

Javascript Replace replaces only the 1st occurance

The below is replaceall function
function replaceAll(subject, search, replacement) {
return subject.split(search).join(replacement);
}

Page_LoadComplete

Page_LoadComplete is a page event it will not work in Master Page and user control