View Single Post
  #4 (permalink)  
Old 03-27-2008, 02:06 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: ListView server control in ASP.Net 3.5

In the ListView control definition, you should define a method which will be invoked when the event ItemInserting occurs. For example:


Code:
OnItemInserting="InsertList"
And the InsertList method definition will look like as follows:

Code:
protected void InsertList(Object sender, ListViewInsertEventArgs e)
{
    ListView1.InsertItemPosition = InsertItemPosition.None; 
}
ListView has an InsertItemTemplate Template in which we can specify the controls that we need to show during the insert mode.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Reply With Quote