Guys i was working on my project. but had a brownOut(or Sag).. my computer went off. wen i try rebooting it, and try to reload the project i was working on, it returns a message saying *.csproj could not load properly... and when i follow the file path, the file is there, and when i tried to compered it with .csproj of other projects i see no differnce that could lead to this..
It appears the .csproj file or the solution file has been corrupted somehow.
There's ahidden .suo file in the solution folder. In Explorer, open the folder containing your .sln file and turn on the options for seeing hidden files. Then delete the .suo file and reopen your solution.
If that doesn't work, you can always create a new empty project identical to the one you created before that is now corrupt and just add the code files to it.
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.
http://www.myecheap.com When i searched iphone4s case for my brother's gift,i came across find this one and thought it very lovely and fashionable,so share here ,just in case of some users who just in the market for a iphone4/4s case. The item description i mainly quoted from myecheap "Kimono mirror iphone 4 4S is 8th Anniversary gift, it is very great for Christmas gift,http://www.myecheap.com/kimono-mirror-iphone-4-4s-phone-diamond-shell-korea-3.html for lovers. The Rilakkuma 3D Bear Case can stand up, provides your iPhone at a standing angle for Watching video. With Precise openings on the protector case, it allows to access all controls and features on the phone.Itis100%BrandNew,highqualityCompatiblewithAppleiPhone44Shttp://www.myecheap.com/hoco-about-turning-iphone-4-leather-case-1.html The Case canstand up, provides your iPhone at a standing angle for Watching With Precise openings on the protector case,it allows to access all controls and features on theItisAnti-Slip:NONEEDtoworryaboutslippingiPhoneoffyourhandsItisMadeofdurableimpactresistantpolymer,SkidproofandDeluxe."
i want to store multiple inputs at run timein the text box and displays the outputin listbox...
for this am usingfor 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????
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.
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.
//Creating a datatable
DataTable Dtable = new DataTable("INFO");
//Adding a column of type string name URL
//putting files in an array of type string
string fileEntries = Directory.GetFiles(Server.MapPath("~/Uploads/"));
//int linkL = 0;foreach (string fileName in fileEntries)
Dtable.Rows.Add("~/Uploads/" + Path.GetFileName(fileName));
myGrid.DataSource = Dtable;
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.
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?
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:
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?
Last Visit: 31-Dec-99 19:00 Last Update: 16-Jan-22 12:59