Please, Anyone?
Thanks,
Miguel
"Shapper" <mdmoura*NOSPAM*@gmail.*DELETE2SEND*com> wrote in message
news:mdmoura*NOSPAM*@gmail.*DELETE2SEND*com:
> Hello,
>
> I got a control which display some data from RSS feed in my page.
> In my aspx.vb I need to change some Labels and Images properties, used
> by the control, when the culture is changed.
>
> For that I created a function named Build_RSS()
>
> Private Sub Build_RSS(Dim Culture As String)
> Dim img As System.Web.UI.WebControls.Image =
> cnews.FindControl("_ctl0").FindControl("imgLogo")
> img.AlternateText = "New Text"
> End Sub
>
> It's not working!
>
> Then I tried this:
>
> Private Sub Page_PreRender(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles MyBase.PreRender
> Dim img As System.Web.UI.WebControls.Image =
> cnews.FindControl("_ctl0").FindControl("imgLogo")
> img.AlternateText = "New Text"
> End Sub
>
> This works!
>
> I got informed that the control loads RSS feed and build object model in
> OnLoad event handler, which occurs exactly after Page_Load event.
>
> Anyway, I am lost.
>
> How can I make my Build_RSS function to work?
> Can someone tell me what do I need to change or add in my code?
>
> Thank You,
> Miguel
|