Frame
-
Hi, I have used frames in my page i wanna dynamically load frame For this i used this code in code behind
Dim fram As New System.Web.UI.HtmlControls.HtmlForm fram = CType(Me.FindControl("lower_frame"), HtmlControl) Dim src As String src = "left frame.aspx" With fram .Attributes("src") = src .Attributes("width") = "100%" .Attributes("height") = "328px" End With
It gives error that Object reference not set to an instance of an object. Thanks with anticaptionUnless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
-
Hi, I have used frames in my page i wanna dynamically load frame For this i used this code in code behind
Dim fram As New System.Web.UI.HtmlControls.HtmlForm fram = CType(Me.FindControl("lower_frame"), HtmlControl) Dim src As String src = "left frame.aspx" With fram .Attributes("src") = src .Attributes("width") = "100%" .Attributes("height") = "328px" End With
It gives error that Object reference not set to an instance of an object. Thanks with anticaptionUnless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
I noticed that you are trying to assign frame control in Form control. Dim fram As New System.Web.UI.HtmlControls.HtmlForm fram = CType(Me.FindControl("lower_frame"), HtmlControl) (1) You can use by make it as runat server or try this: Dim frame1 As HtmlControl = CType(Me.FindControl("frame1"), HtmlControl)
Parwej Ahamad R & D with IIS 5.0/6.0
-
Hi, I have used frames in my page i wanna dynamically load frame For this i used this code in code behind
Dim fram As New System.Web.UI.HtmlControls.HtmlForm fram = CType(Me.FindControl("lower_frame"), HtmlControl) Dim src As String src = "left frame.aspx" With fram .Attributes("src") = src .Attributes("width") = "100%" .Attributes("height") = "328px" End With
It gives error that Object reference not set to an instance of an object. Thanks with anticaptionUnless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
-
I noticed that you are trying to assign frame control in Form control. Dim fram As New System.Web.UI.HtmlControls.HtmlForm fram = CType(Me.FindControl("lower_frame"), HtmlControl) (1) You can use by make it as runat server or try this: Dim frame1 As HtmlControl = CType(Me.FindControl("frame1"), HtmlControl)
Parwej Ahamad R & D with IIS 5.0/6.0
Thanks 4 ur quick response I have made it runat="server" n used this Dim frame1 As HtmlControl = CType(Me.FindControl("frame1"), HtmlControl) but still facing the same problem....
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
-
Thanks 4 ur quick response I have made it runat="server" n used this Dim frame1 As HtmlControl = CType(Me.FindControl("frame1"), HtmlControl) but still facing the same problem....
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
Hi, find with your frame id which i have bold: Dim frame1 As HtmlControl = CType(Me.FindControl("your_Frame_id"), HtmlControl
Parwej Ahamad R & D with IIS 5.0/6.0
-
Hi, I have used frames in my page i wanna dynamically load frame For this i used this code in code behind
Dim fram As New System.Web.UI.HtmlControls.HtmlForm fram = CType(Me.FindControl("lower_frame"), HtmlControl) Dim src As String src = "left frame.aspx" With fram .Attributes("src") = src .Attributes("width") = "100%" .Attributes("height") = "328px" End With
It gives error that Object reference not set to an instance of an object. Thanks with anticaptionUnless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
Thanks to both of u i wrote right in my project but by mistake wrong in above post
this is frame <frame name="right_frame" src="rightframe.aspx" runtat="Server"/> in code behind Dim frame1 As HtmlControl = CType(Me.FindControl("right_frame"), HtmlControl) Dim src As String src = "abc.aspx" With frame1 .Attributes("src") = src .Attributes("width") = "100%" .Attributes("height") = "328px" End With
i don't know where i m wrong???Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
-
Thanks to both of u i wrote right in my project but by mistake wrong in above post
this is frame <frame name="right_frame" src="rightframe.aspx" runtat="Server"/> in code behind Dim frame1 As HtmlControl = CType(Me.FindControl("right_frame"), HtmlControl) Dim src As String src = "abc.aspx" With frame1 .Attributes("src") = src .Attributes("width") = "100%" .Attributes("height") = "328px" End With
i don't know where i m wrong???Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
Are you using frameset ? If no then change as below <IFRAME name="right_frame" src="rightframe.aspx" runtat="Server"/>
Parwej Ahamad R & D with IIS 5.0/6.0