Results 1 to 8 of 8

Thread: Can some one tell me what will be the code in vb.net?

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2006
    Posts
    63

    Can some one tell me what will be the code in vb.net?

    Can some one tell me what will be the code in vb.net?
    Last edited by sharonnet; Apr 2nd, 2008 at 11:54 AM.

  2. #2
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    Re: Can some one tell me what will be the code in vb.net?

    Something close to this:

    Code:
    Imports System 
    Imports System.Data 
    Imports System.Configuration 
    Imports System.Collections 
    Imports System.Web 
    Imports System.Web.Security 
    Imports System.Web.UI 
    Imports System.Web.UI.WebControls 
    Imports System.Web.UI.WebControls.WebParts 
    Imports System.Web.UI.HtmlControls 
    Imports FISDesktop.Framework 
    
    Namespace BindRptrToDictTestWebCS 
        Public Partial Class _Default 
            Inherits System.Web.UI.Page 
            Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) 
                If Not IsPostBack Then 
                    Dim ClientFields As FISDesktopSerializableDictionary(Of String, String) = ew 
                    FISDesktopSerializableDictionary(Of String, String)() 
                    ClientFields.Add("Custom Property 1", "FieldValue1") 
                    ClientFields.Add("Custom Property 2", "") 
                    
                    Repeater1.DataSource = ClientFields 
                    Repeater1.DataBind() 
                End If 
            End Sub 
            
            Protected Sub Repeater1_ItemDataBound(ByVal source As Object, ByVal e As RepeaterItemEventArgs) 
                Dim lblLabelName As Label = DirectCast(e.Item.FindControl("LabelName"), Label) 
                Dim lblFieldValue As Label = DirectCast(e.Item.FindControl("FieldValue"), Label) 
                lblLabelName.Text = DirectCast(e.Item.DataItem, System.Collections.Generic.KeyValuePair(Of String, String)).Key 
                lblFieldValue.Text = DirectCast(e.Item.DataItem, System.Collections.Generic.KeyValuePair(Of String, String)).Value 
            End Sub 
        End Class 
    End Namespace

  3. #3
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    Re: Can some one tell me what will be the code in vb.net?


  4. #4

    Thread Starter
    Member
    Join Date
    Nov 2006
    Posts
    63

    Re: Can some one tell me what will be the code in vb.net?

    [QUOTE=FourBlades]Something close to this:
    test1

  5. #5
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Can some one tell me what will be the code in vb.net?

    The code for what?

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Can some one tell me what will be the code in vb.net?

    I can only assume that one of these is true:

    1) The OP edited the original post to remove the actual question.

    or

    2) FourBlades is some kind of psychic.
    My usual boring signature: Nothing

  7. #7
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    Re: Can some one tell me what will be the code in vb.net?

    Sometimes I do surprise myself, but not to that extent.
    The original post was edited.

  8. #8
    Fanatic Member Lerroy_Jenkins's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    661

    Re: Can some one tell me what will be the code in vb.net?

    I think this is some sort of Forum Posting test?

    If so there is a whole area on this forum for you to go there and test postings to see how they all work.
    Lerroy

    "η β π", or "Eta Beta Pi" (Eat A Better Pie)

    01001000
    01000101
    01001100
    01010000


    My Own Code - WordCounter

    Useful Forum Links -Reputation - What is it?

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