Ask a Question related to ASP.NET General, Design and Development.
-
Access a Class properties/methods from a .aspx file ?????
Hi
I have written a class (Vb.net) which supposed to write out page title, img
URLs and other stuff.
I can access the class methods and properties easily through the .vb page
But how do I change the things on the .aspx file via the class eg
--------------- .vb file --------------
Dim pageTitle as string = ""
Dim objSiteStyle As New SStyle()
objSiteStyle.NewStyle()
pageTitle = objSiteStyle.pageTitle
objSiteStyle.Nothing
--------------- .aspx file --------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>[WRITE OUT THIS VIA THE CALSS pageTitle ]</title>
'<<<<<<<<<<<<<HELP
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
</form>
</body>
</HTML>
Guest
-
Get Class from Aspx-File
Hi, Is it possible to get the "ClassType" from a Filename to a .aspx file? I would like to access a class from an another page, knowing the... -
Screen, Form & Slide Class Methods/Properties
Help All I'm trying to do is get the name of the current screen. I modified code that I found from a Macromedia architect in these forums... -
#26350 [NEW]: Inherited methods can't access private methods
From: forseti at oak dot rpg dot pl Operating system: Windows 98 SE PHP version: 5.0.0b2 (beta2) PHP Bug Type: Zend Engine 2... -
Instance- and class-variables (was mixing in class methods)
Hi -- On Thu, 2 Oct 2003, Gavin Sinclair wrote: Ummm, what array? :-) I think you'd need something like: class Project class << self... -
how to add aspx and the class file separately in VS.NET?
I'm looking at the source code of the ASP.NET forum sample application. It has the "code-behind" classes compiled into a separate DLL, totally... -
sky #2
Re: Access a Class properties/methods from a .aspx file ?????
Thanx mate
vQuick reply
That took me ages to work out
"abacnet" <abacnet@hotmail.com> wrote in message
news:ukwOM3hVDHA.624@TK2MSFTNGP10.phx.gbl.....aspx> 1-First of all your class must be accessible in the code behind of thepage> page
> 2-Use a page level protected variable in your code behind .vb page
> (protected mstrTitle as string="")
> 3-In the page load, or anywhere that you find suited for your case, add
> .....your working vb code and don't forget to assign value to the title
> string
> mstrTitle = objSiteStyle.pageTitle
> 4-In the HTML part of your .aspx page do inherit the string
> <title><%=mstrTitle%></title>
>
>
> <skynet@system-gone-soft.com> wrote in message
> news:hBBVa.2175$Id1.229849@newsfep2-win.server.ntli.net...> img> > Hi
> > I have written a class (Vb.net) which supposed to write out page title,> > URLs and other stuff.
> >
> > I can access the class methods and properties easily through the .vb>> > But how do I change the things on the .aspx file via the class eg
> >
> >
> >
> > --------------- .vb file --------------
> >
> > Dim pageTitle as string = ""
> > Dim objSiteStyle As New SStyle()
> > objSiteStyle.NewStyle()
> > pageTitle = objSiteStyle.pageTitle
> > objSiteStyle.Nothing
> >
> >
> > --------------- .aspx file --------------
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <HTML>
> > <HEAD>
> > <title>[WRITE OUT THIS VIA THE CALSS pageTitle ]</title>
> > '<<<<<<<<<<<<<HELP
> > <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
> > <meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
> > <meta name="vs_defaultClientScript" content="JavaScript">
> > <meta name="vs_targetSchema"
> > content="http://schemas.microsoft.com/intellisense/ie5">
> > </HEAD>
> > <body MS_POSITIONING="GridLayout">
> > <form id="Form1" method="post" runat="server">
> > </form>
> > </body>
> > </HTML>
> >
> >
> >
> >
> >
>
sky Guest



Reply With Quote

