Results 1 to 2 of 2

Thread: Accessing a DIV from VB.NET code

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    48

    Accessing a DIV from VB.NET code

    Hi,

    does anyone know how to access a html div from vb code?

    I have the below div and would like to access the "This is headline 1" div, i would like to replace this with rows from sql server

    Code:
    <DIV id="scrollup" style="Z-INDEX: 101; LEFT: 348px; WIDTH: 164px;    
                POSITION: absolute; TOP: 41px; HEIGHT: 109px"  
                ms_positioning="GridLayout">
    <div class="headline">This is headline 1</div>
    <div class="headline">This is headline 2</div>
    <div class="headline">This is headline 3</div>
    <div class="headline">This is headline 4</div>
    </DIV>
    Thanks

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Accessing a DIV from VB.NET code

    Div control is normal HTML control and will not be accessible from VB Code. I am assuming you are talking about ASP.NET.

    You can use a simple DataGrid to populate data from SQL Server or DataGridView(2005).
    Use [code] source code here[/code] tags when you post source code.

    My Articles

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width