hi,
I have a problem. I create a button control in aspx page. when i will be click it print all contents.The button functionality will be write by aspx.cs page .what code i will be given this functionality is excuted

can u explain wat exactly u want again,the query u gave is not clear.

hi,
I was design one aspx page its have button control and Gridview control ext.. The button control text was print .When i will running the aspx page the page was loaded when i click the print button running page content print in my printer . I used visual studio2005 web application using C# language is code behind .what code i include to the print button control

hi,
u can use javascript to achieve this
just use this function in the button click

print.attributes.add("onclick","javascript:return print();");

function print()
{
window.print();
}

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.