By N2H

Jayce Ooi’s Paradise

Photography, programming, technology, finance, anything =)
Subscribe to Jayce Ooi's Paradise feeds

Yeah… My very first Wordpress Plugin has launched. It is use to outputs your blogroll links to a page or post. Just install the plugin and add the text <code><!–J-Links–></code> to a Page or Post then it will output your blogroll links.

Example,
Jayce Ooi’s Paradise Links

J-Links
Current version : 0.1
Download J-Links

Why ASP.NET Master Page Name Mangling is important? I did not know about it before I encounter some issue with JavaScript ID naming. I cannot run the JavaScript code due to wrong ID name.

For example, you create a button with ‘Button1′ as its ID. Its name will still be ‘Button1′ under normal HTML. However, its name changes if you use ASP.NET MasterPage. It will change to ‘ctl00$Button1′ from ‘Button1′. You can find that out when you see its source code using Internet Explorer / Firefox view source function.

(more…)

Here are some source code to pass DateTime JavaScript value to ASP.NET in C#. It is used to get client side date and time. It is useful for those who need to display client date and time instead of hosting server date and time.

Put these codes at HTML

<input type=”hidden” id=”hdClient” runat=”server” />

Put these codes at ASP.NET code behind

At Page_Load
Page.RegisterClientScriptBlock(”1″,
“<script type=’text/javascript’>
function goforit()
{var now = new Date();
var offset = now.getTimezoneOffset();
document.forms[0].hdClient.value = -offset}
</script>”);

ClientScriptManager manager = Page.ClientScript;
manager.RegisterStartupScript(this.GetType(), “CallSomething”, “goforit();”, true);

And…

Label1.Text =
DateTime.Now.ToUniversalTime().AddMinutes(double.Parse(Request.Form[”hdClient”])).ToString();

Hope this will help. :D

ASCII and Unicode

ASCII which known as American Standard Code for Information Interchange is a character encoding based on the English alphabet. ASCII codes represent text in computers, communications equipment, and other devices that work with text… ASCII has been incorporated into the Unicode character set as the first 128 symbols.
Find out more at http://en.wikipedia.org/wiki/ASCII

Unicode is an industry standard allowing computers to consistently represent and manipulate text expressed in most of the world’s writing systems. Unicode’s success at unifying character sets has led to its widespread and predominant use in the internationalization and localization of computer software. The standard has been implemented in many recent technologies, including XML, the Java programming language, the Microsoft .NET Framework and modern operating systems.
Find out more at http://en.wikipedia.org/wiki/Unicode

“Task Manager has been disabled by your administrator”. I have never see this before when I write this. Why administrator need to disable Task Manager? Anyway… Here are some solutions to this re-enable Task Manager again.

Solution 1:
Type this “REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 0 /f” command at Windows ‘Run…

Solution 2:
Use Registry Editor (Regedit.exe) to edit the DisableTaskMgr value from 1 to 0 which located at [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ System]

Solution 3:
Type “gpedit.msc” command at Windows ‘Run…‘. Under “User Configuration / Administrative Templates / System / Ctrl+Alt+Delete Options / Remove Task Manager“, change Remove Task Manager to Not Configured or just disable it.

All these solutions should help you solve “Task Manager has been disabled by your administrator” issue. :D

« Previous Entries  

Page 1 of 512345»

Archives

Chat Chat Chat...





Isabell Online Penang florist

Isabell Online Penang florist

Community links

edensitebar.jpg
Support WWF-Malaysia

Please support me...


Top Commentators