使用C#在textarea中打开aspx / aspx.cs文件 [英] open aspx/aspx.cs file in textarea using C#

查看:103
本文介绍了使用C#在textarea中打开aspx / aspx.cs文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#在textarea中打开aspx / aspx.cs / css文件??

如何在我的网站托管和运行时打开如何打开

如何改变编码...并保存它

i对此没有任何想法...

是否有可能...... ??

如果是的然后请给我一些想法的代码

how to open aspx / aspx.cs /css file in textarea using C# ??
how to open when my website is hosted and running on intenret
how to change coding...and saving it
i have no any idea for this...
is it possible...??
if yes then pls give me some coding for idea

推荐答案

是的可能



试试这样



Yes Possible

Try like this

string file = Server.MapPath("WebForm1.aspx");
           txtArea.Text = File.ReadAllText(file);


很有可能。浏览 http:// weblogs。 asp.net/lduveau/archive/2008/03/02/load-a-txt-file-in-a-textbox.aspx [ ^ ]。
It is quite possible. Go through http://weblogs.asp.net/lduveau/archive/2008/03/02/load-a-txt-file-in-a-textbox.aspx[^].


这篇关于使用C#在textarea中打开aspx / aspx.cs文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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