开发者

ASP.NET multiple types of controls to insert a record

ASP.NET newbie here. I would like to create a form with multiple types of controls for inserting a single record into a database table. This record has a "Type" field which is a foreign key, and I would like to populate a combobox with the possible values for it. I tried drag'n'dropping the table in design view (like in windows forms), but it alwa开发者_Go百科ys generates a gridview. How can I make it generate a form where I can specify the types of controls?

Thanks in advance


you could check detailsview and formview control. http://quickstart.developerfusion.co.uk/QuickStart/aspnet/doc/ctrlref/data/detailsview.aspx

http://quickstart.developerfusion.co.uk/QuickStart/aspnet/doc/ctrlref/data/formview.aspx


Sounds like you either want to use a DetailsView or a FormView control.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜