Ask a Question related to ASP.NET General, Design and Development.
-
Steve #1
Wierd datalist behavior
Hi,
I have a datalist with some labels embedded inside.
When the page loads, I can see all my labels contain text. on my
datalist_onitemcommand i can even reset their text to something else. What i
can't do is GET the text from the labels i can access. Code is as follows
(no error messages)
Protected Sub test(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataListCommandEventArgs )
If e.Item.ItemType = ListItemType.Item Or _
e.Item.ItemType = ListItemType.AlternatingItem Then
Dim s As String
Dim title As String
Dim loc As String
Dim titlelbl As Label
titlelbl = CType(e.Item.FindControl("MyTitle"), Label) ' Does not give me
the labels text even though the page shows text in the label
title = titlelbl.Text
'If i try something like (titlelbl.text = "Foo") here, it works as expected
End Sub
Thanks
Steve
Steve Guest
-
Wierd Problem with MX 7
Ok, my high school is beginning to work with ColdFusion, and I am the one that is teaching the students that want to learn ColdFusion. My problem is... -
Wierd Box
Hi, I've gotten a bit better at this. But now I come with a problem(when don't I). I have this wierd box displaying at the bottom of my page. Thing... -
Having a checkbox column and the grid disabled upon first load generated wierd behavior when Postback occurs.
I have a grid with a checkbox column in it, that is disabled at Form_Load but it loaded with data anyway. Selecting a radio button enables it but... -
Wierd Behavior of __doPostBack
Hello, I am having some weird behavior between two machines...one which is running the 1.1 framework and one which is running 1.0. After opening... -
wierd error.....help please.....
have been working with a site and today started getting an error when uploaded page on the live server...everything works well locally... The XML...



Reply With Quote

