|
-
Dec 15th, 2007, 12:02 AM
#1
Thread Starter
Member
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.
-
Dec 15th, 2007, 12:55 AM
#2
Frenzied Member
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
-
Dec 15th, 2007, 12:56 AM
#3
Frenzied Member
Re: Can some one tell me what will be the code in vb.net?
-
Apr 2nd, 2008, 11:55 AM
#4
Thread Starter
Member
Re: Can some one tell me what will be the code in vb.net?
[QUOTE=FourBlades]Something close to this:
-
Apr 2nd, 2008, 11:57 AM
#5
Re: Can some one tell me what will be the code in vb.net?
-
Apr 2nd, 2008, 01:06 PM
#6
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
 
-
Apr 2nd, 2008, 06:17 PM
#7
Frenzied Member
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.
-
Apr 3rd, 2008, 03:35 AM
#8
Fanatic Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|