Archive for the ‘Asp.net’ Category

How to use DataPager with DataGrid

Wednesday, February 2nd, 2011


Requirements;

  • .net framework 3.5

Follow the instruction as follows which explains how to use datapager with custom datagrid control;

  • Download this control
  • Unzip it and add CS.Web.UI.dll to your visual studio toolbox.
  • Drag from toolbox and drop the control to your aspx page.
  • Sample code in aspx file.


            
        
   

        
          
            


            
                    

          

          

          
        
      

And gridActivities_PageIndexChanging in .cs file

protected void gridActivities_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        gridActivities.PageIndex = e.NewPageIndex;
        gridActivities.DataBind();
    }

Microsoft Virtual Earth & Give Up Google Map?

Tuesday, March 24th, 2009

microsoft-virtual-earthAs far as I can see this map by Microsoft looks nicer and easier to develop.

Have a look at the sample of my work with it;
http://virtualearth.cemsisman.com

See online SDK;
http://www.microsoft.com/maps/isdk/ajax/

Asp.net Web Crop Image Control

Tuesday, December 16th, 2008

I’m so excited to announce that we have published the Web Crop Image. Those who want to implement web based image cropping functionality on their websites/projects.

Please send us feedback and tell us how we can improve this control, you are also welcome to contribute this project as a developer.

Project CodePlex website : http://www.codeplex.com/webcropimage

Updated : 18 Jan 2009 added new features maxSize and minSize to allow you fix the selection.

Updated: 11 Nov 2009 The selection now maintains its state.

Changes:

  • Namespace is now CS.Web.UI
  • Control name is now CropImage
  • Property CropImage name changed to Image
  • You dont need to set CropImageButton property anymore. Just any buttons click event call the Crop function like following;
    <CropImageControlID>.Crop(Server.Mapth(~”<directory>/<filename>”));

See samples;

http://samples.cemsisman.com/webcropimage/Sample1.aspx
http://samples.cemsisman.com/webcropimage/Ratiosample.aspx
http://samples.cemsisman.com/webcropimage/fixedsize.aspx

Please donate for further development support.