|
Hi all,
How do Implement the Chart Control in an Web Application using ASP.NET 2.0 with C#?
Could you please give me an example?
With Thanks & Regards
|
|
|
|
|
There are lots of third party controls out there which can be used with asp.net applications. A quick google search will show you a few.
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
ZedGraph[^] is an open source chart control for asp.net, there are examples on the site.
|
|
|
|
|
Hi All
I am uploading the image using asp code on server
it working well
but i also want to reduce the size of image too
e.g. a 100MB image to 50 MB image
have any idea
Amit Battan Ror
battan20@gmail.com
|
|
|
|
|
Check this out:
Image Resizing
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
am using asp not asp.net
Amit Battan Ror
battan20@gmail.com
|
|
|
|
|
Lets say I have several web sites on my web server, all as applications under one domain. How could I register other domains to point to the same web server, and redirect requests to, e.g. a web site linked to the requesting domain?
I know I'll have to have a root site, and I'm guessing I may have have to do some voodoo in the request pipline on this root site, and dispatch a changed request to the relevant sub-site.
Example, I would like acme.net and ajax.net to both point to the same address as root.net. When a browser requests acme.net, the content at acme.root.net or root.net/acme, should be served, but the user must still see acme.net in their address bar
Q: What is the difference between a pigeon and a merchant banker?
A: A pigeon can still put a deposit on a Ferrari.
|
|
|
|
|
You are talking about URL redirection. Most of the domain providers support this. Check with them.
|
|
|
|
|
Hi,
Is there a way, to get HTML codage in a String object from a Web.UI.Control ?
For exemple, I buil a simply Table :
Table maTable = new Table();
and I want to get the HTML Code :
String tableHTML = maTable.???
PS : I'm french, so sorry for my english
|
|
|
|
|
you can use rendercontrol method provided for each control
try following code
Table ctrl = new Table()
StringBuilder sb = new StringBuilder();
StringWriter swrt = new StringWriter(sb);
HtmlTextWriter ht = new HtmlTextWriter(swrt);
ctrl.RenderControl(ht);
TextWriter txt = ht.InnerWriter;
String strHTML = txt.ToString();
Thanks & Regards
Pete
|
|
|
|
|
i m using both html and aspx pages in my project...
for searching a particular product i m using search option in all pages...its working f9 but when i pass the text from html page through get method..it not taking the minus sign(taking in aspx page)
http://www.esccctv.com/[^]
when i m passing CCP – 2415 (ESC) product no. from aspx page.. it found a search but not thru html page... someone help please
modified on Wednesday, November 26, 2008 4:26 AM
|
|
|
|
|
This probably an encoding[^]issue, replace the minus with "%2d"
|
|
|
|
|
Try using
Server.UrlEncode()
OR
HttpUtility.UrlEncode()
for the query string value
this will encode the value
Thanks & Regards
Pete
|
|
|
|
|
Prasanna Kumar Pete wrote: Try using
Server.UrlEncode()
OR
HttpUtility.UrlEncode()
thanks but please give a proper syntax how to use Server.UrlEncode() or HttpUtility.UrlEncode()
|
|
|
|
|
string strEncoded = HttpUtility.UrlEncode("CCP – 2415 (ESC)");
Thanks & Regards
Pete
|
|
|
|
|
but how can i use that(
Prasanna Kumar Pete wrote: string strEncoded = HttpUtility.UrlEncode("CCP – 2415 (ESC)");
) in html pages.... please tell me
modified on Wednesday, November 26, 2008 4:34 AM
|
|
|
|
|
for html pages you might need to use
encodeURIComponent() available in javascript
Thanks & Regards
Pete
|
|
|
|
|
I am new to NUnitASP. I learend NUnitASP from the website.
When i used NUnitASP in my sample application, when i run the nunit am getting the message Reason- Has no Testfixtures ,
when i am creating the class,which is inherited from the NunitAdapter.cs its not getting inheritedin my sample application class.
I went through some website, and knew that, i have to copy the
NunitAdapter.cs file into my sample application.
So, i copied that file, again i am getting the same error.
Anybody, could you give me the solution for this.
Any links for using NUNitASP with Vb.net, becuase lot of examples
available in C# only.
Thanks in advance.
Regards,
sowmya
|
|
|
|
|
sowmya k wrote: I am new to NUnitASP
Don't use that one. Split the logic that has to be tested to separate assemblies and use NUnit or any other testing framework to do the test. AFAIK, NUnitASP is not worth for using.
|
|
|
|
|
Hi friends.
I have a bit problem here.
below code generate image from jpg to png but not working with eps.
protected void Page_Load(object sender, EventArgs e)
{
string path = Server.MapPath(Request.QueryString["Path"]);
byte[] by = FileToArray(path);
MemoryStream ms = new MemoryStream(by, 0, by.Length);
ms.Write(by, 0, by.Length);
System.Drawing.Image img = Bitmap.FromStream(ms);
ms.WriteTo(Response.OutputStream);
}
public byte[] FileToArray(string sFilePath)
{
System.IO.FileStream fs = new System.IO.FileStream(sFilePath,
System.IO.FileMode.Open, System.IO.FileAccess.Read);
System.IO.BinaryReader br = new System.IO.BinaryReader(fs);
Byte[] bytes = br.ReadBytes((Int32)fs.Length);
br.Close();
fs.Close();
return bytes;
}
Thanks
Regards
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Try ImageGlue from Websupergoo.
|
|
|
|
|
Hi All
How can i optimize the HTML through Code.I want to reduce the page size and unnecessary tags.
Does any know the way or have suggestion?
|
|
|
|
|
It really depends on the type of data you are displaying and the controls you are using but it may be possible to use a Repeater control instead of a GridView control for instance.
Also, instead of setting properties on all off the controls for width, color etc, use CSS classes for all styling.
Disable ViewState where you can, this can add significantly to page size.
|
|
|
|
|
Thanks to reply.
Is there any way to directly optimize the html in aspx pages.
because first i have to save that aspx page into html then I can try to revomove unnecessary code.
|
|
|
|
|
If you are having issues with the size of pages, then check if you are abusing the ViewState by putting too much junk into it. You can turn use of the ViewState off on controls that don't need to track state.
If its just your markup thats getting too big, either redesign your pages or switch on HTTP compression. :P
|
|
|
|