|
Your making this tougher then it is. I would not try to print one section of a page via javascript. Just create a new page with only the content that you wish to print. For example if you want to print only a gridview copy and paste your grivdview into a new aspx page. On page load (re-load the grid) and then print.
Good luck.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks ToddHileHoffer for suggestion.
Is using javascript for a new window that contains that gridView not a good idea
instead a new aspx page that contains printable contents(gridview).
I got almost I wanted to do except one thing that is, if GridView has multiple pages how can I print all pages using a single click. Right now I have to visit every page of that Grid View and then print.
If u have any better and simple idea that can print all pages of GridView, please post me. I will be highly thank full to u.
Bye
Bajrang Singh
Using .net 2.0 (VS2005)
|
|
|
|
|
Turn paging off on your print page. That will lead to the problem of page breaks. You could add a counter in the itemDatabound event in the grid (along with a template column) you could add a page break via .css every 15 records or so. http://www.htmlgoodies.com/beyond/css/article.php/3470341
Although I've never tried that.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks ToddHileHoffer for suggestions.
I am using BoundFields not the template column, So please tell me how can I insert a page break after each 15 records using BoundFields.
Thanks Again. Bye
-- modified at 4:18 Wednesday 4th July, 2007
Bajrang Singh
Using .net 2.0 (VS2005)
|
|
|
|
|
Hi,
I want to get the list of Languages to fill Drop Down List. Can anyone tell me how to get Languages's List.
Shahzad Aslam
Software Engineer
|
|
|
|
|
Languages in the World.
Regards,
Satips.
|
|
|
|
|
Hi all,
I wrote a code which sends a mail message. I my office it works fine with the company`s mail server but at home when i use localhost all the mails get collected in inetpub/queue.What settings do i have to change????
|
|
|
|
|
It is common practice for ISPs to block outgoing SMTP traffic - this may be what is causing your SMTP server to fail to send the messages. Check your ISPs policies.
|
|
|
|
|
R u using localhost as smtp?? or any smpt isp??
|
|
|
|
|
Ya, i m using localhost 4 sending mails.Do u know what settings 2 change??
|
|
|
|
|
see for local host smtp mail will not work.
Smtp need a smtp port..
For local server you need to use System.Web.Mail it will work..
Best luck
|
|
|
|
|
I have to open a Word Document in an ASP.Net applicatio. However I do not want the client to download or even open the document on the client machine. The document should be opened at the server and the user should be able to Save the document back to the server. Also, I am not sure which version of MsOffice the client will be using.
I am not able to find a way to make this happen. Please help me.
|
|
|
|
|
|
Thanks, Satips for your time,
But I have tried using the Word object provided by .Net earlier. The problem that arose was it opened Word Application and then opened the document I asked for.
Is there some way in which I can open the document within the browser itself? This is because I have to provide some buttons, etc for further processing.
Please tell me if you have a possible solution.
Thanks again
Vineed
|
|
|
|
|
I want to print content of a table in database. I am using report but the print button in reportviewer don't work in aspx page.
Is it a better solution?
Ya Mahdi!
|
|
|
|
|
I have a solution for you. Learn how to program if you want to pretend to be a programmer.
I didn't get any requirements for the signature
|
|
|
|
|
excuse me. What you mean?
Mahdi 82
|
|
|
|
|
|
hi friends
i did javascript url validation.like this http://www.codeproject.com
but i give like this http://www.codeproject.it is also accepted.now i need
any body did not give .com..org it is also show the error
can u help me
regards
saravanan
|
|
|
|
|
Where is your code that you are using to validate? Could you post it so someone could help you?
I didn't get any requirements for the signature
|
|
|
|
|
this is my code
function check_it() {
var theurl=document.myForm.t1.value;
var tomatch= /http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/
if (tomatch.test(theurl))
// if (checkMailId.test(theurl))
{
window.alert("URL OK.");
return true;
}
else
{
window.alert("URL invalid. Try again.");
return false;
}
}
regards
saravanan
|
|
|
|
|
saravanan05 wrote: var tomatch= /http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/
^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}[0-9A-Za-z\.\-]*\.[0-9A-Za-z\.\-]*$
try with this code.
Regards,
Satips.
|
|
|
|
|
|
Where the URL validation is carried out in this link?
Please post the correct link.
Regards,
Satips.
|
|
|
|
|
Hai there,
I'm using database connection in my ASP.NET application without store proceedure. Before each operaion i'm begin the transaction and commit transaction. Connecton open and close everything is fine. But sometime i'm getting TIMEOUT EXPIRED error. Would anyone plz give suggestion
Adv and Thks
Sam.M
|
|
|
|