how can I escape " in NVelocity ?
e.g.
test.message = "136# 1/4" Test Test Test"
if I do <input type="text" id="Test.Description" value="$test.message"/>
it displays : 136# 1/4
if I do <input type="text" id="Test.Description" value=$test.message/>
it displays : 136
if I do <input type="text" id="Test.Description" value='$test.messa...
I've got a small app which will allow the user to select a number of files and then perform some processing. I was thinking I'd collect the files in an ObservableCollection of String^ (and probably expand this to a full class at a later date).
The problem is I can't work out how to bind the ListView to the ObservableCollection. I've add...
hi,
I am using jquery ajaxupload plugin to upload files .I have the following js on my default.aspx page
$(document).ready(function() {
/* Example 1 */
var button = $('#button1'), interval;
new AjaxUpload(button, {
action: 'upload.aspx',
name: 'myfile',
responseType:'json',
...
hi,
Is there a limit to how many classes can be contained inside of a dll in an asp.net application?
...
I need a .NET that supports last in first out (LIFO).
Is there one? If there are more than one what is the best? (I plan to put Form objects in it.)
Any suggestions?
(NOTE: The collection needs to be on the Compact Framework. I am using Visual Studio 2008 and C#).
...
I am having an issue with running Machine Specification tests using Resharper 5.0. The individual tests appear as greyed out in the Reshaper Test Runner and I am also not able to debug them using the Resharper. Although none of the tests is running but I still see the green bar as if all the tests were successfully passed. Any ideas as t...
Hi,
Can any one please advise me how I can get the current count of "USER Object"s (as shown in task manager) for the current process.
I see how to get the handle count using:
Process.GetCurrentProcess.HandleCount
But our application can reach a USER Object count of 10,000 just by opening 17 instances of a particular form so we wou...
Does anyone know of, or use a library that has similar functionality to Typogrify (http://code.google.com/p/typogrify/) in a .NET project. Typogrify is a Python/Django library and I am looking for an equivalent that I could use in a .NET project.
Edit: Now I'm just looking for any typography processing library for .NET
...
I need to XML serialize some classes, which in some cases do not adhere to the rules and guidelines, that is needed in order to make built-in serialization work. This includes properties that are interface types and properties without setters.
I know how to implement IXmlSerializable, but it could be a lot of work; since most of the pr...
Hi,
I want to pass a list array from the View to the controller on submission of the form.
I can pass back simple values by using the Html.hidden() function. But how does one pass back a complex object or a List array
...
I have a Windows Service that exposes the same interface on 4 ports using WCF. The addresses are:
net.tcp://localhost:1200/IContract
net.tcp://localhost:1201/IContract
net.tcp://localhost:1202/IContract
net.tcp://localhost:1203/IContract
This service is in production for a long time and there are times it breaks and I cannot even teln...
I have a bit of .NET code that retrieves the results from an Oracle Stored Procedure, using the ADO.NET Library, and populates the results into a DataTable like so:
using System.Data.OracleClient;
public DataTable getData()
{
OracleConnection conn = new OracleConnection("Data Source=DATASOURCE;Persist Security Info=True;User ID=use...
I plan to use a WPF Calendar control to display fiscal month/years. When I set the control's DisplayMode to "Year", the months (for my en-CA culture) are displayed as "Jan", "Feb", etc. I'd like to display them as "01", "02", etc but can't find a way to do this.
...
Hi,
I'm running tests with TD.Net and Gallio. I've got .Net 4.0 installed, but I want to use the 2.0 runtime. I've put <supportedRuntime version="v2.0.50727"/> in my test assembly's app.config, but it still uses the 4.0.
What should I do?
Thanks
ulu
...
Hi all,
I need to add an attribute to some property in runtime (for design-time purposes). I know I can do this for classes:
TypeDescriptor.AddAttributes(typeof(MyType), new MyRuntimeAttribute());
But I can't find any way to do the same for properties.
Any suggestions?
UPD: The exactly task is following:
public class BaseClass {
...
The below is a snippet from VB that I am porting to a C# rewrite. My question is what is receipt_date after the assignment? Is it still an object or is it a string?
Dim receipt_date As Object
receipt_date = CType(dr.Item("RECTDT"), String)
Would this be the correct C# counterpart?
object receipt_date;
receipt_date = dr["RECTDT"].To...
I wish I could go all the elements of an ASP.Net page (HTML elements) and manipulate its text property / value. How could I do that?
I've been checking, and the property this.Page.Form.Controls apparently gets all the elements, but I would only page elements that caught the event. Does anyone have any idea.
I'll put an example of code ...
SqlCommand objsql = new SqlCommand();
.
.
objsql.Parameters.AddWithValue("@Param1", DBNull.Value);
.
.
.
I get an exceptional error:
"Object reference not set to an instance of an object"
If i do:
objsql.Parameters.AddWithValue("@PaymentMethodID", null);
I get the following error:
The parameterized query '(@SupplierQuoteID int,@Pa...
I am working on a rather large WinForms application that has dozens of controls and hundreds of functions. Right now MS makes every new event handler in the main form's .h file, and this file is growing out of control. It currently numbers in the thousands of lines, and is still growing.
What is the best way to split up the code in a b...
I am getting a blue screen when my windows winform application is run.
It seems that only one user is getting this. I am not sure where at this time to look for the problem. I am however using some code that I found on CodeProject to trap mouse events and keyboard events http://www.codeproject.com/KB/cs/globalhook.aspx could this possibl...