Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2005

Tip: Looking for answers? Try searching our database.

AddHandler Problem. Urgent. Thank You Very Much.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shapper - 28 Oct 2005 21:35 GMT
Hello,

I have the following functions:

Sub Config(ByVal tb As TextBox, ByVal fd As String)
 ...
 AddHandler textBox.DataBinding, AddressOf Me.BindData
 ...
End Sub

Sub BindData(ByVal sender As Object, ByVal e As EventArgs)

 Dim tb As TextBox = CType(sender, TextBox)
 ...
tb.Text=DataBinder.Eval(container.Item.DataControllerRow.DataSourceItem,
fd)

End Sub

My problem is how to use the fd value received in Config function inside
my BindData function. I am giving problems in making this work when
using AddHandler...

Can someone, please, help me?

Thank You,
Miguel
Shapper - 29 Oct 2005 01:52 GMT
Please,

Can somebody help me?
I can't figure out how to use a variable's value inside DataBind
function when that variable is declared in Config function.

I am using AddHandler and that is why i don't know how to solve this.

Thanks,
Miguel

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.