I'm building a small specialized search engine for prise info. The engine will only collect specific segments of data on each site. My plan is to split the process into two steps.
Simple screen scraping based on a URL that points to the page where the segment I need exists. Is the easiest way to do this just to use a WebClient object a...
Suppose I have a Comment class having properties and their methods
like
public Comment GetComment(Guid id)
And
public static List<Comment> GetComments()
public static List<Comment> GetCommentsByAuthor(Author id)
Now, What I usually do is write the database logic for each of the
above methods .
That said, Now I am seeing BlogEngine...
Is it possible to implicitly declare next Dictionary<HyperLink, Anonymous>:
{ urlA, new { Text = "TextA", Url = "UrlA" } },
{ urlB, new { Text = "TextB", Url = "UrlB" } }
so I could use it this way:
foreach (var k in dic)
{
k.Key.Text = k.Value.Text;
k.Key.NavigateUrl = k.Value.Url;
}
?
...
I want to push data to a client application. The client app can be thick or a thin. The push has to happen over the Internet. How can this be done?
EDIT:
Is there a way wherein the client app opens a connection to the server, keeps it alive for its lifetime and then continues receiving data over that connection. Can I build something li...
I have a generic class and I want to enforce that instances of the type parameter are always "cast-able" / convertible from String. Is it possible to do this without for example using an interface?
Possible implementation:
public class MyClass<T> where T : IConvertibleFrom<string>, new()
{
public T DoSomethingWith(string s)
{
...
We're investigating a coding pattern in C# in which we'd like to use a "using" clause with a special class, whose Dispose() method does different things depending on whether the "using" body was exited normally or with an exception.
To the best of my understanding, the CLR keeps track of the current exception being handled until it's be...
Hi guys! Please help!
I call a threading.timer from global.asax which invokes many methods each of which gets data from different services and writes it to files.
My question is how do i make the methods to be invoked on a regular basis let's say 5 mins?
What i do is:
in Global.asax I declare a timer
protected void Application_Start()
...
Hello,
I am preparing a new Windows project and wonder what kind of DAL technology to use. Originally I was looking for something simpler to not spending too much time on building it. But I understand also that it has to be efficient and scalable in the long run.
I plan to use WPF (MVVM) Client and WCF Service on a 3 Tier system.
Just...
I have a list of keyvaluepair(string,string) first string is something like class.property, second string is the value to assign to that class.property.
I'm currently looping through that list and by using reflection I set every value.
it work, but my question is there a faster way to do this?
...
Actually I would need 4 methodes. I'm using c# .NET 3.5 and windows forms.
Get ALL control properties (also sub properites like MenuItems etc.) from current form where name matches list name //don't works ok
Save results to XML //don't know how to save the results
Load result from XML and
finally set loaded control properties from XML...
Hi,
Using an MVVM approach to WPF, I have a view model class called SubButton. It is styled as follows:
<!-- SubNavButton Appearance -->
<ControlTemplate x:Key="SubNavButton" TargetType="{x:Type RadioButton}">
<Grid Margin="5,5">
<Rectangle x:Name="rectBackground" Fill="DimGray" Stroke="#FF000000" Width="150" Height="40" St...
Hi there.
I have one BIG table(90k rows, size cca 60mb) which holds info about free rooms capacities for about 50 hotels. This table has very few updates/inserts per hour.
My application sends async requests to this(and joined tables) at max 30 times per sec.
When i start 30 threads(with default AppPool class at .NET 3.5 C#) at one tim...
Hi,
I am working in a website that in production has only the aspx files and the bin directory and files. Any body knows how any ideas how this website was deployed I usually have my websites and I submit the code as well.
My question 2. How can I create a test website in the same server? I already create the test database.
Any suggest...
Hi
I'm designing code for downloads manager, and i wonder if there is good known patterns for the async operations?
I asking it because i just started develope my own pattern.
Download a single file itself is an async operation with start, stop, pause, cancel, showing progress and speed.
Download one big file can actually download man...
Hi,
Silly question, but in a winforms app Im currently working on, I would like to get the amount of bytes allocated/used by a List<[SomeObject]> held in memory (for statistical purposes). Is this possible? I have searched thru the possible options, but there is obviously no myList.GetTotalBytes() method.
...
I have made a foolish mistake...
I installed .Net before setting my regional settings in XP and now DateTime.Now will set the date as 12/01/2009 instead of 01/12/2009.
I'm sure there is an easy way to change this for the .Net runtime config but I can not remember what it is.
Help?
...
Greetings:
I'm trying to write a NAnt extension task that can update different settings within a Visual Studio 2003 generated Setup .vdproj file, and would appreciate help with the following.
Specifically, I would like to use a RegEx expression to find, and if found, replace any value string value assigned to the ProductName value with...
Having a .NET assembly, how can I detect whether it was built for .NET CF or a full framework?
...
the purpose of this question is to make it easier for developers trying to migrate between the two. If you want to learn one technology, you'll want to know how its different from those that you know.
What should someone know when switching between the Cocoa and .NET frameworks?
Related:
.Net guy needs some info on Cocoa
...
I studied few functional languages, mostly for academical purposes. Nevertheless, when I have to project a client-server application I always start adopting a Domain Driven Design, strictly oop.
A complex solution written in a .Net framework could get advantages using more than a language and sometimes more than a paradigm. Mixing C or ...