Hello All-
In C# how can I search through a Folder and its Subfolders to find files that match a string value. My string value could be "ABC123" and a matching file might be ABC123_200522.tif. Can an Array collect these? Thanks in advance.
-Josh
...
I have dotnetopenauth working fine as a provider except when a user clicks the submit button multible times. Then the following error occurs:
Throw New InvalidOperationException("There's no pending authentication request!")
What is the best way to prevent this happening?
...
When presenting a fixed list of countries in a ComboBox control, with no free text entry, the user expectation is that if they begin spelling out the name of the country, it will take them to that country name. Instead, the default behavior is for it to move to the first item in the list that begins with that character. So, when they hi...
I have FormView in my page markup:
<asp:FormView ruanat="server" ID="FormView1" DataSourceID="SqlDataSource1" OnDataBinding="FormView1_DataBinding" OnDataBound="FormView1_DataBound">
<InsertItemTemplate>
<uc:UserControl1 runat="server" ID="ucUserControl1" />
</InsertItemTemplate>
</asp:FormView>
<asp:SqlDataSource runat="ser...
One of our vendors provides a web service API to allow their customers to validate data in a database. As part of their SDK, they provide a WSDL (Web Service Definition Language) file that, according to their documentation, can "be read by software applications and application development tools. An application tool such as Microsoft's ...
per my client request I have been requested to return a dataset. basically it's an arraylist that i convert to dataset as follow
DataSet ds = new DataSet();
DataTable tbl = new DataTable("Table");
DataRow drow;
tbl.Columns.Add("ID", Type.GetType("System.String"));
tbl.Columns.Add("Name", Type.GetType("System.String"));
foreach (Na...
What are the new versions of CAB, mainly for WPF? What is changed? Is it the same stuff, adjusted for WPF characteristics? Does it still rely on Unity (and SCSF for the matter)?
I find Microsoft and MSDN to be very confusing sometimes ... :(
...
I have the following classes:
Defect - represents a type of data that can be found in a database
FilterQuery - provides a way of querying the database by setting simple Boolean filters
Both Defect and FilterQuery implement the same interface: IDefectProperties. This interface specifies particular fields that are in the database. D...
I have a managed thread which is waiting, blocked, in an unmanaged code (specifically, it on a call to NamedPipeServerStream.WaitForConnection() which ultimitely calls into unmanaged code, and does not offer a timeout).
I want to shut the thread down neatly.
Thread.Abort() has no effect until the code returns to the managed realm, whic...
Using the following code, I can download the HTML of a file from the internet:
WebClient wc = new WebClient();
// ....
string downloadedFile = wc.DownloadString("http://www.myurl.com/");
However, sometimes the file contains "interesting" characters like é to é, ← to ↠and フシギダネ to フシギダãƒ.
I think it may be something to do...
I typically name my C# interfaces as IThing. I'm creating an extension method class for IThing, but I don't know what to name it. On one hand, calling it ThingExtensions seems to imply it is an extension class to some Thing class instead of to the IThing interface. It also makes the extension class be sorted away from the interface it...
How do I submit disabled input in ASP.NET MVC?
...
According to RFC 2396,
The plus "+", dollar "$", and comma
"," characters have been added to
those in the "reserved" set, since
they are treated as reserved within
the query component.
Indeed, search this site for "plus + comma , dollar $", and you get
http://stackoverflow.com/search?q=plus+%2B+comma+,+dollar+$
Plus is...
I haven’t yet started learning Asp.Net 4.0, but I did read a bit on ViewState, where there is a new property ViewStateMode. In earlier versions of Asp.Net, if parent control had its ViewState disabled, then child controls also had their ViewState disabled, even if their EnableViewState was set to true.
a) Thus if I understand it correct...
I am currently working on an application in WPF/C# for personal use. I am not a "classically trained" programmer. Simply a hobbiest that likes to code in his spare time. Is there any accepted approach to the progression of application development? I. E.; Make it work, add fault tolerance, create a gui, then performance optimization. Or m...
Im adding objects to a datagridview ( only one kind) through a list
ej.
List<Material> mater = new List<Material>();
DataGridView dgvMAterial = new DataGridView();
dgvMaterial.DataSource = null;
mater.Add((Material)cmbMaterial.SelectedValue);
dgvMaterial.DataSource = mater;
But every time I click over the datagrid I get an indexout...
I have some records, that I want to save to database asynchronously. I organize them into batches, then send them. As time passes, the batches are processed.
In the meanwhile the user can work on. There are some critical operations, that I want to lock him out from, while any save batch is still running asynchronously.
The save is don...
When programming in sdl.net on close my app will crash with a vshost32-clr2 error. It stops happening (sometimes) when i close visual studio and reopen the project.
Does anyone have any idea why this happens?
-edit-
More info. I can run the project, close it, run and hit escape right away (to close it) without problems. Repeat to get ...
I've noticed that in .Net 4, WPF FrameworkElements are able to bind to IDynamicMetaObjectProvider binding sources. Will this also be the case for Silverlight 4?
...
How can I deploy a project? I'd prefer it if it's just a single execute file with everything built into it. Is this possible? Or does it need to be installed with the DLLs staying as external files? Thanks.
...