473,320 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Calling Class in ASP.Net

mac
Hi!

Please help me on this, What is the code when calling or referencing a
class in ASP.Net
just like for example in windows forms. the coding is just like this.
Dim frm as new form1
form1.showdialog

Please help me on this topic,
Thanks and regards

May 2 '06 #1
4 939
If you are talking about calling a class, as opposed to a form, the syntax
is the same:
Dim aaa as new someclass
aaa.somemethod
If you mean referencing another form, you have to understand that asp.net
serves one form (page) in the time.

Eliyahu

"mac" <ma************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi!

Please help me on this, What is the code when calling or referencing a
class in ASP.Net
just like for example in windows forms. the coding is just like this.
Dim frm as new form1
form1.showdialog

Please help me on this topic,
Thanks and regards

May 2 '06 #2
DWS
mac,
You can do it. Its exactly the same!
dim someclass as new someclass
someclass.whatever

Good Luck
DWS
"mac" wrote:
Hi!

Please help me on this, What is the code when calling or referencing a
class in ASP.Net
just like for example in windows forms. the coding is just like this.
Dim frm as new form1
form1.showdialog

Please help me on this topic,
Thanks and regards

May 2 '06 #3
What have you tried that doesn't work ? This is the same language. It works
the same way (of course you woan't use the same classes to create your
pages)...

--
Patrice

"mac" <ma************@hotmail.com> a écrit dans le message de news:
%2****************@TK2MSFTNGP04.phx.gbl...
Hi!

Please help me on this, What is the code when calling or referencing a
class in ASP.Net
just like for example in windows forms. the coding is just like this.
Dim frm as new form1
form1.showdialog

Please help me on this topic,
Thanks and regards

May 2 '06 #4
"mac" <ma************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi!

Please help me on this, What is the code when calling or referencing a
class in ASP.Net
just like for example in windows forms. the coding is just like this.
Dim frm as new form1
form1.showdialog

Please help me on this topic,


You call and/or reference a class in Webforms exactly the same way as you do
in Winforms - it's the same language.

Obviously, though, you don't open a Web form using the above syntax - that's
not what you're asking, is it...?
May 2 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: jarmopy | last post by:
Hi, I have made a service with C# and calling that service class from another C# program with remoting. (Referendes from the calling program) That service class is configured so that garpage...
7
by: Klaus Friese | last post by:
Hi, i'm currently working on a plugin for Adobe InDesign and i have some problems with that. I'm not really a c++ guru, maybe somebody here has an idea how to solve this. The plugin is...
5
by: Dave Veeneman | last post by:
I'm using inheritance more than I used to, and I find myself calling a lot of base class methods. I generally call a base method from a dreived class like this: this.MyMethod(); I'm finding...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
12
by: Ron | last post by:
Greetings, I am trying to understand the rational for Raising Events instead of just calling a sub. Could someone explain the difference between the following 2 scenarios? Why would I want to...
2
by: sumanthsclsdc | last post by:
Hello friends, I have a problem, I implemented a class which uses tkinter and displays the window as required, the class will create a window with listbox and inserts some items into it, I...
6
by: Anthony Smith | last post by:
I can call a class using "->", but it complains about the :: I see on the net where :: is used. Is there a good explanation on when to use one over the other or the differences? $help = new...
10
by: Finger.Octopus | last post by:
Hello, I have been trying to call the super constructor from my derived class but its not working as expected. See the code: class HTMLMain: def __init__(self): self.text = "<HTML><BODY>";...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
0
by: Emile van Sebille | last post by:
mercado mercado wrote: Well, the class name is in __class__ so changing 'print x' to 'print __class__' will show foo in both cases, which is in fact the name of the class which is calling it....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.