|
It's always urgent.
Your chance of getting an answer is increasing if you don't use the word "urgent".
Howabout:
Response.ClearContent()
Response.ClearHeaders()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.HeaderEncoding = System.Text.Encoding.Default
Response.BinaryWrite(MemoryStream.ToArray)
Response.End()
MemoryStream.Dispose()
|
|
|
|
|
Hi all...
i'm developing a website which is having all html pages..
when i navigate from one page to another url address of the site should not change...what should i do...?
i'm using anchor tag and hyperlink for navigation.
can you please give me idea on this...
Thank You...
siri
|
|
|
|
|
Why don't you want the URL to change? This is a fundamental feature of web sites.
|
|
|
|
|
for my current requirement i should not change the url...
any ideas please...
siri
|
|
|
|
|
I would seriously consider changing that requirement - hiding the URL will do nothing other than annoy people using your site and prevent them from bookmarking anything other than the front page. From a personal point of view if I came across a site that tried to do such a thing I'd just not use it.
As someone else has mentioned you can 'fake' it by using frames. Alternatively you could use Flash or some other similar technology. Both would make poor websites with zero advantage.
|
|
|
|
|
Its a while since I used them, but I think this can be done with frames (NOT iFrames).
Bob
Ashfield Consultants Ltd
|
|
|
|
|
A "dirty" but working solution is to save all html documents with the aspx suffix and exchange all links with linkbuttons having server.transfer(url) in the codebehind
|
|
|
|
|
i mentioned that i' m using html pages not aspx pages.
siri
|
|
|
|
|
Hi,
I am connecting via a web service. The response object returns XML data in a string value. How do I get the element values of this string?
Ideally I would like to load it into a dataset but it is not a physical file that I can just read from.
Thanks
Brendan
|
|
|
|
|
Hi use this
string message = "<?xml version='1.0' encoding='utf-8'?><Test><Parent><Child1>100354050</Child1><Child2>Jaffer</Child2></Parent></Test>";
DataSet ds = new DataSet();
StringReader sr = new System.IO.StringReader(message);
ds.ReadXml(sr);
|
|
|
|
|
Hi everyone, I just built a website by using VB2005 and ASP.NET. I published it and tested the publish version by using VB as back suppourt. The web running well. But when I set to the local server. Login successful, but the button Add / Edit user are always failed, and I changed one user's password, the message shown to it's successful. But when Login again, I still need to use the old password. It seems like the whole database not updated by itself. But once I using VB to view in browser, it can works well. Does anybody can help me to solve this problems??
Thanks a lot
|
|
|
|
|
I can run an external java script through browser addressbar to third-party's certain webpage, how can I run script when a page open with no toolbar and addressbar.
|
|
|
|
|
FireBug (or FireBug Lite). Google it.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Hi,
I have a huge product feed, it's about 28MB big. When I try to open it with a web browser then my whole pc hangs. Even with Notepad. Does anyone know of a decent program that I can use to open the large XML file without lettingm y whole PC hang?
And secondly, what is the best way (via C# code) to read this file and to get the values extracted?
Thanks
Brendan
|
|
|
|
|
Try a HexEditor, like HexEdit - they are very good at opening large files for reading/writing, although of course you get the hex output on the left side of the page. Might still be worth a try though.
For your second question you might want to try the ASP.NET forum, assuming you are writing your program for this.
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
|
|
hi all,
I want export the pdf file.and I am using following code.In my system .But an error is displaying like adobe readercould not open 'down.pdf' because it is either not a supported file type or because the file has been damaged...
DataSet Ds = FillGrid2(sessionvalue, cid, cmid, crid, pid, sdate, edate);
Response.Clear();
Response.AppendHeader("Content-Type", "application/pdf");
Response.AppendHeader("Content-disposition", "attachment; filename=Download.pdf");
string str = "<table style='border:1px solid #000000;'>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Client: </b>" + client + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Campaign: </b>" + campaign + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Report Summary</b>" + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td>" + "Type" + "</td>";
str += "<td>" + "Impression" + "</td>";
str += "<td>" + "Clicks" + "</td>";
str += "<td>" + "Start Date" + "</td>";
str += "<td>" + "End Date" + "</td>";
str += "</tr>";
for (int i = 0; i < Ds.Tables[0].Rows.Count; i++)
{
str += "<tr style='border:1px solid #000000;'>";
for (int j = 0; j < Ds.Tables[0].Columns.Count; j++)
{
str += "<td>" + Ds.Tables[0].Rows[i][j].ToString() + "</td>";
}
str += "</tr>";
}
str += "</table>";
Response.Write(str);
If anybody knows please reply me..
thanks...
Raaj
|
|
|
|
|
You seem to be creating a HTML table, pretending it's a PDF file, and then hoping the browser can handle all the minor complications of converting it to a real PDF file?
|
|
|
|
|
please give me the solution.
Raaj
|
|
|
|
|
Try this [^], it should give you all the information you need.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
You cannot convert HTML to PDF by simply saying that it's a PDF file. I'd suggest taking some time to investigate exactly what HTML and PDF are, why they are different, and how you would use a server-based solution to convert from one to the other. As someone else has suggested, Google will undoubtedly be your friend here.
|
|
|
|
|
Hi Guys,
I am about to start working on timezone application now, but I don't know yet if which is best of the two.
I need your comment and suggestion. What I really need is an application that will accept a datetime and then will be converted into the desired timezone.
What do you think is good for this particular task - http://www.codeproject.com/KB/vb/TimeZoneInfo.aspx or PublicDomain Olson TimeZone ?
Thanks
hifiger2004
|
|
|
|
|
After Vista sucked down and injected SP1 onto my machine all of my previously working web apps are hemorrhaging with the following error:
Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007000d
Config Error
Config File
Requested URL http://localhost:80/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
Something has changed in SP1 that doesn't agree with my configuration but I have no clue what it is.
I did everything on the Microsoft KB with no luck http://support.microsoft.com/kb/942055/[^]
EDIT: You can use %windir%\system32\inetsrv\appcmd.exe list config to check if your config file is corrupt (no errors here)
EDIT: This[^] forum post mentions a resolution. One of the applications in applicationHost.config had applicationPool="" which is invalid. Specificying an applicationPool fixed the issue. Phew.
Todd Smith
modified on Wednesday, September 24, 2008 4:27 PM
|
|
|
|
|
Hi all,
I am writing a simple webpage that uses an iframe to contain information from multiple content-pages. The iframe is located inside a div with the following specs (in css):
#Plaza2
{
position: absolute;
left: 30px;
right: 25px;
top: 130px;
bottom: 25px;
overflow: auto;
text-align: left;
margin: 0;
padding: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #000000;
}
The iframe itself is said to be 100% of the width and height of its parent:
#iframe
{
position:relative;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
The actual html is:
<div id="Plaza2">
<iframe src="txt/0101.htm" name="content" id="iframe" frameborder="0" scrolling="auto">
Sorry, your browser does not support iframes.
</iframe>
</div>
All this works as expected in Firefox, however in IE7 the height of the iframe gets stuck at some 150 pixels or something. The funny thing is that the width does extend to 100% of the div. Only the height does not.
I have also set the height of the body (both the main page as well as the page included in the iframe) to 100%. Does not make any difference.I could of course set the iframe to a fixed height, but this way everything neatly sizes with the browser window.
Does anyone have any suggestions please???
Regards,
William.
|
|
|
|