Category Archives: ASP.net

Future of ASP.net and MVC?

Recently a friend of mine are asking about ASP.net Web form vs MVC which one are better and which one should go for starting an application? I was given some opinion and discussion with him regarding the pros and cons … Continue reading

Posted in ASP.net | Tagged , | Leave a comment

Gridview Header and first column always show

C#: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)    {        e.Row.Cells[0].CssClass = “locked”;        e.Row.Cells[1].CssClass = “locked”;    } html:   <head runat=”server”>    <title>Untitled Page</title>    <style type=”text/css”> div#div-datagrid {width: 220px;height: 100px;overflow: auto;scrollbar-base-color:#ffeaff;} /* Locks the left column */td.locked, th.locked {font-size: 14px;font-weight: bold;text-align: center;background-color: navy;color: … Continue reading

Posted in ASP.net, C# | Leave a comment

How to copy an image from an URL to own server and resize it

private void Page_Load(object sender, System.EventArgs e) { WebClient wc = new WebClient(); byte[] data = wc.DownloadData(“http://www.google.cn/intl/en-us/images/logo_cn.gif&#8221;); MemoryStream ms = new MemoryStream(data); System.Drawing.Image img = System.Drawing.Image.FromStream(ms); float iScale = img.Height > img.Width ? (float)img.Height / 100 : (float)img.Width / 100; img … Continue reading

Posted in ASP.net | Leave a comment

JQuery Thickbox in ASP.net

  I am using Jquery Thickbox in ASP.net. This thickbox is a method for modal pop out and direct to another page under parent page as iFrame. How do you make sure to postback the function from child and update … Continue reading

Posted in ASP.net, JQuery | Tagged , , | Leave a comment

How to trigger javascript function at parent page / usercontrol from Child Windows?

How to trigger javascript function at parent page / usercontrol from Child Windows? Parent Page Client Side:   Add a javascript at your parent page, this script is to use for trigger the invisible button for fire the event.   … Continue reading

Posted in AJAX, ASP.net | Leave a comment

Problem with Unity : is an interface and cannot be constructed. Are you missing a type mapping?

To resolve this, you’d need to map that type in Unity, probably in the ConfigureContainer method of your bootstrapper:   Container.RegisterType<IRegistery>(RegisterImplementationParameter());

Posted in C# | Tagged | Leave a comment

Workflow Foundation 4.0 – Type of Activity

WF Includes a base library of predefined activities that cover a wide variety of tasks. Below are some activities that can be include: Control execution flow (If, DoWhile, ForEach, Switch, and so on) Provide messaging functionality (for communicating with services) … Continue reading

Posted in WWF | Tagged | Leave a comment

Drag image from desktop to your browser?

Do you imagine how fast we can implement drag an image from your desktop to your browser by using HTML 5? I found a demo that very useful. Review the below code:- <!DOCTYPE html><html lang="en"><head><meta charset=utf-8 /><meta name="viewport" content="width=620" /><title>HTML5 … Continue reading

Posted in ASP.net | Tagged | Leave a comment

Are BI projects for SQL Server 2005/2008 compatible to apply in Visual Studio 2010?

Below are the table to list out the compatible:-   Visual Studio 2005 (the release version and later service packs) with BIDS in SQL Server 2005 Visual Studio 2008 (Service Pack 1 and later service packs) with BIDS in SQL … Continue reading

Posted in BI | Tagged | Leave a comment

Is C# on Android?

Yes, that is the way to doing so. Thanks to the hard work from Koushik Dutta and Marc Crichton to make it happen. Miracle!!! Here are the references you able to review:- Download the code http://github.com/koush/androidmono Instruction to build Mono … Continue reading

Posted in C# | Tagged , | Leave a comment