Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FormView Template - how to arrange controls via Designer

Status
Not open for further replies.

JanVolley

Programmer
Sep 8, 2008
14
US
I'm new to asp.net and am working with formviews and asp.net 2.0 and Visual Studio 2005. I have a formview where I'm editting an InsertItemTemplate that has a bunch of textboxes/labels for data entry. I'm not able to arrange the textbox/label control with the Designer after I get into the 'Edit Template' mode. I can't figure out for the life of me how to arrange my textboxes/labels with the Designer while in 'Edit Template' mode. Am I missing something or do you have to do it manually by adding your own html in the source file?

Thanks,
Jan
 
You'll have to use CSS or a table, for example, in the EditItemTemplate source.
 
So there's no other way besides editting the source manually to move the controls around? Visual Studio won't create the html table for you with the Designer?
 
You can add a table with the designer. I would learn not to depend on the designer so much and learn what is going on behind the scenes. This will make you a better programmer and make things easier to debug in the future.
 
I've already created a table (I have all the textboxes in one column right now), but the Designer still doesn't allow me to move the textboxes around. Should it?

I have several formviews that will have alot of fields. It would save alot of time and work to be able to initially place these fields in their general locations with the Designer and then tweak it by modifying the source code afterwards. Are you saying that this is not possible?

Jan
 
I haven't tried it, but I don't see why you would not be able to move the controls around once you are in "edit template" mode.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top