Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to solve this? Thank You.

Reply
Thread Tools

How to solve this? Thank You.

 
 
Shapper
Guest
Posts: n/a
 
      06-08-2005
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

 
Reply With Quote
 
 
 
 
Shapper
Guest
Posts: n/a
 
      06-08-2005
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date/Time Format. I don't know how to solve this. Thank You. Miguel Dias Moura ASP .Net 0 04-08-2004 11:49 PM
Date/Time Format. I don't know how to solve this. Thank You. Miguel Dias Moura ASP .Net 2 04-02-2004 04:46 PM
How to solve this Date/Time format problem? Thank You. Miguel Dias Moura ASP .Net 0 04-01-2004 11:57 PM
Thank You CJ, Thank Mike! mytho Computer Support 7 11-23-2003 06:50 AM
Thank You CJ, Thank Mike! mytho Computer Support 0 11-22-2003 01:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57