Home » Archive

Articles in the ASP.Net Category

ASP.Net, Tech Corner »

[5 Jun 2009 | No Comment | Posted By:LG]

TreeView
TreeView an ASP.net control . It is there in the toolbox inside the “Navigation” tab.It is one among the very few navigation controls and comes in to use when we need nesting  or recursion.
Pre-Requisites

Drag and drop a TreeView Control “TreeView1″ in our Asp.Net webpage (Default2.aspx).
Data to the control is bound from a table.Here I am using Ms-sqlserver.View table structure.
A class is used for database  connectivity “DBAccess.cs”.

After creating the page and adding the control , a few lines of code can simply fill the tree nodes. First step …

Read the full Post »

ASP.Net, Tech Corner, Technical Interview »

[3 Jun 2009 | No Comment | Posted By:Vivek]

To help you out with the technical interview questions, we will be posting common technical interview questions asked on .NET.

Explain about the .NET framework.
The Microsoft .NET Framework is a platform for building, deploying, and running Web Services and applications.The .NET framework consists of two major components-the Common Language Runtime(CLR) and the .NET framework class libraries.CLR manages the code at execution time while the class library consists of reusable types that can be used for developing different applications.
What is CLR?
CLR is the core runtime engine in the .NET framework for executing …

Read the full Post »

ASP.Net, Tech Corner »

[1 May 2009 | No Comment | Posted By:LG]

The MultiView and View controls were introduced in Asp.Net (2.0).The Multiview acts like a standalone controls which helps in toggling between views. In a simpler way, it is a container that can hold various “VIEW” controls. And the “VIEW” control can hold any number of other controls, the benefit is they are grouped together, so that its easy to provide visibility.
Working (with an Eg:)
First drag and drop a multiview control into your page(MultiView1),now inside it place two views(View1,View2).Now inside both views write the names to distinguish.And place a button inside …

Read the full Post »

ASP.Net, GridView Tips, Tech Corner »

[27 Apr 2009 | No Comment | Posted By:LG]

How to use a dropdownlist in a gridview??
I will try explain this with best of my knowledge, the use of a dropdownlist inside comes when the case of edit update in a gridview comes. Consider an Eg:
A gridview that displays a “name” and a “Country”, and an option to edit the Country of a person. This is done from a dropdownlist.

Initial Requirements:
1)
Tables(Ms sqlserver2008 is the back end database used in here)
Table name:- country_lloyd
CountryId int
CountryName varchar(50)
Table name:- …

Read the full Post »

ASP.Net, Tech Corner »

[15 Apr 2009 | No Comment | Posted By:LG]

How to Upload a file in an ASP.NET website…???
Pre-requisites
1)Drag & drop the “Fileupload” control (“FileUpload1”)into an aspx page(“latest15.aspx” ).You will get “Fileupload” control from visualstudio.Net standard toolbar.
2)Add a button to the page( “Button_Upload”) .
The fileupload control itself helps browsing our system,I am not going on explaining just check out the code below.It is the code file of the page.
“latest15.aspx.cs”
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class latest15 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button_Upload_Click(object sender, EventArgs e)
{
FileUpload1.SaveAs(Server.MapPath(Request.ApplicationPath)+”\\”+FileUpload1.FileName);
}
}
Notes:
1) “Savesas” …

Read the full Post »