Tottenham Hotspurs Stadium

Prepping Jquery Callbacks

 

///Pulls Weather for locations that have Active
///Zip Codes

  function performLocations() {
    var arr = null;
    $("#pnlWeather").html("<span style="color: #ffffff;">...loading weather</span>clouds/imageservice/WeatherImages/?majikH@993n2="  + __root
+ "/Content/images/bing1.jpg&~n=" + Math.random() 
+ "' frameborder='0' scrolling='no' width=100% height=301 />");
 constantWeather(0); } }

constantWeather(0); });

 

Tottenham Hotspurs Stadium

White Hart Lane

MVC Context swapping or Shape Shifting

If your a fan of the request object and you need to pass along in MVC to some class already Defining the System.Web:

There are other solutions but :

var currCtx = this.HttpContext;
var  currPage = (HttpApplication)currCtx.GetService(typeof(HttpApplication));

Location = DA.CoolAppLayer.getInfo(strOfSignifigance, currPage .Context);

Und Voilla!!!!!

    Happy Coding  : – D

 

 

ssd

Column Swap in Gridview

This is kind of a silly way of doing this but if you are somewhat UI bound this could be useful.

public void SwapColumns(GridView gridView,Int32 rowZero,Int32 rowOne)
{
for (int __rowIndexUno = 0; __rowIndexUno <= gridView.Rows.Count – 1; __rowIndexUno++)
{
GridViewRow row = gridView.Rows[__rowIndexUno];
for (int cellIndex = 0; cellIndex <= row.Cells.Count – 1; cellIndex++)
{
if (__rowIndexUno == 0)
{
string hCol0 = null;
string hCol1 = null;
hCol0 = gridView.HeaderRow.Cells[rowZero].Text;
hCol1 = gridView.HeaderRow.Cells[rowOne].Text;
gridView.HeaderRow.Cells[rowZero].Text = hCol1;
gridView.HeaderRow.Cells[rowOne].Text = hCol0;
}

if (cellIndex < 1 & row.Cells[rowZero].Visible)
{
string temp0 = row.Cells[rowZero].Text;
string temp1 = row.Cells[rowOne].Text;
row.Cells[rowZero].Text = temp1;
row.Cells[rowOne].Text = temp0;
}

}
}
}

protected void Button1_Click(object sender, EventArgs e)
{
SwapColumns(this.GridView1, System.Convert.ToInt32(DropDownList1.SelectedItem.Value), System.Convert.ToInt32( DropDownList2.SelectedItem.Value));
}

 

Flip