Do U AJAX?,Tags,Asp.Net
(lol)
Category Archives: the BLOG
Testing Syntax Highlighter
SQL:
[code=sql]
select * from test
update test set a=’b’ where a=’a’
delete from test;
[/code]
C#:
[code=c#]
protected void Page_Load(object sender, EventArgs e)
{
// Connect to the Database
MySqlConnection myConnection = new MySqlConnection(ConfigurationSettings.AppSettings[“SQLConnectionString”]);
string SQL_QUERY = “SELECT * FROM table”;
MySqlCommand myCommand = new MySqlCommand(SQL_QUERY, myConnection);
myConnection.Open();
rptRSS.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConnection);
rptRSS.DataBind();
myConnection.Close();
}
[/code]
HTML:
[code=html]
?
? | |
![]() |
![]() |
+ wELCOMe + IE 6.0 +
1024×768
***
***
***
[/code]
XML:
[code=xml]
-
-
-
-
-
-
-
-
-
-
-
-
-
使用js读取url中的参数
我在我的blog中使用了这个函数,用javascript读取url的参数,并且传递给server端的程序,从数据库中取得对应的数据。
感觉很有成就感,以后就可以直接把日志的URL直接发给朋友了,比如这篇( [url]http://www.doyouajax.com/default.aspx#id=38[/url] )
hoho
(lol)
[html]
[/html]
新增加了 "运行代码" 的UBB
新增加了 “运行代码” 的UBB
Server端的代码写得很乱,基本上是用正则表达式替换实现各类UBB的,但是考虑到[CODE]和[HTML]标签中可能出现与UBB代码冲突的情况,用了很多判断和临时存储变量。。。也许一开始我的思路就是错的。。。:'(头晕ing
不多说了
测试一下先
hoho
[html]
Configurations | Dual 1.8GHz | Dual 2GHz | Dual 2.5GHz |
---|---|---|---|
lipeng | M9454LL/A | M9455LL/A | M9457LL/A |
mapabc | Dual 1.8GHz PowerPC G5 | Dual 2GHz PowerPC G5 | Dual 2.5GHz PowerPC G5 |
地图名片 | 900MHz per processor | 1GHz per processor | 1.25GHz per processor |
图秀卡 | 512K per processor | 512K per processor | 512K per processor |
[/html]
Added Friendly Link…
增加了 友情链接 的功能
顺便测试1下 ARCHIVE 有没有用。。。(lol)
edit:看来是有用的。。。lol
div下图片自适应解决方法
Ajax Blog Bug Fix
This bug occurs when navigating thru months after reading an article.
[b]Sympton: [/b]Each time clicking previous month/next month, the CAPTCHA image page is reloaded.
[b]Cause: [/b]After reading an article,we click the cross on the top right corner to *close* the article panel. But as a mater of fact, the panel is not literally *closed* and disposed,it is just hidden from the user.
[b]Fixie: [/b] Hide the article panel and set the innerHTML of the panel to String.Empty.
AJAX Bug(?) and Next Step.
I have tested my blog and to my relief the bug known as “scripting error after consecutive clicks (submits maybe?)” doesn’t appear to exist on this system.(lol)
But of course there’s a lot yet to be done.
Next step is to add a functionality that creates a static page of the content when I post a new article.This is essential because it is a known fact that traditional AJAX technology is not “search engine friendly” since searching bots/crawlers are not expected to follow javascripts.
Upload Functionality Added…
Yes I’m lazy…I confess…
I used an IFrame and embeded the upload.aspx file in the IFrame so that it uploads files without refreshing the entire page but we all know this is just a hack.
But I will get it done asap,I promise.8o|
(lol)
ps. Glad to see that my virtual host provider *finally* decided to assign a full priority to ASP.NET user. I’d been suffering from the lack of sufficient write priority during the past few weeks.(W)
Added an Archive Feature,but…
Yes the *archive* allows you to review you back posts in chronicle order,which is extremly useful when you have a ton of information.
But ironically,alghough I have tried out some five or six blogging systems,none of them ever lasted for more than half a year.
I don’t know what the life span of this one will be but I sure hope it will last long and I hope than I can perfect it gradually.(G)