Wednesday, July 3, 2013

Add JavaScript map to Html Header using VB.Net




In Page Load event

Dim scripttag = New HtmlGenericControl("script")


                scripttag.Attributes.Add("type", "text/javascript")


                scripttag.InnerHtml = "var controls="[{‘key1’:’value1’, ‘key2’:’value2’},    {="[{‘key1’:’value3’, ‘key2’:’value4’}]"


                Page.Header.Controls.Add(scripttag)

SQL Optimization

  SQL Optimization  1. Add where on your query  2. If you remove some data after the data return then remove the remove condition in the sel...