Preventing double click
this.bSubmit.Attributes.Add(“onclick”, ” this.disabled = true; ” + ClientScript.GetPostBackEventReference(bSubmit, null) + “;”);
Sleaky web UI
QuestionPro
Distributed query.
Add server info
EXEC sp_addlinkedserver [servername]
Add login to the server:
EXEC sp_addlinkedsrvlogin @rmtsrvname =[servername], @useself = ‘false’, @rmtuser = ’sa’, @rmtpassword= ‘Dell@123′
check it using sys.servers or directly in SSMS
Interesting web sites
1. Online business models http://digitalenterprise.org/models/models.html
2. Mint.com- how to get financial informations from someone.
3. AskMen.com–nice website for men http://www.askmen.com/
4. Time: Best 50 Websites in 2008.
5. MapJack- http://www.mapjack.com/Help.html
6. 1000 ad display give 2$, which sucks…
7. Hulu is great, nice way of advertisement
8. Lookybook- great way of helping people, since it allows people to flip through the book. No forgery is there. Come on who will read her child a book on internet? So if he loves it, he will buy.
9. Whole national archive is online–http://digitalvaults.org/
10 http://freerice.com/index.php -Great way of improving vocubulary, and donate money.
IIS+SSL
http://weblogs.asp.net/scottgu/archive/2007/04/06/tip-trick-enabling-ssl-on-iis7-using-self-signed-certificates.aspx
Localization
One of the nice way to localize a web page is
protected override void InitializeCulture()
{
CultureInfo ci = new CultureInfo(“es-mx”, false);
Thread.CurrentThread.CurrentUICulture = ci;
Thread.CurrentThread.CurrentCulture = ci;
}
but it goes out of hand very quickly, unless we do it in master page, or HttpModule’s PreRequest
HandlerExecute event or an application’s global.asax Application_BeginRequest method. Also one nasty thing about it is, the method is called even before all the controls initialized,therefore all control values are unavailable. Using parameter info, such as Request.Form["CultureSelectorDropDown"] can be a solution.
Programitically, this.lblGreeting.Text = GetLocalResourceObject(“greeting”).ToString(); would work. or putting meta:resourcekey in aspx.
-
Recent
-
Links
-
Archives
- August 2009 (1)
- July 2009 (2)
- April 2009 (4)
- March 2009 (6)
- February 2009 (5)
- January 2009 (4)
- December 2008 (3)
- November 2008 (35)
- October 2008 (20)
-
Categories
-
RSS
Entries RSS
Comments RSS