In this tutorial I am going to be teaching you how to make a sleek button using photoshop! I’ll be going through in very small steps so even the most novice user can follow along.
Step 1
First up create a new document – I’ve made sure that I have lots of room to work with so I chose 540 by 440 as my size.
Fill the background with a dark gradient or just a solid colour (Edit > Fill and use a colour like #262626) if you don’t know how.
Step 2
Create a new layer (Layer > New > Layer). Select the rounded rectangle tool and use the settings below.
Left click somewhere in the middle...
Prevent SQL Injection Attacks –part 1.
On July - 8 - 2009
What is a SQL Injection Attacks? A SQL Injection attack is a form of attack that comes from user input that has not been checked to see that it is valid.There are two main types of attacks. First-order attacks are when the attacker receives the desired result immediately, either by direct response from the application they are interacting with or some other response mechanism, such as email. Second-order attacks are when the attacker injects some data that will reside in the database, but the payload will not be immediately activated. I will discuss each in more detail later in this article.
There...
Gossip Bombs Away
On July - 7 - 2009
May 19th, 2009
I can barely keep my eyes open after what was an extremely busy and strenuous week. You’re welcome for all the juicy gossip I gave you. You know I had to reward my faithful readers with something for these past four loyal years. Hope I didn’t disappoint…
Graduation day was here and all our favorites were ready to pomp and circumstance and do whatever it was that graduating seniors do. It seemed like our kids were leaving Constance and St. Jude’s unlike how they arrived: quietly. That was until I decided to go out with a bang. Sorry. But I just had to do something to liven...
open pdf files in new window with javascript
On July - 7 - 2009
Opening documents such as PDFs in a new window should be automated using JavaScript for the following reasons:
Users will often close the web browser when a PDF is opened, mistakenly believing the document has been opened in Adobe Reader
The attribute historically used to open a new window, target, has been removed from the HTML 4.01 Strict specification (it’s now deprecated)
Opening a new window is a behaviour and should be moved to the behavioural layer11.
Using JavaScript can also be particularly useful when a website is content managed. Rather than having to rely on site editors...
Learn how to create stored procedures in SQL Server 2000 and make use of them in ASP.NET pages
On July - 1 - 2009
Introduction Stored procedures are T-SQL statements that are stored in the SQL Server. They are executed by calling their names, as in our case, from ASP.NET pages. They add more efficiency and compactness to the code. Imagine what it’d cost in terms of server performance if we were to send with every request to the SQL Server, a set of 5-10 T-SQL statements, which the SQL Server would have to parse and compile and then execute. This will be performance heavy. Now, compare this with the performance of a pre-compiled set of high performance code that is kept on the SQL Server and executed...
how to read XML file with asp?
On July - 1 - 2009
in this article,we will study how to reading xml file with asp.
first: what is xml file ?
XML is tag based just like HTML. there is a example:
<?xml version=”1.0″?>
<boot>
<name>Faisal Khan</name>
<name></name>
<name/>
<name language=”US-EN”>Faisal Khan</name>
</boot>
second: we save the xml file named “aspreadxml.xml”, and we will reading this xml with asp. we can get the xml document elements and attributes.
the code like this:
?View Code CSHARP1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml...
Is Your Liver Working Like It Should?
On June - 29 - 2009
So many people that are concerned with improving their health over look the health of their liver. The liver is called LIVE -R for a reason. The reason is the liver is involved with digestion and assimilation. It processes nutrients to give life to your body, to repair diseased and damaged tissue. It removes toxins and eliminates pathogen from getting into the blood that flow to all of your body cells.
Over 27,000 people every year die from chronic liver diseases and Cirrhosis. People with diabetes have a high number of deaths from liver deterioration. Over 60,000 people die from liver failure....
Make an menu bar use photoshop
On June - 29 - 2009
Step 1.
Start off by making a new Photoshop document. Choose the rounded rectangle tool, set the radius to 12 pixels, and create a wide rounded recntalge, as shown below, It doesn’t matter what colour it is because we’ll be creating a gradient with the shape next.
Step 2.
Choose dark maroon (6f1300) for the foreground color and a lighter shade for the background color (c82e00). Make a selection (select > load selection) using the rectangle
a)
b)
Step 3.
Choose the linear gradient, cirlcled in green (a).
Open the gradient editor, by clicking on the sample gradient, and choose...
Exploring ASP.NET Pages
On June - 29 - 2009
Explore ASP.NET pages and dig into some of their core functions, such as page events and properties, and directives.
Alive!!! It’s alive!!…The page is ALIVE!!!!!
I don’t want to sound like a nag or like I’m harping on the same issue over and over, but ASP.NET is really about events and objects. The ASP.NET page is no exception. It is an object in the eyes of ASP.NET just like anything else. It has properties and methods and can be interacted with, similar to the other objects you’ve seen so far, and the plethora of things to come as you move through the remainder of...
convert image to byte[] int asp.net,and convert byte[] to image.
On June - 14 - 2009
in this article,wo will learn how to convert images to byte arrays, how to convert byte[] back into images:
first:
convert images to byte arrays
?View Code CSHARP1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// <summary>
/// convert image to byte[]
/// </summary>
/// <param name="filePath"></param>
/// <returns></returns>
public byte[] PhotoToBytes(string filePath) {
FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read);
BinaryReader...
easy ajax by use jquery
On May - 8 - 2009
In this article,we will get date from use ajax with jquery.First we must include jQuery in the head of our page,here is the jquery website.
The code like this:
?View Code CSHARP1
<script type="text/javascript" src="js/jquery-1.3.2.min.js" ></script>
once we done this,and we can begin to work using AJAX in Jquery.
?View Code CSHARP1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$.ajax({
type: "get",//define the type of request for example: POST/GET.
dataType:"html",//format the data being received is in. (HTML, XML, JSON, script etc..)
...
How to bind datatable to a TreeView control?
On May - 8 - 2009
TreeView control is a powerful server-control for rendering TreeView UI.I will bind a datatable to a treeview contriol,here is the code:
aspx:
?View Code CSHARP1
2
<asp:TreeView ID="TV_Department" runat="server" OnSelectedNodeChanged="TV_Department_SelectedNodeChanged" ExpandDepth="6" width="240px" BorderWidth="0px" BorderColor="White" BackColor="White" LineImagesFolder="~/TreeLineImages" NodeWrap="True" ImageSet="Msdn" NodeIndent="10">
</asp:TreeView>
cs:
?View...





