Hi
Could you let me know what the proboem is with sorting in this code? It doesn't work.
My xml:
CONTRACTS
--CONTRACT
---SUPPLIER
---COMMODITIES
----COMMODITY
-----COMODDITYNAME
My code:
Dim myString As StringBuilder = New StringBuilder(200)
Dim xdoc As New XPathDocument("local_xml.xml")
Dim nav As XPathNavigator ...
I am trying to get Profile properties in the code behind. But I am not getting any intellisence like Profile.Homephone or Profile.CellPhone. When I try
Dim memberprofile As ProfileBase = HttpContext.Current.Profile
Dim homePhone As String = memberprofile.GetPropertyValue("HomePhone").ToString()
I get Data is Null. This method or propert...
I'm re-writing alibrary with a mandate to make it totally allocation free. The goal is to have 0 collections after the app's startup phase is done.
Previously, there were a lot of calls like this:
Int32 foo = Int32.Parse(ASCIIEncoding.ASCII.GetString(bytes, start, length));
Which I believe is allocating a string. I couldn't find a ...
I'm trying to determine if there is a good way to update a resource that is embedded within an assembly. For instance, say I have I text file embedded and I want to change the contents. What is the best way to accomplish this?
Thanks,
Matt
...
I am programming in .NET
I have an application setting of type string.
On my form I have a textbox. I bound the text property of the textbox to my application setting. If I type something in the textbox it changes the value that is held in the Application setting but the next time I start the program it goes back to the default value. Do...
There are a lot of information how to build Silverlight application using .NET RIA services, but it isn't clear what is unique thing in RIA that is absent in WCF?
Here are few topics that are talking around this topic:
http://stackoverflow.com/questions/1647225/ria-services-versus-wcf-services
http://stackoverflow.com/questions/945123/n...
I can get the event messages from the queue. I get the message properties. I am pretty sure the MQEVENT type is in PCF format but I cannot seem to find any good documentation on how to take that message and convet it into human readable format.
AccountingToken
ApplicationIdData
ApplicationOriginData
BackoutCount 0
BackoutCount...
What is the best way to implement submission forms in asp.net ?
i have to accept some values from user from four different pages and submit the contents as email..
which is the best method to do this ?
is this using masterpage or views or something else???
Note:i am not using any login controls in the form
...
I need to put request specific data in WCF? Is it safe to use ThreadStatic variable in WCF?
...
Is it possible to determine a specific file's fragmentation status (that is, the amount of distinct fragments this file occupies)?
If so, how can this be done using .net?
The motivation is this: my application is keeping data in a FileStream, changing its size on-demand. This eventually causes the file to be fragmented. I'd like to mon...
Is there a limit on the amount of generic parameters you can have on a type in .NET? Either hard limit (like 32) or a soft limit (where it somehow effects performance to much, etc.)
What I'm referring to is:
class Foo<T0, T2, T3, T4, etc.> {
}
...
What is the simplest way to implement a Modal(popup) MessageBox that allows a custom value to be entered and returned. In my case, a String.
Maybe I am over thinking this but I figured I'd ask. I plan to just create a new Form. Add a label, a textbox, two buttons. Assign the textbox to a property and from my main form call a ShowDia...
Trying to insert 315K Gif files into an Oracle 10g database. Everytime I get this error "ora-01460: unimplemented or unreasonable conversion requested" whe I run the stored procedure. It appears that there is a 32K limit if I use a stored procedure. I read online that this does not apply if you are doing a direct insert, but I do not ...
Hi all,
Is it possible to compile a .cs directly in x86 code ?
I mean, I want to observe what happened with IDA Pro, so I didn't want IL code but asm code.
Thanks
...
I was reading http://stackoverflow.com/questions/1511798/threading-from-within-a-class-with-static-and-non-static-methods and I am in a similar situation.
I have a static method that pulls data from a resource and creates some runtime objects based on the data.
static class Worker{
public static MyObject DoWork(string filename){
...
Here is my project structure:
Web Application Project
Has project reference to Class Library 1 in same Visual Studio 2008 solution
Class Library 1
Has project reference to Class Library 2 in same solution
Class Library 2
Has a file marked as Build Action: Embedded Resource and Copy to Output Directory: Copy Always
Here is my pr...
I have a solution called StoreExample
It has one web project - StoreExample.Web
It has one class library StoreExample.Core
Web has a reference to Core. What is the proper way to get an assembly reference to StoreExample.Core so I can loop over the classes in StoreExample? It seems like in LoadAssembly() method call I have to know the ...
I have to register multiple assemblies to GAC using InstallSheild and also I need the assemblies to be copied on the INSTALLDIR also. What's the best way to do it? Also I need to call regasm.exe for an assembly; can I do this using InstallShield?
I really need a new 'component' for each assembly that has to be registered in GAC?
...
I came across this code today and wondering what are some of the ways we can optimize it.
Obviously the model is hard to change as it is legacy, but interested in getting opinions.
Changed some names around and blurred out some core logic to protect.
private static Payment FindPayment(Order order, Customer customer, int paymentId)
...
Iam using windows forms. How can I query all child controls of a Form recursively which have a certain type?
In SQL you would use a selfjoin to perform this.
var result =
from this
join this ????
where ctrl is TextBox || ctrl is Checkbox
select ctrl;
Can I also do this in LINQ?
EDIT:
LINQ supports joins. Why can't I use...