"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Friday, April 30, 2010

Add text Into image or WaterMark in asp.net C#

Hi everybody.2day morning i visited a matrimonial website 2 c new updated chicks :).Then i noticed this stuff they are giving the website name above the pic on mouseover (DHTML).so i tried to implement that Text over Image And i Done.

Here I'm giving the documentation 'n Everything that i done on this project hope it help u :)
so lets start from DataBase Create a table Like this pic


so here I'm saving my Image as binary form in database so that i can easy play with pixel's that the plus point i feel 

here comes my Store Procedure


come lets move to C# Coding  :)

first i save the image to database using simple code 
to save my image to binary from i need to convert this image to binary stream for that purpose i need to import a namespace using system.io; and i done coding in this way


so v have saved the image to database.now v need to display it.Lets create a new Page to display.

 To display a image from database v need to a webservice (ashx file) so the coding on webservice file is like this
the text to be display should be given in this webservice file 
ok here comes our output
Picture we Uploaded


When V display that pic from database



Then it's the time to download the source code is it? :) Click Here

Always implement more that i done,so i can implement more that u done :)

Have a nice day... 'N happy Coding :)
 Microsoft Windows 7 UltimateMicrosoft Windows 7 Ultimate UpgradeMicrosoft Windows 7 Anytime Upgrade [Home Premium to Ultimate]

Virtual Keyboard In Jquery for both asp.net 'n Php

Hi, Today I'm posting a virtual keyboard using Jquery It's very simple use 'n we can implement it in both asp.net 'n PHP. Design is looking not that much nice.but we can change it by modifying existing css on it.And download it by click Here
Have a nice day... 'N happy Coding :)

Microsoft Office Home and Student 2007
Microsoft Office Ultimate 2007 FULL VERSION [DVD]Microsoft Office Professional 2007 FULL VERSIONMicrosoft Office 2000 Small Business

Thursday, April 29, 2010

Programmatically determine if a Windows Service is running and stop it

The ServiceController class makes it easy to retrieve information about a windows service and manipulate it. Here’s some code. Before running this example, make sure you have added a reference to System.ServiceProcess


Make sure you have permission to stop the service or else you will get an exception.

Have a nice day... 'N happy Coding :)

How to access a control in the masterpage ?

Suppose you have a label control name lblMessage in your masterpage and you want to access the label control from one of your pages, you can do so using the following code

Ctype( Page.Master.FindControl(”lblMessage”),Label).Text = “Hello”

Have a nice day... 'N happy Coding :)

Adobe Dreamweaver CS4Adobe Dreamweaver CS5Adobe Dreamweaver CS4 Upgrade [Mac]

Tuesday, April 27, 2010

Using JavaScript to DropDown for Hover Effect on MouseOver

An HTML SELECT can be programmatically dropdown on MouseOver using JavaScript. On MouseOut, we can get the SELECT to its default positions. Here's how to do it

Monday, April 26, 2010

Calculate Age in Years using C# or VB.NET

In my last project i need to do some age calculation workz beacuse of that i create a function hope it may use for u some where ... Have a Happy Coding...

Saturday, April 24, 2010

Display an Image when the GridView has no data

 you must be already be familiar with the GridView’s EmptyDataText property which displays a message to the user when there are no results returned from the GridView control’s data source.

Now instead of a text message, if you need to display an image or any HTML/ASP.NET control, you can use the EmptyDataTemplate. In this snippet below, we are using the image control in the to display an image.









Friday, April 23, 2010

Copy text from one textbox to another through javascript



Here In this script i'm trying to show you how to copy the text from one text box to another with out using any server event. In the image i have hilighted to things one is txtemail and txtusername .i need to copy txtemail to txtusername here i'm using  txtemail.clientid id for to get a unique id for that textbox same as txtusername and i created a function named functiononetexttoother() i'm calling that function on onkeyup event of txtemail. it's working perfectly and i'm saving someone timee too