如何在论坛中发布时动态创建ASPX页面? [英] How to create ASPX Page Dynamically while posting in forum?

查看:93
本文介绍了如何在论坛中发布时动态创建ASPX页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

告诉我在论坛中发布问题时动态创建ASPX页面的步骤。[例如:如果你在http://www.dotnetspider等论坛中发帖提问。 com,它将为该单个问题创建一个新的ASPX页面。





考虑在论坛中发布问题的三个用户,动态页面可以创建如下:



1)

http://www.dotnetspider.com/forum/333876-How-to- convert-below-encode-string-to-string.aspx



2)

http://www.dotnetspider.com/forum /333875-How-to-show-the-selected-value-from-drop-down-from-one-page-into-another.aspx



3)

http://www.dotnetspider.com/forum/333874-calendar-format-dashboard-am-already-maked-but-i-need-to-make-like-score.aspx < br $> b $ b



请给我解决这个问题的方法。





[注意:如果用户在帖子上发布了如何托管等问题在iis中的应用程序,动态页面将创建为

http://www.dotnetspider.com/forum/333874-how-to-host-the-application-in-iis.aspx 。 ]

Hi sir,
Tell me the steps to create ASPX Page dynamically while posting the question in forums.[For example: If you post a question in forum like http://www.dotnetspider.com , it will create a new ASPX page for that single question.


Consider the three users posting the question in forum, dynamic page can be created as below:

1)
http://www.dotnetspider.com/forum/333876-How-to-convert-below-encode-string-to-string.aspx

2)
http://www.dotnetspider.com/forum/333875-How-to-show-the-selected-value-from-drop-down-from-one-page-into-another.aspx

3)
http://www.dotnetspider.com/forum/333874-calendar-format-dashboard-am-already-maked-but-i-need-to-make-like-score.aspx


Kindly give me the solution for this problem.


[Note: If user post the post the question like "how to host the application in iis", the dynamic page will be create as
http://www.dotnetspider.com/forum/333874-how-to-host-the-application-in-iis.aspx. ]

推荐答案

页面不是动态创建的,而是页面的内容。

假设我有一个包含所有内容的页面我需要通过一些控件显示在该页面上的信息,例如Label,Listview,Grid等。



所以而不是动态创建整个新页面,只需创建一个页面并在其中加载问题详细信息并使用请求 - 响应机制。



将所有问题都存储在具有唯一ID的数据库中,然后获取所有使用该ID的数据并将其加载到页面的控件上。

要通过URL访问该问题,请在页面的URL中附加问题ID或该问题的任何唯一信息,例如,

www.MyQnAForum.com/Question/ QuesId = 245



它会节省工作量,内存空间并为您提供性能。一个数据库操作 - 就是这样。

想一想:)



希望你能清楚这一点。



-KR
The page is not created dynamically here but the content of the page is.
Let's say I have a page that contains all the information that I need to be shown on that page via some controls i.e Label, Listview, Grid etc.

So instead of creating entire new page dynamically, just create one page and load the question details in it with request-response mechanism.

Store all of your questions in database with unique ID, and fetch all of the data using that ID and load it on the page's control.
And to access that question via URL, append Question ID or any unique info of that question in page's URL for example,
www.MyQnAForum.com/Question/QuesId=245

It would sace the workload, memory space and give you the performance. One database operation - that's it.
Think about it :)

Hope this much is clear to you.

-KR


这篇关于如何在论坛中发布时动态创建ASPX页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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