如何使用c#将网页动态添加到asp.net应用程序 [英] how to dynamically add web pages to your asp.net application using c#

查看:66
本文介绍了如何使用c#将网页动态添加到asp.net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是瑜伽士.我的问题是我想在运行时在页面中提供这么多的详细信息,所以我想依次在多个页面中显示详细信息.信息可能会更大.因此建议我如何动态添加pges.紧急..

解决方案

嗯,是吗?首先,为您提供一些线索-对您来说很紧急,但对我们而言则不然.如果您想及时获得答案,则应以人们能够理解的方式提出问题.

动态添加页面的最佳方法是创建一个包含面板的页面.当您重定向到该页面时,请使用告诉其显示内容的查询字符串,可以使用具有内容的文本文件,也可以从数据库中提取内容,甚至只是在页面本身中创建内容. /blockquote>

最简单的方法是使用查询字符串

例如,如果查询字符串中的u pas page = 1,则u可能显示数据库中的前50行
然后单击下一页按钮,u递增1到2,因此该页面显示数据库中的51-100行

同样,上一页按钮可以减少数字,但是您必须放置条件,即它不会出现负数

您可以根据需要实现您的逻辑


Hi i am yogesh. my problem is that i want to so many detail informations in a page at runtime, so i want to show the details in multiple pages sequencially.Information may be much bigger.So suggest me how to dynamically add pges. Its urgent..

解决方案

Ummm, huh? First, a little clue for you - it''s urgent for you, but not for us. If you want an answer in a timely fashion, you should ask your question in a way that people will understand it.

The best way to add pages dynamically is to create a page that has a Panel in it. When you redirect to that page, use a query string that tells it what to show, you can use text files that have the content, or you can pull the content from a database, or even just create the content in the page itself.


easiest way is to use query string

for exapmle if u pas page=1 in query string u might show first 50 lines from database
then by clicking on next page button, u increment 1 to 2, so the page shows 51-100 lines from database

same way, previous page button can decrement the number, but u have to put condition also that it doesn''t go in negative

u can implement your logic as per need


这篇关于如何使用c#将网页动态添加到asp.net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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