In .net, is there a way to convert DateTime to past tense easily (built in function or 3rd party library): eg. 4 mins ago
Something similiar to how the date is on Stackoverflow.
Basically a dup of this question using php, but I need it for C#.
I need to be able to replace any & that is not currently not any HTML entity (e.g. &) before outputting to screen. I was thinking a regex, but I'm not sure if .Net has something built in that will do this.
I use Java service in .NET application. I can see and use enums which is used in web methods as parametrs but can't see enums which is not used in any web wethod.
Hi all,
I am wondering if it is possible to save objects into Spring language...
In Java it seamed possible (search for spring java marshalling).
But Google did not help me finding what I am looking for concerning Spring Net.
So, I am asking if you guys know one tool that includes this feature.
Any help would be appreciated.
Francois
I've been researching the possibility of building a REST service in .net and came across the WCF REST Starter Kit.
It looks useful but the latest preview release came out over a year ago and there doesn't seem to be a production release. Does that mean it's not being worked on by MS any more? Has it been superseded by something better?
In my .net application I want to restrict reflection to certain assemblies. I mean I want that my a particular assembly can be reflected by only some predefined assemblies not by any other than that. How can i do that?
We are currently hosting an ASP.NET MVC application and we wish to incorporate a turn-key customer feedback system. UserVoice will absolutely meet our needs, but we'd like to consider alternatives before moving forward. GetSatification appears to provide a similiar model. Are there any other service which we should consider as well?
I have some performance issue when I host WCF service (net.tcp) under WAS (IIS 7). It is working fine when I host service under console application.
The issue is WCF Become Slow After Being Idle For 15 Seconds and a solution. After applying Wenlong Dong workaround delay is gone, but it does not work in WAS (IIS 7).
I tried to put "ThreadPoolTimeoutWorkaround.DoWorkaround()" in static AppInitialize() as suggested here, still no luck.
Thanks
For a new scalable high traffic global ecommerce website (asp.net) project which technology fits best (max. scalability & performance, min. price & maintenance)?
amazon simpledb, microsoft sql azure, mysql + memcached combo, or your solution...
Hi there,
Just built myself a mvvmlight app and if i press f5 TO COMPILE and run all works ok, it displays the wpf window
but if i do a BUILD i get an error
Error 1 The target "RunCodeAnalysis" does not exist in the project.
I am using the visual studio 2010 professional version RTM
The only thing i see strange is the target framework which is set to .NET framework 4 client profile
Anybody know why this happens??
I'm reviewing a .NET project, and I came across some pretty heavy usage of .ini files for configuration. I would much prefer to use app.config files instead, but before I jump in and make an issue out of this with the devs, I wonder if there are any valid reasons to favor .ini files over app.config?
Given a URL to an image (and not the image itself), what's the most efficient of getting it's dimensions? I would like to change the height and width attributes in the image tag (<img>) if it is greater than 200x200. However, if it's smaller than that, then I'd like to keep the size as it is. (I'm using ASP.NET/C#)
I have a site in ASP.NET using Telerik AJAX controls.
Despite the latest binary being added to the website project, my code (eg myRadGrid.Datasource = "";) shows a red line on type names as they cannot be found for some reason.
Can anyone possibly explain why or have experience in this sort of problem?
Thanks
I want to read data from html5 web database and post to sql server using vb.net server side. I have used following link as reference:
http://www.html5rocks.com/en/tutorials/webdatabase/todo/
I have created a web database and created table and stored some data in it. Now I want to store this data to sql server. How to get the data from html 5 web database and post to sql server each hour ( using some js timer).
Please suggest solution
Is there any crossplatform way (Windows, Linux, MacOSX) to change screen resolution? Neither Java nor .Net-Mono can do it. Only through native API invocation. It's very strange situation: there are clear (managed) methods to obtain screen resolution, but method for setting is absent. Is this feature very dangerous or complicated?
Does any other crossplatform system (Parrot, RealBasic etc.) do this?
I'm using BITS to make requests to a ASP.NET MVC controller method named Source that returns a FileResult. I know the type FilePathResult uses HttpResponse.TransmitFile, but I don't know if HttpResponse.TransmitFile actually writes the file to the response stream regardless of the request type.
My question is, does FileResult only include the header information on HEAD requests, or does it transmit the file regardless of the request type? Or, do I have to account for HEAD requests myself?
I have a website which runs on IIS (Asp.net application, some of them are in dotnetnuke also) and we are expecting higher numbers of traffic on some of the sites, so we are planning to add a load-balancer, but before going to do that, we just want to know is it worth to do that? So, I want to know if is it possible to simulate load balancer, and how much performance gain they provide?
Hi to all,
I have built a WIX project which installs and starts services. For the release version it all seems to work fine but for the debug version I get "insufficient privileges to start service". Any clues why this is happening?
Using .net/Visual studio.
JD.
I want implement in my software solution an VBA editor but in c# 3.0.
VBA edtior (vb 6.5) is obsolete. Microsoft have a solution for create macros and scripts editor for .net? if not how to implement a like solution?
Hi,
I need to implement Grouping, Sorting, Collapsable for a sql datasource.
I shouldn't use third party tools. From last 2 days I was searching net, but dint got the solution. Plz help me in getting these functionalities using any kind of web data control(grid view, repeater, ..) Thank You
hi there,
I am developing a web application in asp.net and c#, now in a particular aspx page whenever I doubleClick(design view) on a button or on a drop down list, instead of going to
public void btn_click event or DropDown_SelectedIndexChanged event, the cursor points to protected void Page_Load only. Strange!! any remedy??
Thanking you
Indranil
currently i am developing an aspnet mvc application on iis 5.5.So i have given wild card mapping.I know if we give wild card mapping ,all request go through the asp.net execution pipeline pipeline.(correct me if i am wrong).and in iis7 or above ,we have in built url rewrite engine.What i want to know,in iis7 or above will a request to static html page will go through the aspnet mvc execution pipeline?
What is the most appropriate .Net exception type for when you have a class which must have its collection property initialised with at least one item?
I'm thinking that it would be an ArgumentOutOfRangeException but is there something more appropriate based on a collection?
hi
I am developing the online bidding system using asp.net where I need to close the auction if the auction time is get closed without any bid.
As in the following web site : http://www.bidrivals.com/us/
Please help me to resolve to this problem.
Waiting for your valuable thoughts.
Thanking You.
Is there a library or a class/function that I can use to convert an integer to it's verbal representation?
Example input: 4,567,788
Example output: Four million, Five hundred sixty-seven thousand, seven hundred eighty-eight
For reference, I am using C# and .NET 3.5.