I'm creating a usercontrol that will have a series of LinkButtons.
I've declared all of my link buttons at the top of my class
LinkButton LB1 = new LinkButton();
LinkButton LB2 = new LinkButton();
//...
LinkButton LB9 = new LinkButton();
now I'd like to be able to create a loop to access all of those link buttons so I don't have to w...
I am developing a VS 2008 web application in C#. I am trying to include a namespace that is stored in one of my folders. So instead of:
using ADONET_namespace
it is stored in "Admins" folder. How do I modify this aspx.cs file to include Admins/ADONET_namespace?
Currently I get following error from aspx.cs file:
The type or namespa...
While coding with sqlite everytime i always had the exact number of parameters and when i executed the query i always had 0 parameters after it. I kept using the cmd object and it worked fine.
Now while porting to use sql server (2008) my SqlConnection has parameters left over from a successful command. Why? I seem to be able to create ...
I'm developing a project in .NET (using C# to be more specific).
Using Visual Studio as an IDE.
Using Mercurial for version control.
I'll be using some third-party libraries:
ThirdParty.Foo.dll
ThirdParty.Bar.dll
ThirdParty.Baz.dll
And some in-house libraries:
Company.A
Company.B
Company.C
Company.D (References t...
I have some Service class which is defined as InstanceContextMode.Single, and is well known in the hosting application. (The host creates an instance, and passes that to the WebServiceHost)
Hosting app:WebServiceHost host = null;
SomeService serviceInstance = new SomeService("text", "more text");
host = new WebServiceHost(serviceInstanc...
Hi,
I have:
Main Program Class - uses Library A
Library A - has partial classes which mix in methods from Library B
Library B - mix in methods & interfaces
Why would I need a using statement to LibaryB just to get their extension methods working in the main class? That is given that it's Library B that defines the classes that wil...
While there's lots to like about DataObjects.NET, I've found help resources to be a lean, and can't find a solit example of using DataObjects.NET with RDBMS generated primary keys. It would seem as though D4O won't do inserts against SQL Server unless it's in controll of the key.
Has anyone solved this in the wild?
...
Hi All,
I've been doing this for years. But now it's just not working.
private void Form1_Deactivate(object sender, EventArgs e)
{
this.Size = new Size(30, 29);
txt.Visible = false;
lbl.Visible = false;
}
The form just does not change Width. But, as above, the 3 controls DO become i...
I'm trying to make a program in C# that monitors the processor time of an application. I'd like to have a feature in this program where the task-bar icon is actually a number representing the processor time (like what coretemp has). How would I go about doing something like this?
...
.Net framework contains a great class named Convert that allows conversion between simple types, DateTime type and String type. Also the class support conversion of the types implementing IConvertible interface.
The class has been implemented in the very first version of .Net framework. There were a few things in the first .Net framewor...
I have main form and some other forms, that can be shown by controls, placed on the main form, using ShowDialog(control). Also I have event handler on the main form, that can be handled anytime. How can I check inside it, is there any other dialog forms?
...
I need to use port 80 for my development server. Before i restart pc, it's still working fine. After that, it pop up the port 80 is in use. The development server able to run if i changed to other port.
I've checked using netstat -ano, no program is using it (my iis is using other port and my skype is not using port 80 as well).
I also ...
I'm writing a .NET application that will make an RPC call to a Java application (via a message queue). The data sent in both directions will be large arrays of floating-point numbers. What is the best way to serialize them to send them across the wire? I'd like something more compact than text, but architecture-independent as the server ...
I need to disable the Mouse Clicks, Mouse movement and Keyboard Inputs for a specific windows for a Kiosk application. Is it feasible using .NET ?
I have removed the menu bar and title bar of a specific window, will that be a starting point to achieve the above requirement ?
The code for removing the menu bar and title bar using window...
I've got in-memory dataset with some table defined and I populate this table in a following way:
for(...)
ds.Fields.AddFieldsRow(++j, 0, heading, "Char", "", "", "Input", 0, "","","");
On the GUI I've got DataGridView bound to that table inside TabControl (bound through BindingSource).
Very strange thing is happening: if I open ...
I am work on VB.net 2003 Framework 1.1 for last 3.5 years in windows Application.
We are currently migrating to VB.net 2008 framework 3.5, but i don't know about the features
which related to ADO.net and which is important to performance. I know linq to SQL but our architecture is made in .net 2003 so we should follow this.
Any features...
I've got in-memory dataset with couple of tables that is populated in code. Data-bound grids on the gui show table contents without a problem.
Then I try to export the dataset into XML:
ds.WriteXml(fdSave.FileName, XmlWriteMode.WriteSchema);
and get empty XML (with couple of lines regarding dataset names but without any tables)
If ...
Hi guys!
I have created a .NET web service using C# and ASP.net
I like to upload or host it online, so that I pass the URL to my friends for use.
please help me with the steps of upload the web service.
Thanks a lot
regards
Kai
...
Can someone explain what is json method and it use in .net
...
I deployed a windows application in the following website http://StagingServer/MyProgs/MPP/ on my intranet site, using the Publish Wizard of VS 2005... I accepted all defaults (including Offline support).
My users were also able to install the same from the path specified. But when I try to find out the exact location of the EXE in t...