Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes. November 2005 Entries
JIM ROSS passed away
I came to know that Mr Jim Ross, the MVP passed away. This came as a shock to me as I always learned from Jim Ross posts of asp.net. This is a great loss for his family and also for the development community. God gives patience to his family. :( powered by IMHO ......

Posted On Wednesday, November 30, 2005 10:04 PM

This is sooo LAME!!!
I recieved this job description letter from some company which starts with: Hello <#First Name#>: Wow! someone forgot to use databinding!! heheheh. They did not even bother to put the person name. I think it should have worked if they have used something like this: ASP.NET 1.X: Hello <%# DataBinder.Eval(Container.D... %> ASP.NET 2.0: Hello <%# Eval("FirstName") %> Properties: Hello <%# FirstName %> Method: Hello <%# GetFirstName() %> and don't forget ......

Posted On Monday, November 28, 2005 3:38 PM

Code Snippet Manager in Visual Studio.NET 2005
Visual Studio.NET 2005 comes with many cool features and one of them is Code Snippet Manager. Remember all the time writing boring code well, now you can make use of the Snippet Manager and hence paste the code in seconds. All you need to do is to [YourSnippetFile].snippet file to the My Code Snippets folder and that's it. Here is one of my Snippet File which is use to create a BindData method which fills the dataset and return it to the client. <?xml version="1.0"?><CodeS... xmlns="http://schemas.micro... ......

Posted On Sunday, November 27, 2005 12:16 AM

Partial Classes in 2.0
Partial Classes means that your class defination might be in multiple files. This way you can organize your files more efficiently. Look at the example below I have the class "Customers " but its defined in multiple files: Customer.cs: This simply contains a single constructor and thats it! public partial class Customer{ public Customer() { }} Customer.Methods.cs: This can contain the methods of the Customer Class. partial class Customer{ public void GetCustomers() { // Code for getting all the customers ......

Posted On Wednesday, November 23, 2005 3:16 PM

Loosing Intellisense in Visual Studio.NET 2005
I was just playing around with User Controls and wrote some simple code to load the User Control in my page programmatically. I noticed that if I make an object of the User Control the intellisense was not recongnizing it. But after some time like 2-3 minutes intellisense got hold of it and reconized the methods and properties of the User Control. I wonder what was that all about. Is this my some sort of little bug!! powered by IMHO ......

Posted On Wednesday, November 23, 2005 1:26 PM

DHTML ToolTip with Calendar Control
Sometime back I should how to attach the DHTML ToolTip with the DataGrid control . This time the same concept of the DHTML ToolTip but now I am using a Calendar Control. Check out the image below: Yeah, looks kinda sweet. This will be a good way to display the summary of the items or data which are dependent on dates. Check out gridviewguy.com regularly since I will be uploading an article about this very soon! powered by IMHO ......

Posted On Wednesday, November 23, 2005 1:24 PM

Got the MCP Logo
Wow! today I got my LOGO for Microsoft Certification. I passed 70-315 (Developing Web Applications using Visual C#.NET and Visual Studio.NET) couple of days ago. Whopee :) powered by IMHO ......

Posted On Tuesday, November 22, 2005 1:19 PM

E-Books all the way!
Okay, I have turned to E-Books. The one thing that I dont like about paper books is that when you are reading the page and it turns (because of the wind or something). On the other hand when reading E-Books I have to switch between screens. But for me E-Books win in the end since I don't have to carry it around. I have serveral geeky E-Books that I plan to read in few days. Anyway, I right now the time is 10:17 PM and I plan to go to bed in serveral minutes since I need to wake up at 4:00 AM to study ......

Posted On Monday, November 21, 2005 9:19 PM

Export Button Released Buy it now!
Okay, finally the Export Button is out. Check out the link below and give it a try. http://gridviewguy.com/Arti... powered by IMHO ......

Posted On Sunday, November 20, 2005 9:09 PM

Still working on my Export Button
I am pretty sure this Export Button Custom Server Control is going to get me FAIL in my Exam on Tuesday. I am very exicited about this custom control. Here are some of the features of Export Button Control: Export to multiple Formats: The control allows you to export your data to multiple formats. Which include Excel, Text, XML and Word documents. Design View functionality: Simply drag and drop the control from the toolbox and right click to assign the properties. Properties: Here are some of the ......

Posted On Sunday, November 20, 2005 4:08 PM

Testing a new custom server control
I find it really helpfull to add a new Web Project in my solution which already contains Web Class Library project to test my control. I simply drag and drop the new control on the forum and it changes instantly as I add or remove the properties to the control project. powered by IMHO ......

Posted On Friday, November 18, 2005 8:45 PM

Export Button Released!!!!
Well, I was getting too bored so I thought of implementing the Export Button Server Control. Now you can simply drag and drop the export button on the form and give it the id of the Datagrid or the TextBox control that you want to export. After supplying the id of the control simply run the application and push the button and it will export the contents of the DataGrid to the Excel file. Ohh yeah you can also provide the name of the file name using FileName property. Check out this link to download ......

Posted On Thursday, November 17, 2005 9:59 PM

Please don't pass DataReader to the presentation layer :(
People please stop passing DataReader to the presentation layer. If you want to use datareader object then use it to fill a custom collection and then pass the custom collection to the presentation layer where it can be bind to a control or whatever. Check out this code: public static SqlDataReader GetCategories() { string connectionString = @"Server=localhost;Database... SqlConnection myConnection = new SqlConnection(connectionStr... SqlCommand myCommand = new ......

Posted On Wednesday, November 16, 2005 9:41 PM

Visual Studio.NET 2005 (HTML Editor is now XHTML Compliant)
I am sure most of you have already noticed but now in Visual Studio.NET 2005 you can write your html compliant with XHTML, HTML 4.0 and more formats. I guess this will keep some of the html garbage away from the web pages. :) powered by IMHO ......

Posted On Wednesday, November 16, 2005 2:24 PM

Passing Data from the Child Window to the Parent
Okay, I was getting lot of emails about how to pass the data from the child window to the parent window. In the code below I pass the DataTable from the child window to the parent window. The child window has a datagrid and you select the items from the datagrid and those items are passed back to the parent window. Parent Window: protected void Page_Load(object sender, EventArgs e) { if (Session["SelectedItems"] != null) { GridView1.DataSource = (DataTable)Session["Selecte... GridView1.DataBind(); ......

Posted On Wednesday, November 16, 2005 10:53 AM

Microsoft Certification Exam 70-315 Cleared!!!!!!!
Just cleared Microsoft Certification Exam 70-315 (Developing Web Applications using C# and Visual Studio.NET). The exam was okay not that bad. There were 43 questions and 2.5 hours. The bad thing was my computer hung up when the Exam started so I kinda lost my 30 minutes. I only studied for 3 days, woke up this morning at 3:00 am and studied few more chapters and thats it. Anyway, the good thing is that I passed. Whoppeeee :) heheh

Posted On Tuesday, November 15, 2005 11:41 AM

Asp.NET Videos on Google Video
I just searched on http://video.google.com/ for Asp.net videos and found some cool videos. The problem is that if you run the movie it will run extremely fast and you will not know what is going on. Let me know if you are able to fix the speed thingy. just search on http://video.google.com/ for asp and you will know what I am talking about. Try to run the screen shots videos. powered by IMHO ......

Posted On Saturday, November 12, 2005 9:41 PM

Visual Studio.NET 2005 Tip from Scott Guthrie
Here is a little tip from Scott Guthrie. In Visual Studio.NET 2005 if you select anything in the design view like buttons, textboxes, gridview and go back to the html view then whatever you selected will be reflected in the html view. Its pretty cool check it out. powered by IMHO ......

Posted On Friday, November 11, 2005 7:51 AM

Nullable Types in .NET 2.0
Okay, I am really tired just one last post. Consider that you have a database with fields FirstName and Amount. Amount is an integer field. For some amount you did not enter anything and hence they are default to null. When you run the loop below: int amount = 0; string firstName = null; foreach (DataRow row in ds.Tables[0].Rows) { firstName = row["FirstName"] as String; amount = (int) row["Amount"]; // Error converting null to int } Although we can avoid this error by simply doing: int amount = ......

Posted On Thursday, November 10, 2005 10:44 PM

C# , VB.NET , SQL SERVER , Microsoft Interview questions
I found a webpage which contains extensive amount of interview questions. Check it out. http://spaces.msn.com/membe... powered by IMHO ......

Posted On Thursday, November 10, 2005 6:01 PM

Changing the Row Color on the mouseover event in GridView Control
Pretty simple idea to change the row color of the GridView control on the onmouseover event. protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmou... "this.style.backgroundColor... // This will be the back ground color of the GridView Control e.Row.Attributes.Add("onmou... "this.style.backgroundColor... } } ......

Posted On Monday, November 7, 2005 9:57 PM

DropDownLists in the GridViewControl
Some developer emailed me asking that how can he extract the selected value from a DropDownList which is inside the GridView control. Over here I will present two ways to extract the values. The first way loops through the GridView control and gets all the values from all the rows (Rows that contains the DropDownList) and binds them to the DataTable object and later to the another GridView control. Second method simply uses the feature of the select column and displays the DropDownList value from ......

Posted On Saturday, November 5, 2005 10:51 PM

GOT DLINQ?
DLinq: Dlinq is the new ADO.NET for the Microsoft.NET Platform. DLinq allows you to execute the T-SQL queries using any .NET compatible programming language. Creating Mapping B/W Class and Database Tables: First thing you need to do is to create a class that maps to the database table. [Table (Name="Orders")] class Order { [Column (DbType="int not null",Id=true)] public int OrderID; [Column (DbType="nchar(50)")] public string CustomerID; [Column (DbType="nvarchar(60)")] public string ShipAddress; ......

Posted On Saturday, November 5, 2005 8:51 PM

GOT LINQ?
LINQ: Linq stands for Language Integrated Query. It allows you to iternate, parse and function on different collections with the help of SQL type syntax. Download LINQ Project: You can download the linq project from the linq website. After downloading the link project run the ReadMe.html file which will tell you how you can install it. I am not sure that if it installs on Visual Studio 2005 BETA I since I only tried on Visual Studio 2005 (Released Version). I have heard that some developers were ......

Posted On Saturday, November 5, 2005 1:40 PM

Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net