473,288 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,288 software developers and data experts.

How to bind to Profile with DataBinder.Eval()

Is it possible to use the DataBinder.Eval(object, string) method to
bind to the Profile? I want to pull a specific property value from the
Profile ... can't get it to work:

DataBinder.Eval(Profile, "UserName")

Any help would be appreciated.

May 12 '06 #1
1 1461
Probabaly the best approach would be to use the ObjectDataSource and have
your data access class access the profile.

-Brock
http://staff.develop.com/ballen

Is it possible to use the DataBinder.Eval(object, string) method to
bind to the Profile? I want to pull a specific property value from the
Profile ... can't get it to work:

DataBinder.Eval(Profile, "UserName")

Any help would be appreciated.

May 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: A Traveler | last post by:
Hi, I have a custom collection class i wrote, LineItemsCollection, which is a strongly typed collection of objects of my LineItem class. The LineItem class is a simple class with just a couple...
3
by: MrMike | last post by:
Hi. I have a dataset on my webform which I successfully fill by calling a Sub that occurs after the Page_Load. My question is - I have a textbox control which I need to populate with the contents...
3
by: Bob Lehmann | last post by:
Hi, I'm trying to bind an ArrayList to a DataList. I get the error DataBinder.Eval: 'System.String' does not contain a property with the name Name. I don't know what property of ArrayList...
7
by: ibiza | last post by:
Hi everybody, Is there a way to convert a value with Bind()? I have a decimal(5,4) data that I retrieve from DB, which represents a percent. For example, 50% is represented as 0.5000. When I...
5
by: Jaybuffet | last post by:
a custom object. Similar to how I bind a collection of objects to a repeater. Is there a way to bind a single object to a Table? I could use a repeater, but seems over kill for a single object....
1
by: Donald Adams | last post by:
How can I use Eval or Bind with 2 values? The following does not work: <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='Workitem.aspx?ID=<%# Eval("ID", "{0}") %>&WID=<%# Eval("PIID",...
2
by: Santosh | last post by:
Dear all i want to bind data to datagrid header template i am wrtting follwing code it is displaying data with in item template not but it is display data in header template <asp:DataGrid...
3
by: Ganesh Muthuvelu | last post by:
Hello, I am trying to use the new "Bind" instead of "DataBinder.Eval" but cannot see a way to use it in code. Can someone help?. Here is my code that is using "DataBinder.Eval" which I want to...
0
by: imranabdulaziz | last post by:
Dear all, I am using asp.net, C# , Sql Server 2005. I am using datalist control and bind it like <ItemTemplate> <tr> <td align =left > <asp:ImageMap...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.