473,395 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

help: edit datalist itemtemplate with designer

pel
hi,

can someone refer me to a web site, book, or other resource for learning
how to edit templates?

I'm following a book on asp.net 2.0. I'm using vsts 2005 team edition.

it indicates I can use the designer to add controls, etc to the
templates. I tried dropping a table, text box, etc onto the template.
one time the table showed up on the page, but not in the datalist.
another time the textbox just would disappear after trying to position
in the template area.

I need help with detail instruction in this area: can you refer me to a
resource? is this an 05 problem? are you supposed to skip the gui and
really use the source view and type? is it my lack of html knowledge
that created the problem? eg I dropped a table onto the template and
placed it after the last field in the book example

Thanks!
Sep 16 '08 #1
4 1176
pel
pel wrote:
.... it indicates I can use the designer to add controls, etc to the
templates. ...
I should have specified I'm working with datalist control
Sep 16 '08 #2
On Sep 16, 9:35*am, pel <pel...@verizon.netwrote:
pel wrote:

... it indicates I can use the designer to add controls, etc to thetemplates. ...

I should have specified I'm working with datalist control
when you drag/drop the datalist on the apsx, right click, select edit
template->Item Templates.
The datalist will be displayed with the item template/alternating item
template...
Click in the area below the required template and drag/drop a control
(say textbox) in that area.
Sep 16 '08 #3
pel
.... select edit template->Item Templates...
yes. that's what I'm doing. it just doesnt register, or comes out
wrong. when I add any new control in the designer, it always comes out
in the top left corner, and I have to drag it into the template box.
but it doesnt seem to register. if I drag a table into the template
box, then try to out a control into a table cell, it just forgets when I
choose end template editing, or gets it wrong.

Only when I type html directly into the aspx between the itemtemplate
tags, do I get the results I want.
Sep 16 '08 #4
pel
the problem was in my visual studio layout settings:

I had layout/position/autoposition/html designer/css set to absolute.
this caused that the control appeared correctly placed in template
editor. but when closed, the control appeared off in left field. I
thought the control somehow was not registered as inside the template,
and just fell onto the page. actually in source view, it was correctly
placed between the template tags.

I guess at runtime, all the instances of the button were really there,
one on top of the other.

anyway I changed to "No positioning attribute", because examples
directly showing the markup had none. I dropped a new control onto the
template and worked fine.
Sep 18 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lewis | last post by:
Hey! Wondering if anyone can help! I have been trying to build an aspx page which builds a list of records from a database. Having been doing this using xml and xslt using asp for years with...
1
by: Carl Howarth | last post by:
Hi, I have a check box list within a datalist. Can anybody tell me how I go about accessing the onclick event of these checkbox lists? (using vb.net) Many thanks, Carl Howarth...
0
by: Alex | last post by:
Interested in more .NET stuff visit www.dedicatedsolutions.co.uk The DataList is not as powerful as the DataGrid. It requires more work from you since it has no default data presentation format....
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
3
by: CVerma | last post by:
Hi, I have an embedded datagrid within a datalist. I am not able to perfrom paging in the datagrid. Any ideas? Here is my code: Here is my Simplegrid.cs file: using System; using...
6
by: Patrick.O.Ige | last post by:
Hi guys, Just using these small snippet below using Datalist with sorting! But it appears i can see no Data on the screen when compiled with Visual Studio .Net! With WebMatrix its running fine!:)...
4
by: tshad | last post by:
I have a DataList that I have set up to allow editing. The edit button does go to the subroutine defined by OnEditCommand. The problem is that it doesn't change the fields to editing fields. The...
1
by: Paul L | last post by:
Hi, I have an issue with the OnSelectedIndexChanged event not firing for a DropDownList control which is in the ItemTemplate of a DataList. I have made an exact copy of the DropDownList control,...
4
by: Sam Martin | last post by:
Hi, I have got a User Control that contains for the sake of argument, a single DataList control. eg. <asp:DataList id="DataListMain" runat="server" RepeatDirection="Horizontal"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.