CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 6/30/2007 12:04:21 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 31 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
mebinici
Asp.Net User
Can you access a partial class objects, variables, ect. from a class in App_Code?6/30/2007 12:04:21 AM

0/0

Hello, I hope this makes sense. What I want to do is setup a Sub Procedure that will contain some the values of control.

 For instance, I want to use this only once in a my class and call it where need be.

Dim TopNavBar1 As HtmlImage = CType(PageHeader.FindControl("TopNavBar1"), HtmlImage)
TopNavBar1.Src = "/Images/image1.gif"
But, I keep receieving errors that TopNavBar1 is not set to an object.
How would I be able to accomplish this, or am I stuck and have to write this method on all my code behinds that need it?
 Thanks!
 
Benson Yu - MSF
Asp.Net User
Re: Can you access a partial class objects, variables, ect. from a class in App_Code?7/3/2007 6:01:17 AM

0/0

Hi mebinici,

This issue is similar to the one I have replied before. Please refer the link below. I hope it is helpful to you.

how to refer a class from different folder
http://forums.asp.net/t/1127846.aspx

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Can you access a partial class objects, variables, ect. from a ... Can you access a partial class objects, variables, ect. from a class in App_Code ? Last post 07-03-2007 2:01 AM by Benson Yu - MSFT. ...
Joshua Folkerts public partial class _Default : BasePage <- Default now derives from Base Page ... You can bypass the tutorial by Downloading the Code HERE ...
TheMSsForum.com >> Asp >> web.config section replacement - The ... Data Partial Class Question3 Inherits BasePage And I get the error: Parser ..... i need to know how I can access a session variable in an asp page if the ...
Understanding XML Web Services Historically speaking, accessing remote objects required ..... NET class name from the underlying WSDL name, you can update the [WebService] attribute ...
TheMSsForum.com >> Asp >> Howto inherit from an exisiting ... Access is denied.] FooWebsite.FooPage.Page_Load(Object sender, EventArgs e) +0 ...... AFAIK you can put this class in the app_code folder. A "better" idea ...
Creating Web Services You can pass any object you create based on a custom class or ..... created this file, you need to copy it to the App_Code directory so that the class is ...
Inline Script inside an ASP.NET AJAX UpdatePanel - Infinities Loop public partial class InjectJS : System.Web.UI.Page .... you can get the new HTML from the newhtml variable (window.newhtml) and set it on some placeholder ...
ng.borland-forums.borland-public-cppbuilder-thirdpartytools - Fix ... can you access a partial class objects, variables, ect. from a class in app_code ? accessing my website(intranet) even though my firewall is on ...
Single Source for the Latest AJAX Jobs and Info -- AJAX Reporter He replied: Well, in VS2005 you can create a class library which will build against the ..... JavaScript performance - access to global variables [part 1] ...
SubSonic: All your database are belong to us - Issue Tracker If you create a partial class that adds some additional properties to a ...... Added bogus variables. In VB you can't do something like this in one line: ...




Search This Site:










passing values from content page to user control on master page

i can't execute the codesmith files

set cookie for membership provider

do you have to worry about thread.currentprincipal when you create your own generic principal class? forms authentication related

introducing beta 2.0

do not complie

protecting all pages in a site

compilation problems with request.querystring

question! signinbtn - hitting enter/return

error with deployment of visual studio 2005 installer

hold the login while redirecting pages.

adding page doesn't work

basic question about accessing user-based data.....

sql server 2005 uninstallation issue

i have problems with the installation from dotnetnuke

debugger stop does not stop!

tabindexes on new post/article pages

sqlsitemapprovider v.s xmlsitemapprovider

how to add javascript to the body tag in dnn

using controls in usercontrols with codebehind.

benefit of using membership class with active directory users

multiple matser pages using a common code base?

dotnetnuke 2.0

c# cs2005 shortcut to close a window

timetracker for dnn3.x

streaming audio/video repository module

general access denied error (using adsi)

how to get all user by role

auto login users using forms authentication

edit profile and update command for replicating profile data to sql 2005 table

 
All Times Are GMT