|
Hi .Net techies,
this is kiran, i have developed a web application (ASP.Net,C#) for PDF Files using iTextShap. I got all the things what i want, except one situation where i need to restrict the client "saving the pdf file".
I have given a hyper link to the pdf file. For that i wrote javascript function in that i used this code
window.open('PDF file path');
when the pdf file is opened upon client requiest(i.e. on clicking the hyperlink) i am able to restrict the client for printing but unable to restrict Saving of pdf file.
if any body have an idia regarding this plz help me.
thanks
regards Kiran.
|
|
|
|
|
If they are able to access the file from aserver they will be able to save it, end of story.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
drag and drop layers and customize my home page as i like ,how make that ?
|
|
|
|
|
This is a very complex javascript system. You should check out some of the free libraries available like the Yahoo Ajax library.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
I am using some functions and css styles in my page. All these are working well with IE but not with others.
Plz show me the way sothat all my functions and css styles work in same manner with different browsers like IE,Mozilla etc.
Plz Help Me
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
When you find out please let me know, I will be very greatfull because it is this topic that I have dedicated 2 years of my life.
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
Please don't cross post.
---
single minded; short sighted; long gone;
|
|
|
|
|
Amit for .NET wrote: Plz show me the way sothat all my functions and css styles work in same manner with different browsers like IE,Mozilla etc.
Don't use them.
No, seriously, that's currently the biggest (unsolved) problem of web developement. There's no one-fits-all-solution.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
This is one of the biggest problem. But one has to take care of the issue while developing.
I would suggest you to look at the sites like
www.csszengarden.com and www.jobsbridge.com and follow the way the sites are designed.
you have to have some knowledge of css 2.0. get the css of these sites and study them.
Hope the tips will help.
Thanks,
Pradipta Basu
|
|
|
|
|
Hi all,
I am new to the world of web site creation but would like to have a go !
I have been hunting around the web for a basic asp.net 2.0 template. All I want is a template that uses a master page and has a header and side bar. The msdn website had some but they all had huge gaps down either side of the page. I feel this is a terrible waist of screen space !
I would be most grateful if some one could create / point me in the direction of a good website template to set me on my way
Thanks Lots !!!!
John
|
|
|
|
|
What sort of site is it going to be?
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
Just a general play with websites ! dont think i will ever put it live!
I could just do with a basic template to get me started ! A blank screen is quite daunting
Thanks
John
|
|
|
|
|
I would advise using notepad and some simple HMTL. Build a practice site and then hone certain skills. I would recommend http://www.htmlgoodies.com[^] for beguinner information
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
or w3schools.com. I agree, get your head into HTML and CSS first, too many web application developers know nothing about client-side stuff.
|
|
|
|
|
I almost recommended w3schools.com, but the w3c and I have some unfinished business. And this is one of the reasons that ASP is something I loathe, too many developers never understand the client server realationship and all the other little things that go together to make the internet work.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Does anyone know why when I run this script on my page for a "TD" tag:
<br />
BackgroundImage = document.getElementById('SomeTD').style.backgroundImage;<br />
if(BackgroundImage.toLowerCase().indexOf('.png',0) != -1){<br />
ImageAddress = BackgroundImage.substr(BackgroundImage.toLowerCase().indexOf('(',0) + 1, BackgroundImage.toLowerCase().indexOf(')',0) - 2);<br />
document.getElementById('SomeTD').style.backgroundImage = 'none';<br />
document.getElementById('SomeTD').style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + ImageAddress + '\', sizingMethod=\'scale\');';<br />
}<br />
It does the job perfectly, but it makes all the element(like button and textbox) in this table cell ("TD"), disabled and they are not click able or even the flashing cursor in textbox is not shown and you can not type in it?!
Sojaner!
|
|
|
|
|
Because basically the filter creates an image of what the element looks when it's rendered with the filter effect, and shows that instead of the element.
---
single minded; short sighted; long gone;
|
|
|
|
|
So, how could I deal with this stupid ie problem?
Sojaner!
|
|
|
|
|
You could try to put the background on one element and the controls in another element, and position the elements absolutely so that the controls display on top of the background element.
---
single minded; short sighted; long gone;
|
|
|
|
|
actually i am develpoing a site please tell me How can i provide the facility to upload 5-10 mb files using ASP.NET 2.0 and VB.NET please help me yaaaar....
Feroze
|
|
|
|
|
fmlove wrote: poing a site please tell me How can i provide the facility to upload 5-10 mb files using ASP.NET 2.0 and VB.NET please help me yaaaar....
This is a very complex matter if you are going to do it securely.... Perhaps you should purchase a 3rd party tool.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Please don't cross post.
I have answered this question in the ASP.NET forum.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
<HTML>
<HEAD>
<SCRIPT language=Javascript>
<!--
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<INPUT id="txtChar" onkeypress="return isNumberKey(event)" type="text" name="txtChar">
</BODY>
</HTML>
Thanks in advance.
|
|
|
|
|
|
Have you posted the EXACT CODE YOU ARE USING?
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|