|
thanks alot, it's working now
|
|
|
|
|
Hi
I want to enable Browser Helper objects (BHO) and Toolbars in Internet Explore using c# window Application. To enable BHO and Toolbars a value has to be created in "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Approved Extensions" Key. Name of the value is Id of BHO/Toolbar. I want to know what data is set in that value and how it is generated.
More over are there any classes or interfaces provided for internet explorer which can be used to do the need full.
Any help would be great.
Thanks in Advance
abhinav
|
|
|
|
|
Does this[^] article help?
/ravi
|
|
|
|
|
Hello Ravi,
Thanks for your guidence, but actually what I want is to enable or diable existing BHO in IE as we are making an Browser add-on manager.
When existing BHO is enabled or disabled its entry is modified in
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Approved Extensions
but we are not able to understand the value data information inside it. If you can put any light on it, It would be a great help.
abhinav
|
|
|
|
|
http:
It is 100 % Brand New, high quality Compatible with Apple iPhone 4 4S
http:
It is Anti-Slip: NO NEED to worry about slipping iPhone off your hands
It is Made of durable impact resistant polymer, Skidproof and Deluxe."
|
|
|
|
|
How to get multiple inputs in textbox at run time and how it will display output in listbox
|
|
|
|
|
Could you please elaborate on what you mean by "get multiple inputs in textbox at run time".
|
|
|
|
|
i want to store multiple inputs at run time in the text box and displays the output in listbox...
for this am using for loop to get multiple inputs and how can i store it???
i placed two text boxes , one for getting name and other for age... am going to give multiple persons name and age and am going to display it in list box... what shall i do for this????
|
|
|
|
|
Still don't get what it is you want to achieve.
You have two textboxes: one representing a name and the other represents age. You want to display the name and the age in a listbox - I assume this is not causing you any problems? You say you have a for-loop "to get multiple inputs". What do you mean by this? Perhaps you better post the code that doesn't work..
|
|
|
|
|
Drop the loop. Use a Button instead. Label it "Add". On a user's click on your AddButton, copy the current values of your input fields to the ListBox. Then clear the input fields and set focus on the first one.
That way, users can type in names and click on the AddButton as often as they want.
If you want to restrict the number of rows added to the ListBox, then you can implement that in your AddButton_Click method, too.
Ciao,
luker
|
|
|
|
|
... or use a grid view with two columns which will let you add and edit as many people as you like.
|
|
|
|
|
Do not double post - either post this in QA or the forums - not both.
Otherwise you duplicate work and annoy people.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
The way I see it you have 3 options: use the "Add" button sugestion, the gridview one, or make the user input a separating character between values, so you can take the inputs, split the strings by that character and work with the results.
I think the best one, for the average end user, would be the Add button, having more than 1 "value" in the textbox is not very efficient or comfortable.
|
|
|
|
|
Hi all, I am trying to change the name of each file as it's being downloaded. The following are what I have done thus far:
I have uploaded files to a folder on the web server but replace their names with GUIDs to prevent problems that could arise later on due to duplication . Their original names have been saved to a database and so are their extensions and the paths to their new location on the web server. The problem I am facing now is giving them their original names back when they are downloaded.
I know I have to replace the GUID with their original names and original extension when they are being downloaded. I have looked at using Response.AddHeader() method but I am not quite sure on how to make it work. Suppose a file in a folder on the web server have the GUID 123-GtR-XYZ as its name and suppose its original name was test.doc. How do I replace the GUID with the file's original name while it is being downloaded? The following is the method I currently use to retrieve a file from the folder on the web server.
DataTable Dtable = new DataTable("INFO");
Dtable.Columns.Add("URL", typeof(string));
Dtable.Columns.Add("Files", typeof(string));
string[] fileEntries = Directory.GetFiles(Server.MapPath("~/Uploads/"));
foreach (string fileName in fileEntries)
{
Dtable.Rows.Add("~/Uploads/" + Path.GetFileName(fileName));
}
myGrid.DataSource = Dtable;
myGrid.DataBind();
Let's say that I have written a SQL query to retrieve the original file name and original extension of the file being downloaded and now we have the GUID, the original file name, and original extension. How do I make use of those data to give each downloaded file it's original name back? Please give a code snippet or point me to a good tutorial if you can. Thank you in advance for your help.
modified 14-Sep-12 1:12am.
|
|
|
|
|
Response.ContentType = this.FileContentType;
Response.AddHeader("Content-Disposition", "attachment; filename=" + this.FileName);
If the filename has a space in it then either the whole filename should be quoted (and quotes in the string escaped). Or the entire filename should be encoded, which will use %20 to represent a space.
|
|
|
|
|
Hi s_magus, thanks for replying. How do I make use of the two lines you've posted in my existing code? Thanks again for replying.
|
|
|
|
|
What, exactly, do you have against using the ASP.NET forum, which is where your posts belong?
|
|
|
|
|
Nothing, since my question had to do with c# I just thought it was ok to post here.
|
|
|
|
|
It doesn't matter what the language is, the problem is an ASP.NET one. So far, all your questions should have been asked there.
|
|
|
|
|
I have previous experience using WinForms and the DataGridView control. I am trying to re-code a previous program using WPF that reads a parts list from a delimited text file and displays results in a DataGrid control.
In WinForms, I was able to assign a tag to the DataGrid row that I used to link individual URLs to our company's HTML-based inventory program. However, I am unsure how to do this (if it's even possible) in WPF. Currently, I read from the text file and load its contents into a List. From there, I filter the List by whatever the user selects, then display the results in a DataGrid control. I want to open up the browser when the user selects a row, but can't figure out how to bind the URL to the row. Is this possible? If so, can someone help point me in the right direction?
Thanks.
|
|
|
|
|
Just realized this probably isn't the best place to post this question and re-posted in Silverlight/WPF forum. Sorry.
|
|
|
|
|
I have a C# 2010 console application calling a second console application. I want the main calling console application to wait for the e_Process1 console application to quit running before the second console application is called with different parameter.
I want the main calling console application to look at values in a sql server 2008 database before calling the second console application with different parameters.
When you look at the 2 lines of code listed below, you will see that the main console program is watiting for the second console application to run. However the main console application is stilling waiting.
Code referecing to:
e_Process1.Start();
e_Process1.WaitForExit();
Thus can you tell me what you suggest I do to solve my problem? Either the second console application never quits executing and/or I need to use diferent statements.
Thus can you tell me what you suggest I do to solve my problem?
|
|
|
|
|
Sounds like the first application is doing exactly what you want it to do. You should be investigating why the second application never exits.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
I have to agree with Wes. What is the problem? It is doing exactly what you are telling it to do. Do you want it to wait or not? Do you want to add a timeout to the process?
|
|
|
|
|
I probably should add a timeout to the process. How do you do that?
|
|
|
|