如何在网站上使用班级文件? [英] how use class file in website?

查看:88
本文介绍了如何在网站上使用班级文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我想在我们的网站上使用课程文件. 请引导我.

在此先感谢您.

Hello Friends,

I want to use class file in our website.how it can possible.
Guide me Please.

Thanks in Advance.

推荐答案

您在App_Code下添加文件

添加新的.cs文件. (类文件.)

you add a file under App_Code

add new .cs file. (class file.)

public class CLASSNAME



然后您可以在应用程序内的其他文件上调用它



then you can call it up on other files within the app

CLASSNAME.WhatEverYouPutInsideIt



应该出现在智能感知上.

祝你好运.



should come up on the intellisense.

good luck.


可能是

<a href="http://www.itorian.com/articles/aspdotnet/post/1065339597-Using-Class-File-in-ASP-NET%5C1065339597-Using-Class-File-in-ASP-NET.aspx">try this this link solve my problem</a>[<a href="http://www.itorian.com/articles/aspdotnet/post/1065339597-Using-Class-File-in-ASP-NET%5C1065339597-Using-Class-File-in-ASP-NET.aspx" target="_blank" title="New Window">^</a>]


这篇关于如何在网站上使用班级文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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