如何创建一个类并运行它. [英] How to create a class and run it.

查看:84
本文介绍了如何创建一个类并运行它.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是asp.net的新手.我使用的是Visual Studio 2008(C#,而不是VB).我主要使用的是Visual Web Studio.有3种方法可以创建哪种方法是正确的,并且主要是使用.
我知道对于app_code下的更多应用程序dll文件和单个应用程序cs文件,都将使用.

创建dll文件并在控制台应用程序上运行.
直接创建控制台应用程序并运行.
在app_code中创建一个类,并在aspx页面中创建该类的对象,然后调用该方法.

I new to the asp.net.I am using visual studio 2008(C# not VB).Mostly I am using visual web studio.There are 3 way to create which way is proper and mostly using.
I know that for more application dll file and for single application cs file under app_code is used.

create dll file and run on console application.
Directly create console application and run.
Create a class in app_code and create a object of that class in aspx page and call the method.

推荐答案

您要求的内容超出了CodeProject的格式.您需要先接受一些基础教育.您可以自己做.

您需要先阅读基本的C#和编程课程以及Visual Studio入门.之后,您将能够提出一些更适合CodeProject问答的问题.没有快速解答可以取代常规教育.

请在这里查看我的建议:我有问题与我的程序.请帮忙! [
What you ask is beyond the format of CodeProject. You need to get some elementary education first. You can do it yourself though.

You need to read basic C# and programming course and introductory Visual Studio first. After that, you will be able to ask some Questions more appropriate for CodeProject Questions-and-Answers. No Quick Answers can replace some regular education.

Please see my recommendations here: I have a problem with my program. Please help![^].

—SA


这篇关于如何创建一个类并运行它.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆