how to get the src of a iframe

  • Thread starter Thread starter guoqi zheng
  • Start date Start date
G

guoqi zheng

Dear sir,

I know how to set the src of a iframe, for example, I can use
Dim frame1 As HtmlControl = Page.FindControl("itest")
frame1.Attributes("src") = Me.TextBox1.Text.Trim

However how can I get the current src of a iframe after user clicking
several times on the iframe??? when I try to get the value of frame1.
Attributes("src"), what I get is the original src I set to it.

How can I do this?

regards,

Guoqi Zheng
http://www.ureader.com
 
this is only known at the client. you could use some ajax approach to notify
the server of a src change.

-- bruce (sqlwork.com)
 
Dear sir,

I know how to set the src of a iframe, for example, I can use
Dim frame1 As HtmlControl = Page.FindControl("itest")
frame1.Attributes("src") = Me.TextBox1.Text.Trim

However how can I get the current src of a iframe after user clicking
several times on the iframe??? when I try to get the value of frame1.
Attributes("src"), what I get is the original src I set to it.

How can I do this?

regards,

Guoqi Zheng
http://www.ureader.com
Tell me, while user click on the frame, what do you expect src to change?
 
Back
Top