I have an asp button. It's server-side so I can only show it for logged in users, but i want it to run a javascript function and it seems when it's runat="server" it always calls the postback event.
I also have a regular button (<input...>) not running at server and it works fine...
How can I make this button only run the javascript a...
I've got a system i'm designing where we're using 4 specialized PC's we manufacture in house that have 16 serial ports (db-9 RS232) I need to communicate with 64 units near simultaneously (4x16) and manage the communications. Here's the model I came up with and i'm soliciting feedback
Server:
Runs on one system and coordinates client a...
Winforms, C#, DataGridView, .Net 3.5
Hello,
I am trying to databind a datagridview to a list that contains a class with the following structure:
MyClass.SubClass.Property
When I step through the code, the SubClass is never requested.
I don't get any errors, just don't see any data.
Note that I can databind in an edit form with the...
I'm trying to get images to display in a WPF ListView styled like a WrapPanel as described in this old ATC Avalon Team article: How to Create a Custom View.
When I try to populate the ListView with a LINQ-to-Entities queried collection of ADO.NET Entity Framework objects I get the following exception:
Exception
Items collection m...
I want to make a screen scraping exactly the same idea as this one http://www.vimeo.com/1626505 What i want know is how to do so?
- When the user click on the bookmarklet, it will send to my server the URL then my server will get back to the client page with the scrapping javascript files which will load with the iframe load, the java sc...
Hello,
If we want to convert a Page to user control then we should also do the following:
“If you aren’t using the code-behind model, make sure you still include a class name in the Control directive by supplying the ClassName attribute. This way, the web page that consumes the control can be strongly typed, which allows it to access p...
My company has tons of legacy applications that are written in VB6.
We are in transitions from moving VB6 applications to .NET (3.5 specifically).
What would be the best strategy for moving form VB6 to .NET?
NOTE: Below update should go to "Project Management" and has nothing to do with the main question.
[UPDATE]: Thank you for...
I have an app that has a ConcurrentQueue of items that have an ID property and a ConcurrentQueue of tasks for each item, the queue items look like:
class QueueItem {
public int ID { get; set; }
public ConcurrentQueue<WorkItem> workItemQueue { get; set; }
}
and the queue itself looks like:
ConcurrentQueue<QueueItem> itemQueue;
I...
Hi,
We have 15 projects in our development environment. Some are test projects, most are libraries, some are 'final' executables that can actually run, and some are setup projects.
Most of the time, I only want to build those 'final' executables and their respective libraries, and let the setup project only be run when we're making ...
I use MySQL in my ASP.NET app (with the MySQL .NET Connector), is there anyway to programmatically check whether the db server is down? I came across MySQLConnection.Ping() but unfortunately that doesn't work the way it should (the connection has to be opened first using Open(), also it keeps on returning false even if the DB Server beco...
I am planning to create a component that will be able to check user's credentials (username and password) and, if they are valid, return associated profiles.
I don't want to use the providers that already exist in the .Net framework (I am trying to exercise my development skills ).
Is there any pattern I can use? Or standards?
...
I'm just getting into Markdown and think it's the bee's knees. I'm working in ASP.NET (MVC) and am wondering if there are any good .NET libraries for Markdown, and am also curious how SO renders it on the fly. It must be a JavaScript library.
...
This should be relatively easy. I do not know why I am struggling with it, but Google cannot help me find an example of what I want to do.
I am building a navigation/menu out a simple nested structure of ULs with LIs. The parent object that is placed on the page is called NavController. It has a collection of NavItems.
So I pretty m...
Is there a way to disable the exit button on a windows form without having to import the some external .dll's? I disable the exit button by importing dll's using the following code but I don't like it. Is there a simpler (built-in) way?
public Form1()
{
InitializeComponent();
hMenu = GetSystemMenu(this.Handle, fa...
I was running into this error
An attempt to attach an auto-named database for file C:\<...>\Out\MessagesDB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share..
attempting to write some unit tests for testing a controler. I belived the problem was that the tests were att...
In my configuration files I have a connection string used by a legacy part of the app (using Datasets) and another string for Entity Framework:
<connectionStrings>
<add name="Database" connectionString="Server=..." />
<add name="Entities" connectionString="metadata=.....connection string='Server=..." />
</connectionStrings>
Th...
I do most of my work with Microsoft technologies these days, so naturally I'm checking out what WCF has to offer. It seems very flexible and a great next step up from .Net remoting, but it seems very tied to SOAP messages and quite a bit clunky for a platform agnostic web service app. I'm not an expert on the technology, but I imagine ...
what's the best RSS reader for .net out there? most efficient and easy to use
the ones i found are really complicated
...
There are several tabs in GUI runner of NUnit:
I understand that using Console.WriteLine (...) shows the messages in "Console.Out" tab. My question is what other tabs are for and how can I log messages to them?
[EDIT]
I apologise as I realise that my original question wasn't clear enough. What I intend to do is that create an extensi...
I need an embedded database for one of our .net applications.
This database should support sql (Unlike Berkley).
Can anyone suggest any options.
...