usercontrole question(unanswered)
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngcontrolsvb' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

siri siris
hi all

i am giving completecode here:

.aspx code:
----------

<body MS_POSITIONING="GridLayout">
        <form id="Form1" method="post" runat="server">
            <table id="Table1" cellSpacing="0" cellPadding="5"
borderColorLight="#3399ff" border="1" runat="server">
                <tr>
                    <td vAlign="middle" noWrap align="middle"
bgColor="#669999">
                        <b><font face="Arial" size="3">Test
Name</font></b>
                    </td>
                    <td vAlign="middle" noWrap align="middle"
bgColor="#669999">
                        <b><font face="Arial" size="3">PCN</font></b>
                    </td>
                    <td vAlign="middle" align="middle"
bgColor="#669999">
                        <b><font face="Arial" size="3">Time To
Trip</font></b>
                    </td>
                </tr>
            </table>
        </form>
    </body>

.aspx.vb code:
-----------

Protected Table1 As New HtmlTable()
Private Sub Page_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
'Put user code to initialize the page here

Dim x As Control
x = LoadControl("addtrc.ascx")
Dim r As New HtmlTableRow()
Dim c As New HtmlTableCell()
c.Controls.Add(x)
r.Cells.Add(c)
Table1.Controls.Add(r)
End Sub

.ascx.vb code:
----------

Protected Table11 As New HtmlTable()
Private Sub Page_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
'Put user code to initialize the page here
Dim i As Integer
Dim j As Integer
For j = 0 To 1
Dim r As New HtmlTableRow()
For i = 0 To 2
Dim c As New HtmlTableCell()
c.Controls.Add(New
LiteralControl("x"))
r.Cells.Add(c)
Next
Table11.Controls.Add(r)
Next
End Sub

--------------------------

when i run my .aspx code from my browser i am able to
see only the .aspx page output...i am not able to see
anything from .ascx.vb........... please help me.....

thanks in advance
siri

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

Reply to this message...
 
    
Das (VIP)
Well, in your ASPX, page, where are you including your aspx.vb code.
Do you have a page directive in your ASPX page?

:-)
Das.

----- Original Message -----
From: "siri siris" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Tuesday, February 19, 2002 7:09 PM
Subject: [aspngcontrolsvb] usercontrole question(unanswered)

[Original message clipped]

_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com

Reply to this message...
 
 
System.EventArgs
System.Object
System.Web.UI.HtmlControls.HtmlTable
System.Web.UI.HtmlControls.HtmlTableCell
System.Web.UI.HtmlControls.HtmlTableRow
System.Web.UI.LiteralControl




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com