|
function PrintPage() {
printWindow = window.open("../xyz.pdf");
printWindow.print()
}
it's open the page but not print the page
|
|
|
|
|
jintalPatel wrote: printWindow.print()
Is not correct. Its an instance of open page.
window.print() is the command that works via JavaScript.
You are opening a PDF, so this might not work, had it been a webpage you could had done something like:
w=window.open('about:blank');
w.document.writeln("<script>");
w.document.writeln("window.print()");
w.document.writeln("</"+"script>");
|
|
|
|
|
Hi guys,
I am trying to load a text file into an iframe but I am keep getting an "Bad Request" error message. I couldn't figure it out where the problem is. Could anyone please help me up.
pathFile="https://www.mysupport.com/myhosted/Data/MainFolder/testFolders1&Folder/t.txt"
<iframe name="fraContent" id="fraContent" src="<%=pathFile%>" width=20% height=265 FRAMEBORDER="10">
</iframe>
Thanks in advance
|
|
|
|
|
function setframeOriginal(url)
{
var eyeframe;
eyeframe = document.getElementById('RSIFrame');
eyeframe.src='You Path';
}
;
|
|
|
|
|
Thanks for replying but are you saying that i should explicitly assign value through the javascript. Do you thin it will make a difference? While I was assigning to the "scr" value of iframe.
I have realized during a simple test that only those files get loaded where there is no & or ampersand sign in found in the file path. How should i deal with this issue.
Thanks again
modified on Tuesday, June 22, 2010 11:14 AM
|
|
|
|
|
Hi - Quick question
I want to have a page that when the user hits it for the first time they get asked what region they are from - eg, europe, usa or australia.
I am lookng to set a cookie based on what region the user has picked on my page - so that the next time they come to the site they dont have to choose and are redirected to the appropriate site. Does anyone know how this would be done?
Thanks for your help
|
|
|
|
|
Try this[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Don't cross post - you've asked this in Quick Answers as well (where you have a response).
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Hello everybody.
I was requested to make an existing asp.net solution run on a test environment.
All the solution stuff is available on a SourceSafe server, but there are no .sln or .vbproj file in the repository.
As far as I guess, the solution is made up of a web application (*.aspx, *.vb, *.js, *.css, web.config, global.asax) and a web service (.asmx, *.vb). There are also folders and files regarding AJAX Control Toolkit.
The idea is to rebuild a .sln and two .vbproj files (one for the app, one for the web service), starting from an empty solution, adding manually all the file and creating all the references. But I fear this may be a long and tricky way.
Is there another way to rebuild the .sln or the .vbproj file?
Thanks,
Alberto
|
|
|
|
|
My assumption is that for opening the aspx or asmx files in Visual Studio, you need to have either the .sln file or .csproj (or.vbproj) required. Since both of them are not available, you try to open from VSS and build it again which will create the solution and project files , I mean adding all the files manually and all the corresponding references.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Thank for the reply,
but this is exactly what I want to avoid, I mean manually defining the project, adding references, resolving dependences... It's a hell.
A.
|
|
|
|
|
Ok. just try as below:
Open a blank solution from the New Project Types from Visual Studio templates. If it creates a new project solution file, then you can copy all the relevant files required to this folder and open it again.
I am not sure whether this will work or not, but give a try.
Thanks
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Can you open the folder as a website?
Open VS:
File -> Open -> Web Site
|
|
|
|
|
Hi all,
I have to import a xml file containing huge amount of data to be imported but before import I have to validate all data according to our system, if any tag has invalid value I have to show error message along with tag name and line number. for this I have used XmlDocument class of microsoft and validating each node through this class but I am unable to get line number of each node.
Can anybody suggest me how to get line number of node being processed using XmlDocument class ? or is there any other way to show line number ?
Thanks
Rohit
|
|
|
|
|
With XmlDocument you never get line number of file.
For that you need to use some different way, like StreamReader.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
What is hook to ajax ?
Is it possible to call a client script after execution of a ajax function ? if yes, how to achieve it, guide me a bit ?
thanks
|
|
|
|
|
This website is not a school. If you're new to 'something' you google it and try to figure out how it works. Then if you still can't get it to work, you post a specific question about your problem. Posting 'Is this possible and please write some code for me' won't give a response.
|
|
|
|
|
I just want a guidance, not a lesson.....okkkkk.
|
|
|
|
|
|
|
Hi ,
iam using asp.net2.0 with c# with backend sql server 2000.
in my database some user dosent have password (null)
and some user having password .when iam checking the user it is giving message invalid user or password.
can you correct my querry which helps me
SqlCommand cmd = new SqlCommand("select * from Usersprogrammer where UserName='" + txtusername.Text + "' and OrPassword='"+txtpassword.Text+"'", con);
|
|
|
|
|
This should do the trick if I understand your question correctly
string sQuery = "SELECT * FROM Usersprogrammer where ((UserName = '" + txtusername.Text + "') and ((OrPassword is null) or (OrPassword = '" + txtpassword.Text + "')))"
|
|
|
|
|
thanks for code project team ......
this logic helps me
|
|
|
|
|
|
Hi All ,
i am using freetextbox editor in my portal to give online editor. but i want to enable toolbar always but based on some i want readonly field in content .
thanks ,
amit
|
|
|
|