Hi, 

I have a jscript function called OpenDetails(id) in my aspx page. 
I want to dynamically create a table and call that function.This is what i am trying 
to do in vb.net but i'm not sure about the line in bold- the syntax and how to call 
the jscript function. 

Thanks 


Private Sub AddChild(ByVal Id As Integer)



        Dim da As New SqlDataAdapter("SELECT * FROM 

Forum WHERE ParentID = " & Id & " ORDER BY DateTime", oConn)

        Dim ds As New DataSet



        da.Fill(ds, "Threads")

        oConn.Close()



        message.InnerHtml += "<ul>" + ControlChars.Lf

        Dim i As Integer

        For i = 0 To (ds.Tables("Threads").Rows.Count) - 1

                       message.InnerHtml += "<table border=0>"

            message.InnerHtml += "<tr>"



            message.InnerHtml += "<td  style='Cursor:hand' onclick='<%# 'OpenDetails(' 
& DataBinder.Eval(Container.DataItem,'Id') & ');'%>'> "

            message.InnerHtml += "<li>" & ds.Tables("Threads").Rows(i)("Subject") & " 
by " & ds.Tables("Threads").Rows(i)("Author") & "</li></td>" & ControlChars.Lf

            message.InnerHtml += "</table>"

            AddChild(Integer.Parse(ds.Tables("Threads").Rows(i)("ID").ToString()))

        Next i

        message.InnerHtml += "</ul>" + ControlChars.Lf

    End Sub 'AddChild






[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to