What I want is How to have a Insert Item Template in Asp.NET. Like in a Add User Page.I Get Automatically All the Items and the Text Boxes After That.
And the Create User Button in the end.
The same i Want .All Items along with the Text Boxes And the Insert Button At the End.And the Items should开发者_运维百科 be Inserted into the Database.
What I Want is to permanently Display the Insert Item Page.
For Ex:- In Case of Students :
FisrtName:----------- MiddleName:---------- LastName:------------
Without Any Button Been Clicked. Like a AddStudent Page or Create Student Page.
I Think You Got My Point
Thanks in Advance.
If it's a FormView as you've commented, you should call FormView.ChangeMode(FormViewMode.Insert):
Me.FormView1.ChangeMode(FormViewMode.Insert)
Me.FormView1.DataBind()
精彩评论