hi,
I have a datagrid with about 10 columns in it.Now i want to import the values in excel file to datagrid.
scenario :
1-----There are only 5 columns in excel.So i want to match ...
Hello
if I have a string like
string str = "this is my really long string this is my really long string this is my really long string this is my really long string this is my really long...
In C#, how do I assert a value equal to 1 and raise an exception / perform some action if it is not?
I see this in a lot of .NET web applications and was wondering what this is. Sounds stupid but my web application is working just fine but I don't have any of those on my button controls, for...
Hi,
I have an application that pulls appart code and does all interesting validations and such to this code.
What I also want to do is take the information that I have pulled appart to gen...
Here's the situation... I've got a VS.2005 C# WinForms application in which I needed a way to display a powerpoint PPS or a MSWord document inside a form window... after a very large amount of...
Experts,
I have the following code:
double dblDeductible = double.Parse(reader["DEDUCTIBLE_SIR"].ToString());
this.txtDeductible.Text = dblDeductible.ToString("C");
and I get the res...
Hi
For some reason I cannot get a button onclick event to fire when using update panel and ajax tab control.
What am I doing wrong?
I have this sturcture in SQL SERVER 2005.
Table Name- Categories.
CatID LangID EngID OwnerID SubOwnerID categoryName Show OrderBy PopRating
1 ENG 1 ...
I'm compiling a DLL and I need to get the physical path of the App_Data folder. I tried doing this but didn't work. It said it was null:
HttpContext.Current.Server.MapPath("~/App_Data");
H...
Hi! I'm looking for a Multi-Column TreeView control to use with asp.net 2.0.
I searched a lot but not found one that fits my needs.
The closest one I found that I tried to adapt is this ex...
Hi Experts.
I need some help figuring out how I can validate that the XML file contains specific elements.
I have a loop:
Hello all and thanks ahead for any help. I am trying to get my mind around how the BackgroundWorker works. I have tried various itteration of code and the following example I have developed is...
Hi,
I created a console application to load test my web service. I created 10 threads that I execute at the same time.
Each web service thread queries a database with a query that takes ...
Hello,
I added a ListView control in a form in C# with 1 column. How do I change the color of the column header from the traditional gray to something else?
How can I also change the col...
How can I create a IntPtr to a byte[] array?
I'm trying to read back a series of columns from an SQL database by utilizing the dataReader. Unfortunately, if I encounter a NULL value, I get a casting issue. How would I go about checking...
Hi,
I have a form with 3 panels 1 at the top one at the side for navigation and the main panel. I am trying to find out the best way to show another form as this panel. I have the main form...
I have downloaded a sample asp.net app that uses a windows service. I am trying to install the windows service but get the error "cannot start service from command line or debugger" - the se...
C# VS 2008 Windows App - Trying to do a wildcard delete of numerous files or directories.
System.IO.File.Delete(@"c:\wtemp2\*.*");
System.IO.Directory.Delet...
I have a Massage Box control taht accepts text and posts it to a pop up in a web page.
However I need the Error message to be on two seperate lines.
If the contorl works like this
Ms...
I am trying to add the C# event below to a custom control. However I am getting the follwing error, please help.
Inconsistent accessibility: property type 'CA.UI.CustomControls.uccPostalCo...
I am trying to correct a problem I am experiencing, and thought that by creating all of the columns in the designer, this might resolve it, but was wondering how I would then load the data int...
Hi,
I've written an app that dumps COM+ configuration information to an XML file.
Here's a portion of the XML file.
<applications>
<application>
<name>XkJlCrdGeneral</name>
...
private void cbo_Country_SelectedIndexChanged(object sender, EventArgs e)
{
// create an array of provinces
WebSUtil.StateProvince[] stateprovinceArr;
...