Ebeworld’s Weblog

Trying to create

Preventing double click

this.bSubmit.Attributes.Add(“onclick”, ” this.disabled = true; ” + ClientScript.GetPostBackEventReference(bSubmit, null) + “;”);

March 29, 2009 Posted by ebeworld | Uncategorized | | No Comments Yet

Sleaky web UI

QuestionPro

March 23, 2009 Posted by ebeworld | Uncategorized | | No Comments Yet

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

March 23, 2009 Posted by ebeworld | Uncategorized | | No Comments Yet

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

wonder how they make money?

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.

March 3, 2009 Posted by ebeworld | Uncategorized | | No Comments Yet

IIS+SSL

http://weblogs.asp.net/scottgu/archive/2007/04/06/tip-trick-enabling-ssl-on-iis7-using-self-signed-certificates.aspx

March 2, 2009 Posted by ebeworld | Uncategorized | | No Comments Yet

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.

March 2, 2009 Posted by ebeworld | Uncategorized | | No Comments Yet