在Visual Studio模板中添加数据 - 初学者,超级简单 [英] Adding Data in Visual Studio Template - beginner, super easy

查看:174
本文介绍了在Visual Studio模板中添加数据 - 初学者,超级简单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对编程和一切都很陌生。我在Visual Studios中使用模板(使用C#) - 我设法个性化一些标题,标题等。但我真正的问题是如何将我自己的数据/内容放入页面。

在samplesatasource.cs文件中找到代码等,我认为这是我应该放在我自己的内容中的地方。

我是否需要创建我的每个页面都有自己的文件?我该怎么做呢?



谢谢

I'm completely new to programming and everything. I am using a template in Visual Studios(Using C#) - I've managed to "personalize" some titles, headings etc. but my real issue is how to put my own data/content into the "pages".
In sourcing out the code etc in the sampledatasource.csfile, I THINK this is where I'm supposed to put in my own content.
Do I need to create my own file for each page? How do I do this?

Thanks

推荐答案

如果您使用设计网页Asp.Net ,然后您可以检查这些模板是否必须有一个 Aspx 页面。



Aspx 页面上,您可以通过放置内容 Aspx 控件和客户端脚本代码来自定义它。

< code> .aspx.cs页面后面的代码中,您可以放置​​服务器端代码,该代码将按照控件的行为。



您将在 Code Project 和Google上找到许多关于如何开始构建网站和网站的初学者文章应用程序使用 Asp.Net c#
If you are designing web pages using Asp.Net, then you can check that those templates must be having one Aspx Page.

On that Aspx page, you can customize it by putting your contents, Aspx controls and client-side scripting codes.
On the code behind <code>.aspx.cs page, you can put the Server side code, which will be executed as per the controls' behaviour.

You will find many beginner articles on Code Project and Google on how to start on building websites and web applications using Asp.Net c#.


如果您正在讨论使用ASP.NET创建网站,那么您应该看一下 http://www.asp.net/ [ ^ ],你会发现很多有用的资源,您还可以阅读一些 CodeProject文章 [ ^ ]。
If you are talking of creating a web site with ASP.NET then you should look at http://www.asp.net/[^], where you will find lots of useful resources, and you could also read some of the CodeProject articles[^].


这篇关于在Visual Studio模板中添加数据 - 初学者,超级简单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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