|
There are no backslashes in that string. \" is a quote.
|
|
|
|
|
Process is same what blueboy ellastrate.
|
|
|
|
|
Are you sure you want to remove the \'s, they are actually what allows you string to contain the character: "
You can't remove those because \" really means " in the string. If they were \\ it would mean \. So why are you trying to remove the characters that aren't even there?
Craigslist Troll: litaly@comcast.net
"I have a theory that the truth is never told during the nine-to-five hours. "
— Hunter S. Thompson
|
|
|
|
|
Hi every1,
I am building button dynamicaly and m trying to add the button id to a new ajaxupload.js(thebuttonid).. bt these does not help cos it not working..any1 pls help..
|
|
|
|
|
What C# code have you got?
|
|
|
|
|
else {
strEdit = "";
delet = "";
rtf = "<img src=\"images/rtf.png\" title=\"Download Conditions\" style=\"Border:0\"></img>";
}
var t = ("<tr class=\"displ\"><td id=\"brh\" style=\"display:none\">" + data[i].BRH_ID + "</td><td>" + data[i].var_deedOf + "</td><td align=\"left\">" + data[i].lib_name + "</td><td>" + data[i].lib_modifiedBy + "</td><td><a href=\"#\" id=\"download\" libid=\"" + data[i].lib_id + "\" class=\"link\">" + rtf + "</a><a id=\"uploadfile\" href=\"#\" class=\"link cl\" libid=\"" + data[i].lib_id + "\" deedsoffice=\"" + data[i].var_deedOf + "\">" + strEdit + "</a><a id=\"del\" href=\"#\" class=\"link\" libid=\"" + data[i].lib_id + "\" >" + delet + "</a></td></tr>");
$("#Result").append(t);
so m trying to bind
id=\"uploadfile\" to
new ajaxupload('#uploadfile'{ which is a jquery ajaxupload.. and i know Pete that this is th wrong forum for the question but i trust u guys 
|
|
|
|
|
You aren't going to get an answer for a JavaScript question in a C# forum. You acknowledge this yourself so why did you post it in this forum.
|
|
|
|
|
I will use fileUpload control.
Fileupload control has textbox(display file path) and button(text is Browser).
And i want to edit button's text from Browser to Search.
and i want to edit textbox from displaying file's path to only filename.
How can i do?
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
AFAIK you can not change these things in FileUpload control. You will have to write your own control or use a third party control for this.
|
|
|
|
|
A couple of things.
First, this is the C# forum. Your question has nothing to do with C#. You should have asked it in the web development forum.
Second, you cannot modify the file browse control. It is sandboxed for security, so you have no access to the constituent parts through JavaScript.
You may want to consider a third party alternative.
|
|
|
|
|
Hey you can try the jquery ajaxupload.js, it myt solve your problem..
|
|
|
|
|
Hello there,
I am trying to print a file(could be word, pdf or infopath form) from URL using c# code. But I always got "The parameter is incorrect" error.
The following is the code that I used.
WindowsImpersonationContext wic = WindowsIdentity.GetCurrent().Impersonate();
Process printJob = new Process();
printJob.StartInfo.FileName = @"http://testsrv/test1/Shared%20Documents/test.txt";
printJob.StartInfo.UseShellExecute = true;
printJob.StartInfo.Verb = "print";
printJob.Start();
I am sure the URL is correct.
I also tried to download the file to local drive and use the local full file path instead. In that case, it doesn't print and there is no exception either.
I am really confused. Please help.
My code is running in an ashx handler. I don't know whether that makes different or not.
Thank you very much in advance.
Bin
|
|
|
|
|
bin_bin1 wrote: My code is running in an ashx handler
So your code is running on the server, isn't it?
|
|
|
|
|
Hi all,
In c# application how can i list the complete detailed information of running background process of a system.
Thanks in advance.
|
|
|
|
|
You can find the complete list with,
Process.GetProcesses();
and then pick the properties of all process such as,
<br />
ProcessName<br />
ID<br />
TotalProcessorTime <br />
StartTime<br />
etc<br />
Please check spellings for all properties above. Read the documentation about the Process as well.
After that actually it's matter of control/use/display them as you wish.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Hi.. try this code..
using System;
using System.Diagnostics;
class MainClass
{
public static void Main()
{
Process[] allProcs = Process.GetProcesses();
foreach(Process proc in allProcs)
{
ProcessThreadCollection myThreads = proc.Threads;
Console.WriteLine("process: {0}, id: {1}", proc.ProcessName, proc.Id);
foreach(ProcessThread pt in myThreads)
{
Console.WriteLine(" thread: {0}", pt.Id);
Console.WriteLine(" started: {0}", pt.StartTime.ToString());
Console.WriteLine(" CPU time: {0}", pt.TotalProcessorTime);
Console.WriteLine(" priority: {0}", pt.BasePriority);
Console.WriteLine(" thread state: {0}", pt.ThreadState.ToString());
}
}
}
}
|
|
|
|
|
Hi,
I have a vewwy simple app which just sits in the system tray while doing its work. When a user double clicks the notification icon, a config window opens and you can edit some settings there. Right now, I have a simple form which will be hidden from the user and show a notification icon when formstate is set to minimized.
private void TrayForm_Resize(object sender, EventArgs e)
{
if (FormWindowState.Minimized == this.WindowState)
{
notifyIcon1.Visible = true;
this.Hide();
}
else if (FormWindowState.Normal == this.WindowState)
{
notifyIcon1.Visible = false;
}
}
For some reason, this works under windows xp, in windows7 I have to disable the ShowInTaskbar call, as that causes a stack overflow in the current thread. If I don't use the call, the form is minimized and remains visible on the taskbar, annoying at best.
Any workarounds? (or am I doing something stupid here...?)
A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)
|
|
|
|
|
Your statement is suggesting this.ShowInTaskbar = false; is firing the Resize event again. If that is so, you can break the loop by using if (this.ShowInTaskbar) this.ShowInTaskbar = false; // avoid a Resize avalanche .
PS: Make sure to provide an appropriate comment to prevent someone from simplifying the code and reintroducing the problem.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Thanx for the tip, will try it out soonish as my harddrive died on me today
A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)
|
|
|
|
|
Does anybody have an idea how to draw an image (like using TextureBrush ) with gradient transparency (like using LinearGradientBrush )?
The only examples I can find on drawing an image with transparency use ColorMatrix to give the entire image a transparency value, which is not what I'm looking for. I guess what I really need is a LinearGradientTextureBrush , which of course doesn't exist. Does anybody have a suggestion on how to accomplish this? I'm out of ideas.
Thanks in advance for any suggestions.
"Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown
|
|
|
|
|
In case anyone cares. Until I find a nicer cleaner way to accomplish this, I've decided to brute force it pixel by pixel.
For my purposes, the image is meant to be a background image for a range between 0 and 255. This example does the gradient vertically. To do a different direction, I assume anybody who cares can work out the necessary changes. I'll settle for this only because my image will be very small, but I'd still like to find a more elegant solution.
private Image GradientTransparent(Image src) {
Rectangle bmpBox = new Rectangle(0, 0, src.Width, src.Height);
Bitmap bmp = new Bitmap(src);
Graphics g = Graphics.FromImage(bmp);
for (int y = 0; y < bmp.Height; y++) {
int alpha = (int)((float)y * 255f / (float)bmp.Height);
for (int x = 0; x < bmp.Width; x++) {
Color pixel = bmp.GetPixel(x, y);
pixel = Color.FromArgb(alpha, pixel);
bmp.SetPixel(x, y, pixel);
}
}
return bmp;
}
"Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown
|
|
|
|
|
|
WPF is outside the scope of this project, but I appreciate the link. It does look interesting.
"Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown
|
|
|
|
|
Hi all,
IN my c# application i want to display the current list of network connection of a system.
How can i do it ?
Thanks in advance.
|
|
|
|
|
Check this[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|