Ask a Question related to ASP.NET General, Design and Development.
-
Jim French #1
DropDownList not displaying properly solution
I thought I would share this (semi) annoying issue I had. Basically, the
DropDownList I was trying to bind inside a Repeater with the ItemDataBound
event was not working - instead of a normal listbox, I was getting a row of
string values. The problem was that I left out the closing '>' from the
literal control that was directly in front of the DDL.
Private Sub Repeater1_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.RepeaterItemEventArgs) Handles
Repeater1.ItemDataBound
'Bind Name
CType(e.Item.FindControl("litName"), Literal).Text = "<p><b>" &
objDS.Tables("Table2").Rows(e.Item.ItemIndex).Item ("personame") & "</b></p"
<-----
'Bind DropDownList
Dim lstWho As DropDownList = CType(e.Item.FindControl("lstwho"),
DropDownList)
lstWho.DataSource = objDS.Tables("Table1")
lstWho.DataTextField = "Name"
lstWho.DataValueField = "ID"
lstWho.DataBind()
End Sub
Hope that can help someone save some time someday!
Jim French Guest
-
Issues with .swf displaying properly in Templates????
This was such a simple thing this AM that is now a very strange issue.. Here is the page: http://www.goldenstatefire.com On this page is a... -
Font/Text not displaying properly
Hi - I hope s'one can help me. I enjoy playing online bingo. Most sites I do not have a problem with. However I have recently started playing at... -
add/edit scheduled task not displaying properly
I recently upgraded from 6.1 to 7. I see two issues. First, the scheduled task information was not properly copied. In 6.1, I checked on the... -
displaying all file content properly
I want to display the entire contents of a cfm file so i can edit it, however using cffile and then cfoutput to display the contents means that all... -
Zapfdingbats not displaying: Thoroughly researched but still no solution found
After I save a FrameMaker 6.0 file as PDF using the distiller driver, characters formatted with Zapfdingbats disappear in the PDF, both when viewed...



Reply With Quote

