Tagged Questions
C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
0
votes
0answers
7 views
Selection of data
i need to read records from a file sort that data by an attribute (ex. age ) write sorted data in another file. then when we ask for attribute ex age 40 program has to show all records with age 40 ...
0
votes
0answers
3 views
Render HTML from JSON object returned from controller to jquery ajax call
In ASP.NET MVC 4 how can I render HTML on load. I am saving some html string encoded in this form in my sql server database as type nvarchar(max).
...
0
votes
0answers
12 views
A procedure imported by {dll} could not be loaded
I have several Unmanaged C++ written lib files which I need to link to Managed C++ dll.
Then I need to invoke functions of this Managed C++ from C# application.
First step is OK - Managed C++ dll ...
0
votes
1answer
20 views
Open a executable through filedialog this is getting errors - Why?
Does anyone know why the following will Open the Kool.exe however the Kool.exe cannot load all of its files unless i place the current projects debug/project.exe into the same folder as the Kool.exe ...
0
votes
0answers
6 views
iTextSharp - Populating a dynamic table field
I have an XDP and a Dynamic PDF file with dynamic fields.
I am able to fill out the text fields and alike (as shown in the code below).
The issue is that I have a dynamic table field and I am not ...
0
votes
1answer
48 views
How would I properly use this Regex in C#?
I'm trying to use this regex to get the URL and the description but it isn't working.
<h3 class="(.*?)"><a onmousedown="(.*?)" href="(.*?)">(.*?)</a></h3>
Could someone help ...
0
votes
2answers
18 views
JSON.NET deserialize function does not return values
I used JSON.NET DeserializeObject function and I'm not getting any value. All it returns is NULL! Help!
Here is the code (very simple code actually!):
public class FMKey
{
public string keyName ...
3
votes
1answer
18 views
Can string pooling be corrupted or confused by use of unsafe C# code?
If I manipulate a managed C# string in place (for example, reverse its characters) by using pointers in an unsafe code block or method, can that unsafe implementation confuse or corrupt the .NET ...
0
votes
0answers
14 views
Organization Chart (Tree chart) [closed]
I am working on a project that requires to draw an organization chart. I wanted to know if the community would be kind to recommend a few. I want to use jQuery and HTML5 if possible.
I am developing ...
0
votes
2answers
13 views
Fastest way to append text to a richtextbox?
I have a application with a RichTextBox control where a procedure is adding text almost all the time:
RichTextBox1.Text += vbNewLine & "Title: " & AlbumName
RichTextBox1.Text += vbNewLine ...
0
votes
1answer
21 views
C# And Access - SQL Delete and Update didn't delete and update
I wrote a set of codes using SQL command to delete and update Access records through a C# program. Here is the set of codes:
Update
OleDbCommand cmd = new OleDbCommand("UPDATE Available SET ...
0
votes
2answers
33 views
how to use class as datatype without NullReferenceException? [duplicate]
I have some when I create my application when I try to use the resourceID From Topic I get this error NullReferenceException my Question is how to use Resource as datatype in Topic object without ...
0
votes
0answers
14 views
Merging a decrypted search of items within a LINQ query
I have the following search query:
IQueryable<File> files = GetFiles(f => f.Clients.Any(fc => fc.Contacts.Any(c => c.Companies.Any(x => x.Name.Contains(searchText)))));
...
0
votes
1answer
34 views
Why does the visual studio debugger show the wrong value and how can I correct this?
I have a simple program that gives me strange results in the Visual Studio debugger.
Console.WriteLine("4280.159d * 1000000 = {0}", 4280.159d * 1000000);
double D = 4280.159d * 1000000;
...
-4
votes
0answers
14 views
Untaring Files in C#
I am looking for a way to untar files in C# the decompress the gzip stream files in side to process the data with, but I can't seem to find anything on doing this in C#. Any suggestion on how to do ...