Tuesday, April 26, 2011

show and hide buttons or link while printout page

javascript funtion
function ShowHelp(id) {
document.getElementById(id).style.display = "block";
}
function HideHelp(id) {
document.getElementById(id).style.display = "none";
window.print();
setTimeout("ShowHelp('aprint')", 3000);


}
function HideHelp1(id) {
document.getElementById(id).style.display = "none";

setTimeout("ShowHelp('imgbtdelorder')", 3000);


}


calling on button click

a id="aprint" onclick="javascript:HideHelp1('imgbtdelorder');javascript:HideHelp('aprint');" href="JavaScript:window.print();">Print this page a

Saturday, April 23, 2011

2 querysting on postback event of linkbuton

asp:LinkButton ID="lbtprname" runat="server" PostBackUrl='<%# "Description.aspx?Productid="+Eval("ProductId")+"&ProductTypeID="+protypeid %>'

Sunday, February 27, 2011

On Mouse Over show image

function ShowHelp(id) {
document.getElementById(id).style.display = "block";
}
function HideHelp(id) {
document.getElementById(id).style.display = "none";
}


on .aspx page

onmouseover="javascript:ShowHelp('dvthumimage');" onmouseout="javascript:HideHelp('dvthumimage');"

On Mouse over show different image in javascript

function Bind(cControl, imgsrc) {
// t2_ovr.jpg.jpg

cControl.childNodes[0].src = imgsrc;
}
function Clear(cControl, imgsrc) {

cControl.childNodes[0].src = imgsrc;
}



on .aspx page

onmouseover='javascript:Bind(this,"<%# GetAppImagePath(Eval("Thumbnail_Rollover")) %>");' onmouseout='javascript:Clear(this,"<%# GetAppImagePath(Eval("Thumbnail"))

Saturday, February 26, 2011

Asp dotnet 2 yr. exp Interview Questions

Please visit this link for 2 yr. exp. interview questions.

http://www.dotnetcurry.com/ShowArticle.aspx?ID=63

http://dotnetprojectninterviewquestions.blogspot.com/

Wednesday, February 16, 2011

Friday, January 14, 2011

How to backup and restore database in mysql

Backup and restore database from mysql:
From Dos Command Prompt(First Go Inside-C:\Program Files\MySQL\MySQL Server 5.0\bin)
Then Fire command as like--
mysqldump -u root -psa1234 databasename > c:/databasename.sql

REstore:
mysql -u [uname] -p[pass] [db_to_restore] < c:/databasename.sql
mysql -u root -pSa1234 -D photochat < c:/photochat.sql