Friday 25 April 2014


Description:-

            In this Example we explain that how to add Calendar Control or Datepicker in a TextBox click in mvc 4 with Asp.Net using Jquery or Implement Calendar control in Asp.Net mvc.

This is the basic thing that we use calendar in every Forms or Razor View to Upload Date in Database. Here in this Example we Add the Calender in TextBox click to upload the Date of the File Upload by using Jquery and also implement the code in Controller class to save the data in database.

Here is a simple code to display Calender in MVC 4 Razor view

<script type="text/jscript">

 $(function () {
        $("#Upload_Date").datepicker(); // Here Upload_Date is the Id of the TextBox.
    });
    </script>

Here we also Describe to upload the File in Database to do this first we have to set this thing

@using (Html.BeginForm("Fileuploads", "FolderHierchy", FormMethod.Post, new { enctype = "multipart/form-data" }))

AND

<input type="file" name="files" id="file" multiple="multiple" />

Here "multipart/form-data" is used for when we upload the file in database and multiple="multiple" is used for to upload multiple file at a time.


 To handle this File Upload in controller you have to implement this code

[HttpPost]
        public ActionResult Fileuploads(Folder containers, IEnumerable<HttpPostedFileBase> files)
        {
          
            foreach (var file in files)
            {
                if (Convert.ToInt32(filesize) < 1073741824)//1GB Limit
                {
             
                     //your code
                }
             }
       }

Insert,Update,Delete in ModalPopup CRUD operation in ModalPopup

Read and Write in Text File in asp.Net Read and Write File in Asp.Net

How to Implement Calendar control in mvc 4 razor or Add Calender in TextBox in mvc4


Description:-

            In this Example we explain that how to add Calendar Control or Datepicker in a TextBox click in mvc 4 with Asp.Net using Jquery or Implement Calendar control in Asp.Net mvc.

This is the basic thing that we use calendar in every Forms or Razor View to Upload Date in Database. Here in this Example we Add the Calender in TextBox click to upload the Date of the File Upload by using Jquery and also implement the code in Controller class to save the data in database.

Here is a simple code to display Calender in MVC 4 Razor view

<script type="text/jscript">

 $(function () {
        $("#Upload_Date").datepicker(); // Here Upload_Date is the Id of the TextBox.
    });
    </script>

Here we also Describe to upload the File in Database to do this first we have to set this thing

@using (Html.BeginForm("Fileuploads", "FolderHierchy", FormMethod.Post, new { enctype = "multipart/form-data" }))

AND

<input type="file" name="files" id="file" multiple="multiple" />

Here "multipart/form-data" is used for when we upload the file in database and multiple="multiple" is used for to upload multiple file at a time.


 To handle this File Upload in controller you have to implement this code

[HttpPost]
        public ActionResult Fileuploads(Folder containers, IEnumerable<HttpPostedFileBase> files)
        {
          
            foreach (var file in files)
            {
                if (Convert.ToInt32(filesize) < 1073741824)//1GB Limit
                {
             
                     //your code
                }
             }
       }

Insert,Update,Delete in ModalPopup CRUD operation in ModalPopup

Read and Write in Text File in asp.Net Read and Write File in Asp.Net

Friday 11 April 2014



Description:-

In this example I am explain that how to use DropDownCheckBoxes or Drop Down CHeckBoxList control or select multiple Items from DropdownList in ASP.NET.

In .NET  DropDownList does not provide facility with multi select Items in DropdownList. So to overcome this  :-

DropDownCheckBoxes is a server control provides functionality to select multiple items from DropDownList.You can download DropDownCheckBoxes.dll by following the link given below.

http://dropdowncheckboxes.codeplex.com/releases/view/70874

there is a requirement in my application to user can  select multiple items from dropdownlist but Asp.Net does not provide this facility and so this reason I have Developed a Custom class for DropdownList that can give facility to user to select multiple items from DropdownList with CheckBox Facility.

First you have add References of   DropDownCheckBoxes.dll in your website and then you can easily create a DropdownList with multiple items selection.


 to download complete example click below download image link
download here!

Export Gridview to Excel :-   Gridview to Excel

Insert,Update,Delete in ModalPopup CRUD operation in ModalPopup

Read and Write in Text File in asp.Net Read and Write File in Asp.Net

select multiple items from DropDownList in Asp.Net or Drop Down CheckBoxList control in ASP.NET



Description:-

In this example I am explain that how to use DropDownCheckBoxes or Drop Down CHeckBoxList control or select multiple Items from DropdownList in ASP.NET.

In .NET  DropDownList does not provide facility with multi select Items in DropdownList. So to overcome this  :-

DropDownCheckBoxes is a server control provides functionality to select multiple items from DropDownList.You can download DropDownCheckBoxes.dll by following the link given below.

http://dropdowncheckboxes.codeplex.com/releases/view/70874

there is a requirement in my application to user can  select multiple items from dropdownlist but Asp.Net does not provide this facility and so this reason I have Developed a Custom class for DropdownList that can give facility to user to select multiple items from DropdownList with CheckBox Facility.

First you have add References of   DropDownCheckBoxes.dll in your website and then you can easily create a DropdownList with multiple items selection.


 to download complete example click below download image link
download here!

Export Gridview to Excel :-   Gridview to Excel

Insert,Update,Delete in ModalPopup CRUD operation in ModalPopup

Read and Write in Text File in asp.Net Read and Write File in Asp.Net

Friday 4 April 2014



Description:-

Here in this example we explain that how to resize an image without losing any quality from uploaded images using asp.net.

Resizing your images in asp.net seems to be a problem for many. Getting the image to resize is no problem at all. Getting the resized image to keep the same quality is where the problem lies.

Generally, In social networking sites like in Facebook after upload images they will reduce the size of the images but the quality will be same after seen that I tried to write this post.

I'm going to show you how to resize an image inputted by a user that you can resize to 3 different sizes. In this article we'll resize an image to a full size (600px wide), a medium size (200px wide) and a thumbnail (100px wide). You can also easily change any of these values to match your specific needs.

You can resize the image before saving it , if you are using the fileupload then this code will help you to resize the image with no effect on the picture quality and you can save it in any format such as .png ,.jpeg, .bmp and .gif etc


to show Example of How to Display Gridview Row Detail in Javascript Popup click here Display Gridview ARow Detail in Javascript Popup

to show Example of how to Redirect to another aspx page in javascript click here Redirect to another aspx page in javascript

How to Reduce Image FileSize without loosing Image quality in asp.net.



Description:-

Here in this example we explain that how to resize an image without losing any quality from uploaded images using asp.net.

Resizing your images in asp.net seems to be a problem for many. Getting the image to resize is no problem at all. Getting the resized image to keep the same quality is where the problem lies.

Generally, In social networking sites like in Facebook after upload images they will reduce the size of the images but the quality will be same after seen that I tried to write this post.

I'm going to show you how to resize an image inputted by a user that you can resize to 3 different sizes. In this article we'll resize an image to a full size (600px wide), a medium size (200px wide) and a thumbnail (100px wide). You can also easily change any of these values to match your specific needs.

You can resize the image before saving it , if you are using the fileupload then this code will help you to resize the image with no effect on the picture quality and you can save it in any format such as .png ,.jpeg, .bmp and .gif etc


to show Example of How to Display Gridview Row Detail in Javascript Popup click here Display Gridview ARow Detail in Javascript Popup

to show Example of how to Redirect to another aspx page in javascript click here Redirect to another aspx page in javascript