Thursday, December 30, 2010

Fix PNG Transparent on IE6 by CSS.

Eaxmple.
<span style="width:247;height:216px;display:inline-block;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png');">
<img style="filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" src="test.png" width="247" height="216" border="0" >
</span>


Reference : http://www.memo8.com/toolkits/archives/81

Held in the middle of next Flash Page Vertical.

Example Such as flash high 1,000 px wide 580 px.

Values must be determined by the width / height of the Flash.
- Width equal to the width of the Flash.
- Height equal to the height of the Flash.
- Margin-left half of the width of Flash and then add a minus sign (-) in prefix.
- Margin-top half of the height of the Flash and then add a minus sign (-) in prefix.

CSS
#container_flash{
position: absolute; width: 1000px; height: 580px; left: 50%; margin-left: -500px; top: 50%; margin-top: -290px;
}

HTML
<div id="container_flash"> Flash Here! </div>



Using CSS to set the height of the DIV height: 100%

Try adding overflow: hidden;

Example

.example{
width:500px;
height: 100%;
overflow:hidden;
}

IIS is not installed ,because the files are not found staxmem.dl_.

1. Click Start Menu>> Run>> type cmd.
2.Type the following command, and then tap Enter.
esentutl /p %windir%\security\database\secedit.sdb
3. the warning window comes up, press OK.
4. and then wait until the system is "Repair" finished

Now go back to install IIS again.

Reference: http://www.memo8.com/toolkits/archives/92

ASP.NET Error : The SELECT permission was denied on the object ‘table_name’, database ‘table_name’, schema ‘dbo’.

Error caused by the subject not Add Permission can be modified as follows.

1. Open SQL Server Management Studio.
2. Look at the Object Explorer (left).
3. Select the folder>> Security>> Logins.
4. Select the User to use. Right-click on the shortcut menu, select "Properties".
5. When the window see the Select a page (left side).
6. Select the Server Role to Check "sysadmin" Press Ok.

Wednesday, December 29, 2010

How to open the file of the ASP.NET Master Pages in Dreamweaver 8 Design view.

By the ASP.NET Master Pages is a Dreamweaver extension that master does not know if we will be the Open With Text Design can not be a way to make known Dreamwever master file extension is another way.

1. to go to "C:\Program Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes" If a Windows 64 bit, it changed its name to the Program Files Program Files (x86).
2. Find a file called "MMDocumentTypes.xml". Open a text editor program to edit the file
3. Once opened, then search for "ASP.NET_VB" and "ASP.NET_CSharp".
4. find the attribute named "winfileextension" notice will contain the value. aspx, ascx, asmx so we can add to the master. winfileextension = "aspx, ascx, asmx, master".
5. Close Dreamweaver and open a new again.

Good luck.



Reference : http://www.memo8.com/toolkits/archives/484

How to set a variable in web.config file of ASP.NET.

web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
. . .
<appSettings>
<add key="cfgWebTitle" value="Memo8.com" />
</appSettings>
</configuration>



Use (C#)
string cfgWebTitle=ConfigurationManager.AppSettings["cfgWebTitle"].ToString();
Response.Write(cfgWebTitle);


Reference : http://www.memo8.com/toolkits/archives/487

Action on the Rename or Delete Folder and Session Timeout in ASP.NET C #.

In ASP.NET 2.0 has added something called File Change Notifications (FCN) or Monitor Directory Directory Monitoring serves every time the Rename or Delete, so it will Restart Application Session State Storage InProc will also be deleted.

To see how the word, enter the Code below in the file "Global.asax.cs" The Events Application_Start () and using System.Reflection with the work it off as soon as the Application Directory Monitoring starts.

System.Reflection.PropertyInfo p = typeof(System.Web.HttpRuntime).GetProperty("FileChangesMonitor", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);
object o = p.GetValue(null, null);
System.Reflection.FieldInfo f = o.GetType().GetField("_dirMonSubdirs", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.IgnoreCase);
object monitor = f.GetValue(o);
System.Reflection.MethodInfo m = monitor.GetType().GetMethod("StopMonitoring", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
m.Invoke(monitor, new object[] { });

For those who are not used. Global.asax.cs. I explain a little offline.

Global.asax.cs file is a file called Global.asax Inherits come Again. Both files must be on top of the site only, I will. It describes the more "simple" Download to no better than this, I put the Code on the already offline.
Click here to download the Global.asax and Global.asax.cs.

When we put the Code, if the case already about this Error.

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Go to the web.config file to add the Code below.



<system.web>

<trust level="Full" originUrl=""/>

</system.web>


Refernce: http://www.memo8.com/toolkits/archives/492

How to fix ASP.NET Error Exception Details: System.InvalidOperationException: There is already an open DataReader associated with this Command which m

Add MultipleActiveResultSets = true in the ConnectionString.

<connectionStrings>

<add name="Default"

connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=MyDb;Persist Security Info=True;User ID=sa;Password=sa;MultipleActiveResultSets=true"

providerName="System.Data.SqlClient"/>

</connectionStrings>

Reference : http://www.memo8.com/toolkits/archives/503

Android "Error generating final archive: Debug certificate expired".

Why certificate expired may occur when a device SDK, and then we set the system date in Thailand it was a wrong certificate expired.

Solution is recommended by many web, go to delete the file. "Debug.keystore" If it is vista or 7 in the C: \ Users \ computer name \. android xp if it is C: \ Documents and Settings \ computer name \. android. Then change the language in control panel>> Regional and Language Options to English (United States), but the same error then try to find another way at all steam was stopped by the bottom offline.

Open command prompt and type.
keytool-genkey-keypass android-keystore debug.keystore-alias androiddebugkey-storepass android-validity 10000-dname "CN = Android Debug, O = Android, C = US".


certificate 10,000 days. Good!

Reference : http://www.memo8.com/toolkits/archives/570

Display Data Dictionary for PHP Mysql.

Just want to do Data Dictionary. but no server phpMyAdmin so I wrote a simple php up to Data Dictionary. I took the post on the site available for anyone to offline Download here

Reference : http://www.memo8.com/toolkits/archives/576

How to Share on Facebook Link to the Show Preview Thumbnail.

Facebook is to find the normal form already. But some cases, it can not find. (why??) I have to create them all.

To do this, create a Thumbnail image on the web and upload it, then put inside a Tag Tag Head.

Sample


<html>
<head>
<link rel="image_src" href="http://www.yourdomainname.com/image.jpg" />
</head>
<body> . . . </body>
</html>



Reference : http://www.memo8.com/toolkits/archives/623