K'Blog

Because there’s always more to learn

  Home  |   Contact  |   Syndication    |   Login
  10 Posts | 0 Stories | 2 Comments | 0 Trackbacks

News

Twitter




Archives

Post Categories

ASP.NET

Thursday, January 15, 2009 #

Hi All,


Read my new post :

http://weblogs.asp.net/KrunalMevada/


Enjoy,
Krunal

Sunday, December 07, 2008 #

All,

The latest control added by the Microsoft in .net is NEW ASP.NET Chart control.

This control is required in the .Net family and Microsoft has fulfilled that.  It can be used with .net 3.5 sp1 and it is free.

The main thing is it generates the “image tag” - simple html tag, which is supported by every browser and displays great charts. Also performance is good.

I have developed one sample application to use it for my curiosity. You can download it from here. I have used northwind database, product table.

The chart looks like this:

Cool ASP.NET Chart Control

I think now, Microsoft has made the charting very simple and easy of cost.

You can download the Chart control, samples, a great documentation and a VS2008 Tool Support.

 

Happy Coding!

Krunal


Welcome,

This November, i got some cool links to visit them once.

1) .Net cheat sheets and common fundamentals

2) A new .net Chart Control :) 


Enjoy!
Krunal

Thursday, October 23, 2008 #

Everywhere, in weblogs, i read about the MVC Beta.

After reading decided to build a small application and tried to develop sample tasklist mvc application by following the First Tutorial.

I enjoyed it and getting working on VS 2008 & its development web server.

Then, i had published it to my iis 5.1 (i am using windows xp sp2 and vs2008).

And then the things were goes wrong. Got stuck in "page not found error".

I look around on the net for this, and got one solution for this.

For that i have to change the Global.asax & little configuration in IIS

Global.asax Change:
routes.MapRoute(
                "Default",                                              // Route name
                "{controller}.mvc/{action}/{id}",                           // URL with parameters
                new { controller = "Home", action = "Index", id = "" }  // Parameter defaults
            );

IIS Config Change:
Map the extension (.mvc) in IIS to the asp.net pipeline

It will looks like this : http://localhost/controller.mvc/action


Finally, my first mvc application worked in windows xp. :)

You can download the code here.

Enjoy,
Krunal

Tuesday, October 07, 2008 #

Summary
Extract your zip file in aspspider.net using OpenSource Zip Library in asp.net (SharpZipLib)

.NET Classes used :
  • using System;
  • using System.IO;
  • using ICSharpCode.SharpZipLib.Zip;

  • I have used open source zip library. Which you have to download from http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx

    Put ICSharpCode.SharpZipLib.DLL into your bin folder of asp.net application.

    Use Following function to extract zip file. Assign your zipfilename in ZipFileName variable.

    You Need Folder Rights to Create File Programmatically.

    string ZipFileName = "FCKeditor_2.4.3.zip";

           try
           {

               if (!File.Exists(Server.MapPath(ZipFileName)))
               {
                   lstProcess.Items.Add("File Does Not Exists.");
                   return;
               }

               using (ZipInputStream s = new ZipInputStream(File.OpenRead(Server.MapPath(ZipFileName))))
               {

                   ZipEntry theEntry;
                   while ((theEntry = s.GetNextEntry()) != null)
                   {
                      string directoryName = Path.GetDirectoryName(theEntry.Name);
                       string fileName = Path.GetFileName(theEntry.Name);

                       // create directory
                       if (directoryName.Length > 0)
                       {
                           Directory.CreateDirectory(Server.MapPath(directoryName));
                       }

                       if (fileName != String.Empty)
                       {
                           using (FileStream streamWriter = File.Create(Server.MapPath(theEntry.Name)))
                           {

                               int size = 2048;
                               byte[] data = new byte[2048];
                               while (true)
                               {
                                   size = s.Read(data, 0, data.Length);
                                   if (size > 0)
                                   {
                                       streamWriter.Write(data, 0, size);
                                   }
                                   else
                                   {
                                       break;
                                   }
                               }
                           }
                       }
                   }
               }
           }
           catch (Exception ex)
           {
               //Display Error
           }
           finally
           {
               //Update Status
           }

    Monday, October 06, 2008 #

    “Virtual TechDays” held on September 17-19, 2008

    Recorded sessions and presentations are now available.

    http://connectwithlife.co.in/vtd/default.aspx

    Enjoy !!
    Krunal

    Saturday, October 04, 2008 #

    Good morning,

    Want to test your web applications on live with free hosting.

    Try this one : LINK

    It is supporting ASP.NET 3.5 and SQL Server 2005.


    Enjoy,
    Krunal

    Wednesday, October 01, 2008 #

    if you are a learning geek, then you will find this interesting.

    you can find lots of learning resource and links on this site.

    Link

     

     Namste !!

     

     

     


    Friday, September 26, 2008 #

    Recently, in one project i need to get random records from sql server table and i found a good way to do that.

    SELECT TOP <n> <column list> 
    FROM <table>
    WHERE <criteria>
    ORDER BY NEWID()

    The main function is NEWID() which return GUID.


    Cheers !!
    Krunal

    Thursday, September 25, 2008 #

    Hello all,

    This is my first post on geekswithblogs.net

    I m so excited about this.

    I'll update and share the best things in technology, that i can.

    Thanks,

    Krunal Mevada