开发者

ASP.NET multiple types of controls to insert a record

开发者 https://www.devze.com 2022-12-12 02:41 出处:网络
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 w

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

精彩评论

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