all groups > c# > april 2006 > threads for thursday april 13
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Is this AJAX? (Sort of "Off Topic")
Posted by blueapricot416 NO[at]SPAM gmail.com at 4/13/2006 10:35:54 PM
I have some javascript in a standard HTML page that uses the ubiquitous
"XMLHttpRequest" to send data to a remote ASP page.
If that page "answers back" by sending a string using a simple
Response.Write, which I then use in the original HTML page to
dynamically update stuff, is this "AJAX"?
... more >>
Removing Node from XMLDocument
Posted by Stuart Shay at 4/13/2006 10:04:58 PM
Hello All
In the following XML Below which is a XMLDocument in my application.
I want to remove the <extensions></extensions> Node completely.
What is the best way to do this, my files are not that large
Thanks
Stuart
<gpx xmlns="http://www.topografix.com/GPX/1/1" version="1.1"
cre... more >>
Special characters in Config file
Posted by JimmyW at 4/13/2006 9:49:23 PM
Hello,
How characters é and ü should be coded into App.Config file?
For Example & must be converted to & but how those two
characters é (e with dot) and ü (German u) should be coded?
Can anyone help?
Cheers!
... more >>
Downloading file
Posted by M. Noroozi Eghbali at 4/13/2006 7:37:31 PM
Hi,
I need to download a file using OnClick event or Command of a ASP button. Is
there any possible code for this?
In ASPX file:
<ASP:Button id="button1" runat="server" text="Start Download"></ASP:Button>
In CS file:
private void button1_Click(object sender, System.EventArgs e)
{
... more >>
strip
Posted by John A Grandy at 4/13/2006 6:51:30 PM
Let's say you are storing lots of URLs in XML files. So, for those with
non-XML-compliant characters you use the <![CDATA]]> construct ...
<Element1><![CDATA[http://overthetop.com?search=too%20much&sort=populatity]]></Element1>
Does .NET provide an intrinsic function that will strip the URL... more >>
Generics - How do you do this in one class?
Posted by D. Yates at 4/13/2006 6:42:16 PM
How do you do this with one class instead of two?
This works:
public class UlMenu1<T> where T : UlMenuItem
{
}
// I want UlMenu2 to implement IComparable (UlBeverageItem already does,
but is not shown here).
public class UlMenu2 : UlTest1<UlBeverageItem>, IComparable
... more >>
Hiding selection in a DataGridView
Posted by Joshua Moore at 4/13/2006 5:56:54 PM
Hi,
I'm trying to hide the selection in the DataGridView when it's not the
active control (users are complaining that it appears active). Is there
anyone who has done this before? There's no HideSelection member like in
other classes. I can set teh CurrentCell to null and it will remove ... more >>
Partial class
Posted by Tommaso Caldarola at 4/13/2006 5:26:01 PM
Can I use partial class on different assembly?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Cast my custom class into System.String
Posted by John Smith at 4/13/2006 3:37:15 PM
How can I allow someone to cast my C# class into System.String? Is it
possible in C#? In C++ I used "operator" keyword to mark C++ member
function.
... more >>
How sort XmlDocument?
Posted by Ronald S. Cook at 4/13/2006 3:28:19 PM
I have loaded an XML document into an XmlDocument object. How can I sort
this on one of the elements?
Thanks,
Ron
... more >>
storing a DataGridView in a Setting
Posted by michael sorens at 4/13/2006 3:22:34 PM
Is it possible to store an unbound DataGridView component into a setting?
I naively tried defining a Setting that is a DataGridView called DGV, then
simply assigning it:
Properties.Settings.Default.DGV = myDataGridView;
After I closed the program, the user.config file shows an empty value, ... more >>
Create/read vCard (Outlook contact)
Posted by MuZZy at 4/13/2006 2:49:06 PM
Hi,
I just wonder if anybody knows about any freeware component which can
create or read/parse and existing Outlook vCard file. I found a
component but it's $600 for site license which is a bit too pricy for me
so i wonder if there is anything cheaper (or free ) out there.
Any suggestion... more >>
How to add comments to my method parameters?
Posted by cashdeskmac at 4/13/2006 2:49:01 PM
I have noticed that when I call certain methods, such as DataSet.ReadXml,
they have not only the parameter list but also a description of what needs to
be passed in. To use the example above, opening the brace tells you that the
first parameter expected is string fileName, and the description... more >>
unmanaged structs in struct with c#
Posted by juergen at 4/13/2006 1:20:46 PM
Hello everyone,
I can't get that to work and I don't know why.
Simplified I have the following structs (Just a snip):
typedef struct
{
char* name;
int type;
Parameters1 otherStruct;
Parameters2 otherStruct2;
unsigned int lastUsed;
} TestStruct,*PTestStruct;
typedef struct Param... more >>
Never Use Static Methods in ASP.NET?
Posted by bradwiseathome NO[at]SPAM hotmail.com at 4/13/2006 11:36:39 AM
I think I learned somewhere that you should never use classes with
static methods that use ADO.NET inside an ASP.NET app because there is
a danger with thread locks. Is that true for Framework 1.1?
Thanks.
... more >>
Currency,Decimal,Access and Confusion
Posted by MikeY at 4/13/2006 11:22:11 AM
Hi Everyone,
I'm trying to extract my pricing from my Access.mdb. Developing WinForm C#.
I've read previous posts on the subject, but I'm still confused.
In Access my "Price" is of "Currency" type. I extract my items
"myDataItem.MyPrice(Convert.ToDecimal(myDataReader["Price"]));
Now my ... more >>
Accessing Application Settings Created In VS2005 Designer
Posted by amyl NO[at]SPAM paxemail.com at 4/13/2006 11:10:05 AM
I have added some user scope level variables in my Windows Forms
Application. However, I can't seem to access them.
>From the doc's I found that you should be able to access them via
Configuration.Settings.Default
which did not work for me. Than I found another reference that you
could use... more >>
Determine when server is unavailable
Posted by sklett at 4/13/2006 10:59:46 AM
I need to support "offline operation" - that is, if the DB server for
whatever reason is unavailable (network communication down, server crashed,
someone cut the users cat5, etc) I need to store the data locally until
communication is restored at which point I will catch-up on a worker thread ... more >>
maintaining case while inserting GUIDs into SQL Server tables
Posted by Vish at 4/13/2006 9:40:02 AM
Hi All,
I am trying to insert a GUID generated in .NET into my SQL Server tables. I
am inserting it into a column of type uniqueidentifier. The GUID generated by
..NET has lower case alphabets in it but after i insert it into the SQL Server
tables, all the lower case alphabets get converted... more >>
Updating DataTable based on Criteria
Posted by Mike9900 at 4/13/2006 9:24:02 AM
Hello,
I want to update a DataTable based on some criteria, like using Case in a
Query. I know I can use Select() on the table and then use loop to change the
values, but I do not want to use loop. Is there a way?
--
Mike... more >>
SQL DTS Package
Posted by Jim Heavey at 4/13/2006 9:02:01 AM
I am wanting to execute a SQL DTS package from a C# program. I found an
article which tells you how to do this
(http://www.sqldev.net/dts/ExecutePackage.htm#Visual%20Csharp).
One of the first thing it tells you is to create a reference to
"dtspkg.dll". This DLL is on the server where SQL ... more >>
Visual Studio .NET 2005 docking style
Posted by Joachim at 4/13/2006 8:51:01 AM
How can I get the new Visual Studio .NET 2005 docking style into my Visual
Studio .NET 2005 C# application?... more >>
FTP
Posted by Jim Heavey at 4/13/2006 8:11:02 AM
I am trying to figure out how to use the FtpWebRequest class in .Net (2.0) to
transfer a file from a server to my workstation. It is failing to log into
the server.
When I use the FTP client from my work station by dropping down to the dos
prompt and entering the commands, everything works... more >>
ToolTip for each Item of a Combobox
Posted by Gus at 4/13/2006 7:50:02 AM
How can I show a tooltip for each item while a combobox is outspread and I'm
selecting..
I need that help as soon as possible... Thanks.... more >>
Datastructure
Posted by Shahid at 4/13/2006 7:13:17 AM
Hello,
I am trying to store data from the database and then process it later
in the application.
I was wondering if something like this was possible:
object[key1, key2, value]
I know using hashtable, you can do object[key, value]. But having two
keys, is it possible? If not using hasht... more >>
How to Append to a File via FTP
Posted by Simone M at 4/13/2006 7:07:52 AM
Here is my problem: I need to append a string to a file every time the
user downloads this file. The string is different for every user. I
would like to append the string to the file via ftp. But I am not sure
how I can do this, I've never written an FTP client. Which class can I
use to do this... more >>
Validating an XML file with a schema
Posted by Curious at 4/13/2006 5:53:33 AM
Hi,
I will be reading a series of XML files, and before extracting the data
from them, I would like to make sure that they have the correct schema.
The schema will be readily available into an xsd file. How should I
tackle this problem?
Can someone help me out
Thanks in Advance
... more >>
New as applied to arrays
Posted by nick_nw at 4/13/2006 4:24:16 AM
Given:
class MyClass
{
private int var;
public MyClass ()
{
// Any old init code
var = 3;
}
}
class Class1
{
[STAThread]
static void Main(string[] args)
{
MyClass [] array = new MyClass [14];
}
}
What actually happens when new is called? I've looked at the IL... more >>
Disabling a column in DataGridView
Posted by tony lock at 4/13/2006 3:06:02 AM
Has anybody found a way to disable a column in DataGridView i.e prevent it
being selected. With DataGrid it was fairly easy to check on the column being
entered and move the selection to the next column, this does not seem
possible with DataGridView.... more >>
BackGroundWorker
Posted by Jamie Bissett at 4/13/2006 12:00:00 AM
I have an application that creates a pretty intensive TreeView at startup
time. I had the program running on a single thread sucessfully, but the
startup time was a bit excessive. When the application starts up it is a
requirement for the user to log on, so in my magical wisdom, I thought shov... more >>
Reading from .DBF in DBaseIII
Posted by Jo Segers at 4/13/2006 12:00:00 AM
Hi,
The code SQLstatement below does not return any rows, but if I remove
the WHERE-clause I get the full table as the result.
private OleDbConnection GetDBaseIIIConnection()
{
string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\;Extended Properties=dBASE III";
... more >>
Access the "global" focused control from C# app-.
Posted by Anders at 4/13/2006 12:00:00 AM
Hi
Im trying to develop a C# application which interacts with a Fingerprint
scanner.
The appliaction is going to run in the background (and as trayicon).
When my applicatons catches an event from the finger scanner i want to paste
a text into "what ever active textbox control is focused... more >>
moving selected item
Posted by Hrvoje Voda at 4/13/2006 12:00:00 AM
How to move up and down a selected item in listcheckedBox?
Hrcko
... more >>
DataGridView and Adding Entries
Posted by Ian Semmel at 4/13/2006 12:00:00 AM
I have a DataGridView bound to a DataTable which is keyed on an Identity.
Now I want users to be able to fill in the table just by enetering data and tab
between fields and across row boundaries.
What I am having trouble with is deciding when to update the table and I keep on
getting excep... more >>
Retrieving the COM class factory for a component failed
Posted by Sakke at 4/13/2006 12:00:00 AM
Hello!
We have written a GCryptoSvr.dll COM server in C++. Inside that resides
WebClient COM component. WebClient CLSID is
{8DC27D48-F94C-434B-A509-C3E1A3E75B9E}. When we are using that WebClient
COM component from C++ code it works just fine. However when we try to
use that same WebCli... more >>
DataSet to Crystal report?
Posted by krunom at 4/13/2006 12:00:00 AM
Hi,
i am a newby in Crystal Reports design, and i wrote a c# windows form
application that creates a DataSet.
And, now i want to pass this DataSet to CrystalReport (via DataSource?) and
i do not know how to display this DataSet in my Crystal Report :(
Please, help.
... more >>
Outlook Express in C#
Posted by Jason Huang at 4/13/2006 12:00:00 AM
Hi,
In my C# Windows Form project, I would like to have a button which will
initiate the client's Outlook Express.
In the mean time, it needs to attach a particular document in the OE.
Would some one give me some advice?
Thanks for help.
Jason
... more >>
|