all groups > c# > february 2008 > threads for friday february 22
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
dynamically building the Google e-commerce javascript from C#
Posted by James Irvine at 2/22/2008 11:32:30 PM
I'm trying to dynamically build the example script below from C#, substituting the sale item details with data values I get from an online transaction. Is
there a preferred method to do this? My approach so far has been to concatenate a bunch of strings, then plug it into a ClientScript.Register... more >>
Windows Control Library project template
Posted by GS at 2/22/2008 9:53:48 PM
how do I get that template for Windows Control Library project?
I am using 2008 c# express . I can see for new project I can choose
windows application
class library
wpf application
wpf browser application
console application
empty project
then there the other "s... more >>
Dynamic autocomplete combobox
Posted by Andrus at 2/22/2008 8:16:15 PM
If I press Windows+R key in Windows and type some letters,
Autocomplete list shows possible choices.
I want to implement similar thing in winforms application:
when I type first letters from customer name,autocomplete list for customers
starting with this same should apper.
Since there a l... more >>
LINQ: problem obtaining data
Posted by K Viltersten at 2/22/2008 8:08:42 PM
I got me a DB called "deebee.sdf" and by
DataContext db = new DataContext
(@"C:\deebee.sdf");
i create connection to it. In there a table
called "tabula" resides. Now, the problem
is that i can't get any info from it. I've
tried to follow the tutorial on MS' site by
var query =... more >>
array manipulations
Posted by rodchar at 2/22/2008 7:53:01 PM
hey all,
Label[] lbls = {Label1, Label2, Label3};
i know you can iterate thru the elements, cast to Label object, and then set
its visibility. But is there a way to set the elements all at once without
loop structures?
just wondering.
thanks,
rodchar... more >>
MySQL with Enterprise Library
Posted by Cesar Gazzo Huck at 2/22/2008 6:42:19 PM
Hi, I'm trying to use Mysql with Enterprise Library but i have a problem
with somes methods becouse EntLib understand that mysql is a generic
database. I am trying use Custom Provider Mapping with Mysql but I have not
idea how?
Anybody has an example of these?
Thanks for all and sorry for my... more >>
[off-topic] Ode to a hero!
Posted by Michael Starberg at 2/22/2008 6:36:49 PM
In a rather long email-conversation with Jon Skeet,
I accidently wrote a one-liner, that I'd like to share it with you.
"I don't think I have ever been in a conversation with you, without learning
something new =)"
Tru dat
- Michael Starberg
... more >>
Perils and Merits of Anonymous classes? Anonymous Descendant class
Posted by Siegfried Heintze at 2/22/2008 6:19:01 PM
Can someone help me understand the perils and merits of anonymous classes in
C# 3.0?
Would anonymous classes be most useful when used with reflection? I cannot
figure out how else I would pass them to a function.
How useful is a type if we never pass its instances to a function?
If we d... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
GEt The Response URl
Posted by Rajkiran R.B. at 2/22/2008 6:06:15 PM
Whenever I type some url like
http://youtube.com/watch/v/54GRe3ox_xI
in firefox browser when the address is immediately redirected to
http://youtube.com/swf/l.swf?video_id=54GRe3ox_xI&rel=1&eurl=&iurl=http%3A//i.ytimg.com/vi/54GRe3ox_xI/default.jpg&t=OEgsToPDskJ98NGh0lWiWIogmOD9369L
Is t... more >>
CrystalReport on .Net 2.0 C# web project
Posted by Jason Huang at 2/22/2008 5:56:47 PM
Hi,
I created a new Crystal Report on my .Net 2.0 C# web project.
However, I have encountered trouble in the Database Expert from the default
Crystal Report editor in the .Net.
That is in my project I have a DataSet MyDS, but I found no data columns in
the ADO.Net Dataset from the Database ... more >>
How to compile with collections from command line?
Posted by Siegfried Heintze at 2/22/2008 5:11:02 PM
The program below works when compiling it with VS2008. However, when I try to
compile it from the command line I get this error:
props.cs(38,53): error CS0246: The type or namespace name 'List' could not
be found (are you missing a using directive or an assembly reference?)
props.cs(38,66)... more >>
Support for Office resident ActiveX Controls in VS2008?
Posted by Siegfried Heintze at 2/22/2008 4:50:00 PM
Previously I could write (supported) ActiveX controls for IE only. Has this
changed with VS2008? Does office support ActiveX controls written in VS2008?
What about older versions of office: will they support controls written in
VS2008?
Thanks,
Siegfried... more >>
Array as little table
Posted by Arjen at 2/22/2008 3:58:43 PM
Hi,
I want to use an array as a little table. I don't know how to declare
this in C# and I also don't know how to find a record in the array
(based on id field). Hope somebody can help me.
Here is the array/table structure I'm looking for.
id, name, address
value, value, value
value, valu... more >>
Nullable types giving error
Posted by tshad at 2/22/2008 3:01:30 PM
I have the following in c# VS 2005.
fn.ProjectTableID = dbReader["ProjectTableID"] == DBNull.Value ? null :
(int?)dbReader["ProjectTableID"];
This works fine as long as dbReader["ProjectTableID"] is null.
If it is a value I get an error:
Specified cast is not valid.
Why is that?
H... more >>
SmartClient vs Web Application
Posted by Wenlei Fang at 2/22/2008 2:46:43 PM
Hi All,
We are in the process of review and redesign large scale .Net 2.0 web
application. It has been suggested that we can use SmartClient instead.
Can anyone provide resources/whitepapers on SmartClient vs Web Application?
Thanks,
Wenlei
... more >>
Restoring a Serialized Object on to itself
Posted by Bob Bartel at 2/22/2008 2:31:01 PM
I have a complex "query" object that I need to save to a table and then
restore. Everything works great with the following exception. When I try
to create a method within the object called Restore() and try to restore the
object onto itself I can't: Here's the code segment:
byt... more >>
Connecting to a DB / using LINQ
Posted by K Viltersten at 2/22/2008 1:09:23 PM
I'm trying to connect to a DB and retrieve
some data. The DB is a file called
deebee.sdf. Now, i have the following
relevant lines in the code.
using System.Data;
using System.Linq;
...
DataContext db
= new DataContext (@"C:\deebbee.sdf");
THe compiler doesn't like it an... more >>
Exception Handling...
Posted by Jacek Jurkowski at 2/22/2008 12:22:34 PM
Why in thet case "throw" doesn't work?
There is no exception rising and there should
be!
public class Aaa
{
public static void Main()
{
try
{
Bbb bbb = new Bbb();
bbb.ShowDialog();
}
catch(Exception e)
{
... more >>
stupid question.
Posted by tolkien at 2/22/2008 12:09:38 PM
How can i open a form from another form in the same window?
Like when i install a program and i press next,next...
Thanks!!!!... more >>
C# and InpOut32.dll
Posted by KS at 2/22/2008 11:46:18 AM
I have installed this InpOut32.dll for programming the parr.port and I have
tested the installation with the included testprogram and it works fine.
Now I will try my own program - and I add only ONE statement - just to try -
but I get an exception.
When I'm commenting the statement out - ... more >>
Closing an unmanaged DLL
Posted by dvestal@gmail.com at 2/22/2008 10:56:05 AM
I have a C# app that must use a C# class library, which in turn
references an unmanaged C++ DLL. My code interacts briefly with the
C# class library, after which my code must fully release it, retaining
no references to either the class library or the DLL (which the class
library uses via DllIm... more >>
Calculate top 4 values
Posted by Robert Bravery at 2/22/2008 10:34:33 AM
Hi all,
C# How could I sum, the top 4 values of a bunch of values
THanks
RObert
... more >>
TreeView 2.0 Help Please - Petzold Code Included
Posted by Tom at 2/22/2008 10:20:57 AM
I'm looking for help solving a particular quirk in Petzold's TreeView
example. (ref. "Programming Microsoft Windows Forms - A Streamlined
Approach Using c# - 2005 Edition", pp. 85,86).
The observed problem:
Collapsing a parent node that has two or more child levels exposed
results in the "... more >>
Icomparer and Nullable field
Posted by tshad at 2/22/2008 9:37:22 AM
Using VS 2005, I have list that I want to sort that has a nullable field.
I am getting an error:
'System.Nullable<int>' does not contain a definition for 'CompareTo'
I am getting an error on the "secondInstance test for ProjectTableID, which
is a nullable int (int?).
public cla... more >>
Injecting code into linq
Posted by Andy at 2/22/2008 9:27:11 AM
Suppose I have the following class which maps to a table:
[Table]
public class People {
[Column( IsDbGenerated = true, IsPrimaryKey = true )]
public int PersonId { get; set; }
[Column]
public string FirstName { get; set; }
[Column]
public string LastName { get; set; }
[Colum... more >>
A deployed web aspx page does not display response over the internet
Posted by chike_oji@yahoo.com at 2/22/2008 8:30:28 AM
Hello all,
please I need help with an a web app that I
am developing. I am using .NET 2.0, VS 2005, IIS 6.0, Windows Server
2003 Standard Edition sp2
The application was deployed our server in my country
and it was accessible over the internet from our clients.
Later due to QOS issues, we ... more >>
c# and WMI
Posted by freddy at 2/22/2008 8:28:02 AM
I would like to learn wmi with c#. There are tons of stuff out there on the
subject, I am just starting learn c# and Wmi. Is there a site that anyone
would recommend for someone who is just starting.
Thanks
Freddy... more >>
reference back to original value
Posted by TBass at 2/22/2008 7:44:44 AM
I'm new to C#, and I have a question. For my program, I have 2 forms:
one to allow the user to pick a property and another to allow the user
to edit the property. They select the property they want to edit from
a TreeView.
Example:
string m_szCurrentPath;
object m_oCurrentTarget;
p... more >>
algorithm to find all unique email id strings in an array
Posted by sfdev2000@yahoo.com at 2/22/2008 7:40:19 AM
I'm wrestling with the best way to create some C# code to find all of
the unique email id strings I receive within an array. Basically I
want to efficiently eliminate all of the duplicates. Typically there
will be between 1 and a few hundred unique email ids, and worse case
it might be 20,000 ... more >>
Why can't I overload a generic method based on class/struct?
Posted by jehugaleahsa@gmail.com at 2/22/2008 7:31:18 AM
Hello:
I was hoping to write a method that returned a T? for value types and
a T for reference types. I assumed that I could overload a generic
method based on the constraint of class or struct.
The intention was to return null for any type, using Nullable<T> for
value types and plain null ... more >>
Type conversion C# and Matlab
Posted by hakansilver at 2/22/2008 5:54:00 AM
Dear all,
We try to access a third party Matlab dll (which was created using Matlab
COM Builder) from C#. It works fine when using strings and one-dimensional
arrays but fails with two-dimensional arrays. We give our example of the code
below:
static void TestBasicStat()
{
... more >>
multiple instaces of C# windows servie
Posted by tasleem at 2/22/2008 3:07:04 AM
hi all, i have made windows service and its working fine. but i want that
multiple instaces of that application should run. The problem is that each
windows service will have its own configuration file,supplied by the front
end of service.
i have tried to make the seperate installers of t... more >>
[html-post] Where the Demo ends...
Posted by Michael Starberg at 2/22/2008 2:16:14 AM
Hi folks.
First up, sorry for sporting html, but I want the code to be nice below.
I typically educate/demo LINQ/.NET 3.5 and C# 3.0 to all who wants to =
know. At work that is for our coders, and for our customers; well.. they =
are curious... and pays for it.
My style is to sit at my lapt... more >>
Overflowing GUI control
Posted by Sharon at 2/22/2008 1:55:00 AM
Hi,
I have a form with TabControl and a TabPage in it.
In the tag control there is panel control (lets call it panelA) and in it my
user control that include few control inside of it.
In my development computer everything looks fine. But on some other
computers, the panelA control is over... more >>
Proper use of delegates.
Posted by Roger Frost at 2/22/2008 1:22:22 AM
Since we are currently on the subject of multi-threading in a different
thread, I have a question about delegates.
When I use delegates, I just create one for each different parameter set
that I need.
For example:
delegate void callBackString(string d_string);
delegat... more >>
Setting decimal symbol
Posted by Joza at 2/22/2008 12:37:22 AM
Hi everybody!
I have question about setting decimal symbols... In some countries,
for example in my country we use comma for decimal symbol, but
in in some other countries it is decimal point. The problem is when
I use comma and want to save data in database.
For example if i want to save num... more >>
Should I upgrade to VS 2008?
Posted by Michael A. Covington at 2/22/2008 12:22:42 AM
I am happily developing software with C# using Visual Studio 2005. Should I
upgrade to Visual Studio 2008? If I do, will I be able to work on the same
project alternately with the two different Visual Studio versions?
... more >>
|