S
SStory
I have the ASP Unleased book--of course all code. So it doesn't help me tie
it to the VSNET IDE easily--to know what I have to do and what is done for
me.
I am trying to make a simple datalist that will get 3 fields from a database
plus the Identity field--so 4 total--identity field won't be shown.
I dropped a datalist on the webform.. Found the Edit Template menu
item...went into edit template mode..
I dragged some Web forms controls in each of the various templates. I set
style background colors etc.
In this design form all three controls (webform labels) are on one line, but
the show up with a large amount of space between each item (vertically)
Why?
I do have an edititem template that is larger and has multiple lines, but I
thought that that only mattered when it was to do an edit.
I made a linkbutton Edit in the ItemTemplate
I set its commandname to edit
in my book he had to do a OnEditCommand=dlstAuthors_EditCommand in his
example...
with the IDE, I don't have to do that or do I.
I am connecting to SQL in code not through a sqlconnection control--does
that matter?
Due to this I had to go into my HTML code and place the text='<%#
container.dataitem("whatever")%>
Manually. Should I have done it this way... Is there a way to do that in
the IDE? Or will it only work if there is a SQL Connection control on the
form? What is the best way?
Anyhow in the datalist1_editcommand sub
I placed
datalist1.edititemindex=e.item.itemindex
binddatalist 'this just hits the sql server for the data
But click edit didn't bring up the edit item as I had imagined.
Can anyone tell me why my formatting for each item has all this vertical
space between items, but in the template I see no reason why?
And why doesn't my edit command work?
Thanks
it to the VSNET IDE easily--to know what I have to do and what is done for
me.
I am trying to make a simple datalist that will get 3 fields from a database
plus the Identity field--so 4 total--identity field won't be shown.
I dropped a datalist on the webform.. Found the Edit Template menu
item...went into edit template mode..
I dragged some Web forms controls in each of the various templates. I set
style background colors etc.
In this design form all three controls (webform labels) are on one line, but
the show up with a large amount of space between each item (vertically)
Why?
I do have an edititem template that is larger and has multiple lines, but I
thought that that only mattered when it was to do an edit.
I made a linkbutton Edit in the ItemTemplate
I set its commandname to edit
in my book he had to do a OnEditCommand=dlstAuthors_EditCommand in his
example...
with the IDE, I don't have to do that or do I.
I am connecting to SQL in code not through a sqlconnection control--does
that matter?
Due to this I had to go into my HTML code and place the text='<%#
container.dataitem("whatever")%>
Manually. Should I have done it this way... Is there a way to do that in
the IDE? Or will it only work if there is a SQL Connection control on the
form? What is the best way?
Anyhow in the datalist1_editcommand sub
I placed
datalist1.edititemindex=e.item.itemindex
binddatalist 'this just hits the sql server for the data
But click edit didn't bring up the edit item as I had imagined.
Can anyone tell me why my formatting for each item has all this vertical
space between items, but in the template I see no reason why?
And why doesn't my edit command work?
Thanks