Bei mir klappts mitm Generic Control.

Du must beachten, dass du im iframe den src auch noch nicht angibst.
Bsp.: 

Default.aspx:
<iframe runat="server" id="frm_glengamoi" width="400" height="400"></iframe>

Default.aspx.vb:
Protected frm_glengamoi As System.Web.UI.HtmlControls.HtmlGenericControl
...
...
...
Frm_glengamoi.Attributes.Add("src","http://www.glengamoi.com";)


Gru�, Carsten

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Dirk Sch�fauer
Gesendet: Freitag, 7. Januar 2005 15:41
An: [email protected]
Betreff: AW: AW: [Asp.net] Serverseitig auf Frame zugreifen - 

Super vielen Dank f�r die Tipps, mit einem GenericControl hatte ich schon
versucht das hat aber nicht geklappt, aber per Variable oder Funktion
funktioniert es pr�chtig :)


Mit freundlichen Gr��en / Best regards

Dirk Sch�fauer
MSW screen:event

> > -----Urspr�ngliche Nachricht-----
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
> > Auftrag von Tim Schmelter
> > Gesendet: Freitag, 7. Januar 2005 15:20
> > An: [EMAIL PROTECTED]
> > Betreff: AW: [Asp.net] Serverseitig auf Frame zugreifen
> >
> > Hallo,
> >
> > beispielsweise so:
> >
> > <frame id="main" name="main" marginWidth="0" marginHeight="0"
> > src=<%=getPage()%> scrolling="auto">
> >
> > Und im Codebehind:
> >
> > Protected Function getPage() As String
> >         Return "XYZ.aspx"
> > End Function
> >
> >
> > -----Urspr�ngliche Nachricht-----
> > Von: Dirk Sch�fauer [mailto:[EMAIL PROTECTED]
> > Gesendet: Freitag, 7. Januar 2005 15:04
> > An: [email protected]
> > Betreff: [Asp.net] Serverseitig auf Frame zugreifen
> >
> > Hallo Liste,
> >
> > wie kann ich denn serverseitig auf einen Frame zugreifen, damit ich dem
> je
> > nach Bedingung ein src-Attribut zuweisen kann?
> >
> > Mein Frameset sieht bisher so aus:
> >
> >     <frameset id="_frameset" border="0" frameSpacing="0" frameBorder="0"
> > cols="100%" runat="server">
> >             <frame frameborder="0" id="_mainframe" marginheight="0"
> > marginwidth="0" name="_mainframe" noresize runat="server"
> > scrolling="auto">
> >     </frameset>
> >
> > Jetzt m�chte ich in der PageLoad-Methode folgendes machen:
> >
> > If Bedingung = True Then
> >     Meinframe.src = "Irgendwas.aspx"
> > Else
> >     Meinframe.src = "Irgendwas anderes.aspx"
> > End If
> >
> > Ich wei� allerdings nicht wie oder als welches Objekt ich den Frame
> dimmen
> > muss.
> >
> > Mit freundlichen Gr��en / Best regards
> >
> > Dirk Sch�fauer
> > MSW screen:event
> >
> >
> >
> > _______________________________________________
> > Asp.net Mailingliste, Postings senden an:
> > [email protected]
> > An-/Abmeldung und Suchfunktion unter:
> > http://www.glengamoi.com/mailman/listinfo/asp.net
> >
> >
> > _______________________________________________
> > Asp.net Mailingliste, Postings senden an:
> > [email protected]
> > An-/Abmeldung und Suchfunktion unter:
> > http://www.glengamoi.com/mailman/listinfo/asp.net

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an