|
Hi,
Without using any third party controls you can convert .aspx page output to pdf format
In the .aspx page put response.contenttype to "application/pdf" , It should be the first line before any lines like @page language=C# or vb
|
|
|
|
|
Hi
Im using Fusion Charts.
My problem is that i have a page that generates a chart BUT the page itself does not seem to be able to store the value of a variable. Cos I want to print out the objects values in a panel next to the chart.
It looks like the Fusion Chart uses Javascript, i dont know if this is the problem here.
What i think could solve my problem was if i could create a page within a page. So ie. my panel could be in one page and the chart in another.Kind of like Outlook. If this will help, will someone please help me out with how to go about doing this??
here is my code,in case problem is with the code:
string username;<br />
username = Request.QueryString["Username"];<br />
lblUsername.Text = username;<br />
PCUserDetails[] userArray = dbComponent.GetWeeksUsage(username);<br />
<br />
string xmlData;<br />
xmlData = "<chart caption='MP3 Usage For the Week' labelDisplay='ROTATE' slantLabels='1' formatNumberScale='0'>";<br />
<br />
foreach (PCUserDetails user in userArray)<br />
{<br />
xmlData += "<set label='" + user.LogonDate + "' value='" + user.Mp3FileCount + "' />";<br />
<br />
}<br />
xmlData += "</chart>";<br />
<br />
return InfoSoftGlobal.FusionCharts.RenderChart("FusionCharts/Column3D.swf", "", xmlData, "CountMp3Week", "400", "300", false, false);<br />
}
Thanks
|
|
|
|
|
I got this weird problem
1....mysql_query("run a query");
2....check if mysql_query fail
3....yes fail
4....log the mysql_error
5....redirect using "Header('Location: http://mydomain.com');"
6....else (query success)
7....redirect using "Header('Location: http://yourdomain.com');"
the problem is in line 5, php will not redirect because there's line number 4.
If we removed line 4, the page will redirect correctly.
in this case there's no error on the log files.
can someone help me out? thanx
Faris Madi
|
|
|
|
|
How do you log the error? You will only be able to log it directly to a file, not to the screen.
|
|
|
|
|
yes, I'm logging it into a file using error_log() function.
Faris Madi
|
|
|
|
|
What is the differnce between window.alert() and alert() methods in javascript?
Neeraj Rawat
|
|
|
|
|
None, really - all you're doing in the former is specifying the object hierarchy, which may (or may not) save a nanosecond in execution time.
|
|
|
|
|
Thank you very much Fred.
Neeraj Rawat
|
|
|
|
|
|
hey there is one difference I notice with RadAjax alert will work everywhever but if your Ajxamanger is in master Page and you are using the AjaxManger.windowalert it will have some problem.
|
|
|
|
|
Hi,
I need a deploy a project in the WebServer.
But before that I need to open port 2013 in the WebServer.
How do I open it?.
Please kindly reply me .
Thanks in advance
|
|
|
|
|
I need some objective questions on web designig basics and Internet.
|
|
|
|
|
hi all
i want to load exe file which is in program files Ex.'VPC32.exe' which is of Symantic Antivirus
when user access my url on load of page the exe will execute that time
the application is already installed on client machine
for that i used
function runcmd() <br />
{<br />
File = 'VPC32.exe';<br />
WSH = new ActiveXObject('WScript.shell');<br />
WSH.run(File);<br />
}<br />
<body onLoad="javascript:runcmd();"> <br />
but gives error as Automation server cant create object
please help me
"also how i can search that there is required application of that exe is installed on users system or not (if exist run exe) using javascript"
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
change the extention of the web page from .html
(or .htm) to .hta
|
|
|
|
|
Hi,
If you want to run an exe file , you can use asp.net processinfo class
Process p = new Process();
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe");
// this will open command prompt
psi.Arguments = " yourexefile.exe parmeter[1] parmeter[1] etc. ";
p.StartInfo = psi;
p.Start();
or you can use xp_cmdshell present in master database if you are using MS SQL as database to run the exe file
|
|
|
|
|
I see some web pages that exactly fit on the screen without the scrollbars appearing regardless of the resolution of the screen. I know that this is not done using the "width=100%" because when you reduce the size of the browser's window you see the page keeps its size and contents fixed. Even when you change the resolution while the page is open you see that the page still fits. How is this done ???
|
|
|
|
|
Using 100% width and min-width
|
|
|
|
|
I have not heard about that.? can u tell me what it is ?
|
|
|
|
|
|
Hi,
I am developing a web app using C# and asp.net. I am trying to incorporate the tooltips available here http://walterzorn.com/tooltip/tooltip_e.htm#browser into my project, specifically the ability to display an image when the user scrolls over an icon. It is easy to hardcode an image to display but I need to be able to change the image displayed by the icon, this is the code needed to display an image
onmouseover="Tip('Text with image.')"
So im just wondering if anyone has any ideas or suggestions…..
Thanks in advance
Tim
|
|
|
|
|
As the Javascript is in an argument in an html element, you have to html-encode the script:
onmouseover="Tip('Text with <img src="pics/image.jpg" width="60">image.')"
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks for the reply but do you know if it is possible to change the text in onmouseover="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
an example would be different users loggin on to the same page and viewing a pic specific to them in the tooltip
|
|
|
|
|
Yes. Use the Attributes collection of the control. Example:
SomeControl.Attributes["onmouseover"] = Server.HtmlEncode(@"Tip('Text with <img src=""pics/image.jpg"" width=""60"">image.');");
---
single minded; short sighted; long gone;
|
|
|
|
|
oh ok nice one this is what i need thanks a lot but one last question i am just trying to test the different images on the tooltip but when i try and enter the text needed into a text box and update from there i get the following error
A potentially dangerous Request.Form value was detected from the client (_ctl0:tbPic="Tip('<img src=\'pics/imag...").
do you know what would be causing this error and this is the text i am entering
Tip('<img src=\'pics/image.jpg\' width=\'60\'>')
Thanks again
Tim
|
|
|
|
|
It's the request validation that throws the exception. It filters out requests that contain special character combinations. In this case it's probably the < > characters that are stopped.
You can turn off the request validation by using ValidateRequest="false" in the @Page directive.
---
single minded; short sighted; long gone;
|
|
|
|