最新评论

不会飞的猪 2011-12-21 15:01
学习学习
zzokki 2011-01-19 15:59
这只是个纯手工的过程,那我在程序中怎么应用呢? 手动加密之后,程序如何读取呢?
John Liu 2009-03-17 16:34
解密后肯定是明文的了。
cklll 2008-07-18 16:28
很适用。。。
求知无傲 2008-06-25 09:12
mark
Leon916 2008-03-08 13:14
博主,我再用ajax的时候出现了“/MagicAjax”应用程序中的服务器错误,不知道怎么配置,请赐教!
4094 2008-02-14 16:39
--引用--------------------------------------------------
xu: 有一个问题想请教一下:
为什么用MAGIC AJAX 每次只能一次成功操作,在PANEL 里的(自定义控件)按钮点第二次就没又反映了,极度郁闷中. 望高手能帮忙解决一下~
--------------------------------------------------------
wlzxdm 2007-07-26 17:42
楼主大哥写的很好,不过那个闪烁的Loading真的去不了。。
^-^Roping.Zong 2007-04-14 11:04
好的!
老男 2007-02-01 11:28
你好:我加密后再解密,解密用aspnet_regiis -pd "connectionStrings" -app "/Myweb" 的形式,但是解密后web.config里的字符串又变为明文的了,咋搞?
文炽城 2007-01-12 17:36
这貌似只能在.net2.0版本才能用吧``
我在1.1下面不能使用``
canbo[匿名] 2006-11-21 12:07
用magicajax自定义js函数的方法如下:

AjaxCallHelper.WriteAddHiddenFieldScript("nodeid",nodeid);
AjaxCallHelper.WriteAddHiddenFieldScript("IpAddress",ipaddress);
AjaxCallHelper.Write( "ShowOtherWind();");
潘胜国 2006-11-02 16:35
在xp下面,我注册失败是怎么回事,我把后面的用户名改成aspnet照样不行?
楼主能帮忙解决一下吗,是不是在XP下就不支持呢?
Lantaio 2006-09-15 12:16
惭愧,最近几天才研究加密的问题。参考了你的这篇日志,十分感谢。不过文章最后关于自定义密钥容器的解密好像不需要 -prov "MyProvider" 参数的。
菌哥 2006-09-13 19:17
/Myweb"是的web目录,如果是Windows应用程序如何写目录呢?
在 2006-08-05 18:17
xu 2006-07-31 09:34
有一个问题想请教一下:
为什么用MAGIC AJAX 每次只能一次成功操作,在PANEL 里的(自定义控件)按钮点第二次就没又反映了,极度郁闷中. 望高手能帮忙解决一下~
sky_ing 2006-06-16 11:01
请问,怎么样把 右上角的 "loading"闪烁的灰框去掉呢?
SoCooLQ 2006-05-25 12:22
@听棠.NET

试试这句:

MagicAjax.AjaxCallHelper.WriteAlert(string message);
SoCooLQ 2006-05-25 11:13
@听棠.NET

在。NET里Response.Write("<script>....</script>");不行吗?
出错原因是什么?
SoCooLQ 2006-05-25 11:11
直接把JS文件存问为UTF-8格式也可以可以解决中文出现乱码问题!!
三月 2006-05-25 09:29
private byte[] GetLegalKey()
{
string sTemp = Key;
mobjCryptoService.GenerateKey();
=========================================
可以说说
GenerateKey()哪里来吗
谢谢哦^_^

byte[] bytTemp = mobjCryptoService.Key;
int KeyLength = bytTemp.Length;
if (sTemp.Length > KeyLength)
sTemp = sTemp.Substring(0, KeyLength);
else if (sTemp.Length < KeyLength)
sTemp = sTemp.PadRight(KeyLength, ' ');
return ASCIIEncoding.ASCII.GetBytes(sTemp);
}

三月 2006-05-24 15:31
加密之后:
配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。

分析器错误信息: 未能使用提供程序“RsaProtectedConfigurationProvider”进行解密。提供程序返回错误信息为: 打不开 RSA 密钥容器。

源错误:


行 2: <configuration>
行 3: <appSettings configProtectionProvider="RsaProtectedConfigurationProvider">
行 4: <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
行 5: xmlns="http://www.w3.org/2001/04/xmlenc#">
行 6: <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />



怎么办呢
jason.zhang 2006-04-11 15:29
使用freetextbox不就好了?为啥还要费力开发这些东西?我觉得这么难用的话,用的人会多吗?
陌生海岸 2006-03-01 17:01
关注。。。。
azhai 2006-02-17 10:06
自从MA 0.2.x发行以来都不能支持JS的中文,比如把JS脚本中的那个"Loading ..."换成"数据加载中 ..."后,再运行时出现的那个条就是乱码。如果更改编码格式页面又会乱掉。

哈哈,下载MA的源代码包,打开MagicAjaxModule.cs文件,看到
protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpContext context = ((HttpApplication)sender).Context;

// Init private fields
_threadAbortExceptionThrown = false;
_request = context.Request;
_response = context.Response;


// Create a new context and add it to the items collection for later retrieval
// by MagicAjaxContext.Current
_magicAjaxContext = new MagicAjaxContext();
HttpContext.Current.Items.Add(MagicAjaxContext.ContextKey, _magicAjaxContext);

// Check if the request is for the embedded AjaxCallObject.js script
if (context.Request.RawUrl.EndsWith("AjaxCallObject.js.aspx"))
{
context.Response.ContentType = "text/javascript";
object cachedAjaxCallObjectJs = context.Cache["__CACHED_AJAXCALLOBJECT_JS"];
if (cachedAjaxCallObjectJs == null)
{
//read and output the embedded AjaxCallObject.js file from the manifest
using (System.IO.StreamReader reader = new System.IO.StreamReader(typeof(MagicAjaxModule).Assembly.GetManifestResourceStream("MagicAjax.script.AjaxCallObject.js")))
{
cachedAjaxCallObjectJs = reader.ReadToEnd();
}
context.Cache.Insert("__CACHED_AJAXCALLOBJECT_JS", cachedAjaxCallObjectJs);
}
context.Response.Write(cachedAjaxCallObjectJs);
context.Response.Cache.SetExpires(DateTime.Now.AddYears(1));
context.Response.End();
}
}

噢,这样呀,让它支持GB2312不就行了。

protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpContext context = ((HttpApplication)sender).Context;

// Init private fields
_threadAbortExceptionThrown = false;
_request = context.Request;
_response = context.Response;
_response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");

// Create a new context and add it to the items collection for later retrieval
// by MagicAjaxContext.Current
_magicAjaxContext = new MagicAjaxContext();
HttpContext.Current.Items.Add(MagicAjaxContext.ContextKey, _magicAjaxContext);

// Check if the request is for the embedded AjaxCallObject.js script
if (context.Request.RawUrl.EndsWith("AjaxCallObject.js.aspx"))
...

加入了_response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");

编译Release文件,然后再使用这个新的DLL就OK了。


听棠.NET 2006-02-15 09:20
在MagicAjax里如何输出客户端脚本呢?我用Response.Write("<script>....</script>");不行的!!!真不知道如何做?
azhai 2006-01-30 22:52
再加一个定时刷新的:
...
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//每10秒刷新
MagicAjax.AjaxCallHelper.SetAjaxCallTimerInterval(10000);
}
this.Label1.Text = DateTime.Now.ToString();

}
....