Click here to Skip to main content
15,895,777 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalconverting and updated converted pages Pin
Gus'O.9-Apr-08 11:09
Gus'O.9-Apr-08 11:09 
QuestionIs it possible to place a hyperlink within a ASP.NET textbox control? Pin
Infernojericho9-Apr-08 10:43
Infernojericho9-Apr-08 10:43 
AnswerRe: Is it possible to place a hyperlink within a ASP.NET textbox control? Pin
pmarfleet9-Apr-08 10:51
pmarfleet9-Apr-08 10:51 
GeneralRe: Is it possible to place a hyperlink within a ASP.NET textbox control? Pin
Infernojericho9-Apr-08 10:53
Infernojericho9-Apr-08 10:53 
GeneralRe: Is it possible to place a hyperlink within a ASP.NET textbox control? Pin
pmarfleet9-Apr-08 11:21
pmarfleet9-Apr-08 11:21 
GeneralCrystel Report ..Change Database Location at runtime Pin
Amr M. K.9-Apr-08 9:51
Amr M. K.9-Apr-08 9:51 
GeneralRe: Crystel Report ..Change Database Location at runtime Pin
Darsh_311-Apr-08 2:18
Darsh_311-Apr-08 2:18 
GeneralWeird behavior of FindControl Pin
AlexeiXX39-Apr-08 8:01
AlexeiXX39-Apr-08 8:01 
Hi, thanks for looking
Im having a weird behavior and i dont know whats going on
I have the following code:
Dim panel As New Panel
Dim lbl As New Label
lbl.ID = "Label1"
lbl.Text = "Text"

panel.Controls.Add(lbl)
Dim lbl2 As Label = CType(panel.FindControl("Label1"), Label)


lbl2 is supposed to have lbl but it has Nothing
On the immediate window i get the following info:
?panel.Controls.Count
1
?panel.Controls(0)
{System.Web.UI.WebControls.Label}
    System.Web.UI.WebControls.Label: {Text = "Text"}
    AppRelativeTemplateSourceDirectory: "~/Test/"
    BindingContainer: Nothing
    ClientID: "Label1"
    Controls: {System.Web.UI.ControlCollection}
    EnableTheming: True
    EnableViewState: True
    ID: "Label1"
    NamingContainer: Nothing
    Page: Nothing
    Parent: {System.Web.UI.WebControls.Panel}
    Site: Nothing
    SkinID: ""
    TemplateControl: Nothing
    TemplateSourceDirectory: "/V01/Test"
    UniqueID: "Label1"
    Visible: True
?panel.FindControl("Label1")
Nothing


How can i get the lbl control??
I cant just use index because i might have many controls inside the panel, i wont always know the order of the controls

Thanks in advance

Alexei Rodriguez

GeneralRe: Weird behavior of FindControl Pin
MrPlankton9-Apr-08 11:32
MrPlankton9-Apr-08 11:32 
GeneralRe: Weird behavior of FindControl Pin
AlexeiXX39-Apr-08 11:47
AlexeiXX39-Apr-08 11:47 
GeneralRe: Weird behavior of FindControl Pin
MrPlankton10-Apr-08 5:39
MrPlankton10-Apr-08 5:39 
QuestionHow to send cookies with httpwebrequest Pin
raha20029-Apr-08 6:56
raha20029-Apr-08 6:56 
AnswerRe: How to send cookies with httpwebrequest Pin
led mike9-Apr-08 7:17
led mike9-Apr-08 7:17 
GeneralRe: How to send cookies with httpwebrequest Pin
raha20029-Apr-08 8:56
raha20029-Apr-08 8:56 
GeneralRe: How to send cookies with httpwebrequest Pin
led mike10-Apr-08 5:41
led mike10-Apr-08 5:41 
QuestionLost selection from dropdownlist after postback??? Pin
JimFeng9-Apr-08 6:21
JimFeng9-Apr-08 6:21 
AnswerRe: Lost selection from dropdownlist after postback??? Pin
ChrisKo9-Apr-08 10:38
ChrisKo9-Apr-08 10:38 
GeneralRe: Lost selection from dropdownlist after postback??? Pin
JimFeng10-Apr-08 5:24
JimFeng10-Apr-08 5:24 
GeneralDates Problem Pin
macca249-Apr-08 5:09
macca249-Apr-08 5:09 
AnswerRe: Dates Problem Pin
Jesse Squire9-Apr-08 5:24
Jesse Squire9-Apr-08 5:24 
GeneralRe: Dates Problem Pin
Darsh_310-Apr-08 8:50
Darsh_310-Apr-08 8:50 
Questionhow to give input data at runtime in a table format after button click saving Pin
vardhanmm@gmail.com9-Apr-08 3:41
vardhanmm@gmail.com9-Apr-08 3:41 
AnswerRe: how to give input data at runtime in a table format after button click saving Pin
Ashish Sehajpal9-Apr-08 3:59
Ashish Sehajpal9-Apr-08 3:59 
GeneralRe: how to give input data at runtime in a table format after button click saving Pin
Paddy Boyd9-Apr-08 4:44
Paddy Boyd9-Apr-08 4:44 
Question[Message Deleted] Pin
John Sundar9-Apr-08 3:03
John Sundar9-Apr-08 3:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.