Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
FindControl in Class
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Teemu Keiski, post: 1927083"] You pass them as arguments to the function (or take them in class constructor) since DataSet is a reference type. You can have the method like this (assuming static here, you could also have instantiated class in case usage is different) Public Class DoesSomething Public Shared Sub fillout(dsArgument As DataSet) 'Using dsArguments End Sub End Class when in the code-behind you'd just have Partial Public Class FM Inherits System.Web.UI.Page Public ds As New Data.DataSet... Protected Sub Page_Load(sender as Object, e As EventArgs) 'call the method with ds as argument DoesSomething.fillout(ds) End Sub End Class -- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU [URL]http://blogs.aspadvice.com/joteke[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
FindControl in Class
Top