Skip to main content

Posts

One of my old favorite Games - Z (Strategy)

Z - strategy game i used to love this game , it was quite fascinating strategy game around 1996 download : http://www.486games.net/game.php?id=173

Crystal Report XI - ASP.NET 2005, Not enough memory for operation.

Recently I have faced certain error when i was trying access Report Viewer in deployed asp.net 2005 application with Crystal Report XI/11 on IIS error was : Not enough memory for operation. Exception Details: System.Runtime.InteropServices.COMException: Not enough memory for operation. there was hundreds of solutions neither worked for me.. finally i have installed Crystal Report XI server .NET release 2 that worked :) download crystal report run-times for Crystal Report XI at: http://resources.businessobjects.com/support/additional_downloads/runtime.asp#06

Enum To ListItem Collection

private System.ComponentModel. BindingList < ListItem > EnumToList( Type enumType) { System.ComponentModel. BindingList < ListItem > listItemBindingList = new System.ComponentModel. BindingList < ListItem >(); foreach ( Enum item in Enum .GetValues(enumType)) { ListItem lItem = new ListItem(item.ToString("D"), item.ToString("G")); listItemBindingList.Add(lItem); } } you can call the method BindingList<ListItem> listItemBindingList = EnumToList(typeof(YourEnum));

ASP.NET GridView - Format Template column data using format strings and Custom Methods

This article contains GridView template column formatting through Data Format String, ternary operator blocks and custom methods. Using Format String Date time <itemtemplate> <asp:Label ID="lblDOB" runat="server" Text='<%# Eval("DOB","{0:d}") %>'></asp:Label> </itemtemplate> </asp:TemplateField> For Long Date, <itemtemplate> <asp:Label ID="Label8" runat="server" Text='<%# Eval("DOB","{0:d}") %>'></asp:Label> </itemtemplate> </asp:TemplateField> Using ternary operator <ItemTemplate> <asp:Image ID="ImageOpenPending" runat="server" ImageUrl='<%# Convert.ToInt32(Eval("StateId")) == 1 ? "~/images/icons/DashBoard_Green_Bullet.gif" : "~/images/icons/DashBoard_Red_Bullet.gif" %>' /> <asp:H...

KGB Archiver - What a compression

Recently one of my friends introduced me a new archiving software that having an unbelievable compression ratio with its maximum mode, Plus unbelievable duration for compression, don’t worry anyway they have provided “turn off the machine after compression” facility ;) KGB Archiver - http://kgbarchiver.net/?page=home

How to find the control that caused the Page Submit in FormLoad event - ASP.NET

This function would be useful when someone needs to identify button clicks outside the respective button event Changing the selected object type, it's possible to find other controls as well. public static System.Web.UI.Control GetPostbackControlObject(System.Web.UI.Page pageReference) { System.Web.UI.Control returnObj = null; if (pageReference.IsPostBack) { //- Find postback control's Name in form __EVENTTARGET field... object eventTarget = pageReference.Request.Form["__EVENTTARGET"]; //- if __EVENTTARGET has a value (not null or an empty string), return the control with that name if ((eventTarget != null) && eventTarget.ToString().Trim().Count()>0) { return pageReference.FindControl(eventTarget.ToString().Trim()); } //- That is not working if the postback is trigered by a standard Buttons. // Get the control from the Page.Form collection. foreach (string keyName in pageReference.Request.Form) { Sys...

Format HTML - Visual Studio 2005

it's very easy t format HTML or the mark up in a page using VS 2005 1. Select a part or the page which contains html 2. Select "Edit" menu and then select "Advanced" there are many useful options available note: it's always better to check things in your menus when you tired with your coding 3. Select format document or format selection accordingly, VS will do the formatting for you

Debug Stored Procedures (SPs) in Visual Studio .NET

Though I have heard of it I never wanted to try it till yesterday, the debugging a SP in Visual Studio .NET is a straight forward job as follows - Open your project - Add a New Connection to Visual Studio Select and open the respective SP and break point can be added then right click on the Stored Procedure in the Server Explorer, select Step into Stored Procedure "One more setting" – go to the project settings, Set Debuggers SQL Server true "Happy Debugging"

Scientist Got a Clue

The religion of the future will be a cosmic religion. It should transcend a personal God and avoid dogmas and theology. Covering both the natural and the spiritual, it should be based on a religious sense arising from the experience of all things, natural and spiritual as a meaningful unity. If there is any religion that would cope with modern scientific needs, it would be Buddhism. - Albert Einstein

UPEKSHA : : [equanimity, indifferent feeling]

Strenth | Weakness

This mind is like a fish out of water that thrashes and throws itself about, its thoughts following each of its cravings. Such a wandering mind is weak and unsteady, attracted here, there and everywhere. How good it is to control it and know the happiness of freedom.

Great Man

Arrived at the finished,unfrightened, unblemished, free of craving, he has cut awaythe arrows of becoming. This physical heap is his last. Free from craving, ungrasping, astute in expression, knowing the combination of sounds which comes first & which after. He’s called a last-body greatly discerning great man.