Questions tagged [late-bound-evaluation]

6 questions
12
votes
5 answers

How to call extension methods using Eval in a databound control

I have a simple extension method on the int type so I can do the following: string timeLength = 61.ToTime() // timeLength will be "1:01" This works great in code, but I want to use this extension method in a Repeater Template. When databinding I…
12
votes
5 answers

C# - Disable Dynamic Keyword

Is there any way to disable the use of the "dynamic" keyword in .net 4? I thought the Code Analysis feature of VS2010 might have a rule to fail the build if the dynamic keyword is used but I couldn't fine one.
2
votes
0 answers

VB.Net 2013 How do I programatically update a bindingsource without getting late binding errors/warnings?

I created a DataSet with a DataTable & TableAdapter that contains Select/Update/Insert/Delete commands that relate to my MSSQL database. The DataTable selects all the fields from a Person table (two fields in particular a LastName string and an…
1
vote
1 answer

late code evaluation with late variable binding?

You can postpone code execution : In [12]: v = 5 In [13]: e = ' v * 2 ' In [14]: eval(e) Out[14]: 10 I would like to do late evaluation of normal python code w/o assigning it to a string ? Is there a technique to do this ? closures ? __call__…
sten
  • 7,028
  • 9
  • 41
  • 63
0
votes
2 answers

Trying to embed a DataItem within an asp:Image control's ImageUrl property

I have the following Image control within a repeater. I'm trying to get the username to render in between ~/profilepics/ and .jpg but I get the following rendered…
user76071
0
votes
2 answers

Enabling Databound List Items in DropDownList

I have a drop down list that is being used in an EditItemTemplate of a DetailsView, and it is being populated from a SqlDataSource, and I am binding the selected value as follows:
Ken Ray
  • 2,500
  • 3
  • 21
  • 28