Archive for the 'ASP.NET' Category

Storing Files In Database Using ASP.NET

In this example I am storing files like word document, text file and excel files into database and retrieving back from database and saving back into a folder.
So lets start creating a Table in SQL Server database in which we are going store our uploaded files, in this table I am creating following columns.

DocumentID int [...]

Creating Dynamic Controls, and Preserve them for alternate Page Loads : ASP.NET

Normally when you create a control dynamically means at runtime, on the next page load you will loose that control, that control will be no longer exists, in this example I am try to explain how we can store that controls and get them back.
Create a Web Application and Add [...]

Implementing Tabs using MultiView Control : ASP.NET

Using MultiView control in ASP.NET we can achieve tabs in a web page, now in this example I am going to explain how we can create tabs using MulitView control
Create a web application and add a Table control with 1 row and 3 columns and a MultiView control with 3 views, you can refer below [...]

Save Images in Access Database : ASP.NET

Using OLE Object we can save images in Access Database, in this example we will select a image and save that image in Access database using ASP.NET.
First we will start creating a table in access database.
Create a table ImageTable with following fields

ID    AutoNumber (Primary Key)
ImageName   Text
ImageValue OLE Object

Now create a WebApplication [...]

HttpWebRequest & HttpWebResponse

Following example I am trying to explain how we can request to a URL from our coding and read the Header content of the response.
 
Create a web application and add a Textbox and a Button to Default.aspx and double click on the button and add following code.
 
        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            [...]

ASP.NET AJAX and Calendar Control

Normally when we use calendar control in asp.net we see that calendar control occupies lot of space and selecting a date will cause a post back.
To avoid that problem we can use AJAX to select a date from calendar control with out any page post back and hiding the calendar control will save lot of [...]

ASP.NET MVC 1.0 is now Live

ASP.NET is now live and you can download that from http://go.microsoft.com/fwlink/?LinkId=144444 and you can access the documentation from http://go.microsoft.com/fwlink/?LinkId=145989.
 
Tags : ASP.NET MCV, .NET C#, ASP.NET 3.5