|
Of course:
output.Write("<table class=\"MenuTable\" width=\"{0}\" border=0" +
"cellpadding=2 cellspacing=0>", width);
α.γεεκ Fortune passes everywhere. Duke Leto Atreides
|
|
|
|
|
|
Luca Leonardo Scorcia wrote:
output.Write("", width);
output.Write(
<big>@</big>"<table
class=""MenuTable""
width=""{0}""
border=""0""
cellpadding=2
cellspacing=0>"
, width);
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
leppie wrote:
output.Write(@"", width);
I always found this style particularly ugly, specially when you consider that the code in questions would have some identation.
You can do it on anything you choose - from .bat to .net - A customer
|
|
|
|
|
I have just finished a windows service app in C#.
To deploy, I have created an installer project in VS (2003). For the service registrations, I have added the assembly as a custom action for both the commit and uninstall phases.
The installer seemes to run correctly - until the very end. Then I get the following error message :
Could not find file "C:\Program Files\play47\SMTP Server\SMTPServer.InstallState
Now, this file DOESN'T exist - but I assume that it should be getting created by the service installer.
Any ideas? This is critical and I really need to deploy it today - if you have any idea it would be greatly appreciated!
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
Tatham wrote:
if you have any idea it would be greatly appreciated
No idea sorry, but I'm sure you have learnt a valuable lesson, to plan these things in the design phase.
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
I ended up finding the problem. After removing the performance counter object from the installer it worked - of course the counter doesn't work but at least it deployed.
Does anyone have any ideas on why this would crash the installer - do i need to ship some form of basic install state file - if so what is the format?
BTW leppie - i did deploy it in time.
|
|
|
|
|
Hi,
How can i get Encodingstyle of a file? And than i want to convert this file into Ascii or another.
Thanks...
|
|
|
|
|
Hello,
I am looking for the C# equiv of the VB ASC() function. I also believe some of my chars are extended chars above 127.
I tried i = Convert.ToInt32('???') but this doesnt seem to work on extended chars.
|
|
|
|
|
You can have access to every VB.Net function by just adding a referece to visulbasic.dll or visulbasicruntime(or some thing like this, I don't remember!) and using it in your code.
Don't forget, that's Persian Gulf not Arabian gulf!
|
|
|
|
|
You should just be able to do this:
<br />
char myCharacter = 'a';<br />
int myASC = (int)myCharacter;<br />
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
No you can not. Only for basic characters.
Bo Hunter
<marquee behavior="alternate">Bo Hunter
|
|
|
|
|
Bo Hunter wrote:
No you can not
So how do you do it? I'm sure they wouldn't have excluded the capability from the C# libraries...
|
|
|
|
|
you can do it. run it for yourself.
|
|
|
|
|
DataSet has has Tables propety which means it can hold more than one table. How can I add second table to dataset.In dataadapetr I can use a select commmand which get one table,how can i add two table so?
Mazy
No sig. available now.
|
|
|
|
|
Mazy, try something like this:
DataSet ds = new DataSet("myDataSet");
DataTable t1 = new DataTable("Table1");
DataTable t2 = new DataTable("Table2");
ds.Tables.Add(t1);
ds.Tables.Add(t2);
HTH
-Nick Parker
|
|
|
|
|
Thanks Nick,I should get table from database,.Should I use second dataadpater to fill the same dataset with second table or there is better way for it?
Mazy
No sig. available now.
|
|
|
|
|
Actually we use each DataAdapter to populate or edit only one table(with 4 associated delete , update , insert and select commands).
So, for inserting more than one table into a dataset , usually we use more than one DataAdapter .
Don't forget, that's Persian Gulf not Arabian gulf!
|
|
|
|
|
Hi,
You can write a sql statement like this returning two tables:
"SELECT * FROM People; SELECT * FROM Street;"
That will populate two different tables on your DataSet, the first one containing all the people, and the second one with streets.
Hope this helps.
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
Andres Manggini wrote:
"SELECT * FROM People; SELECT * FROM Street;"
Oh,thats nice,can I run large SQL script like this?
Mazy
No sig. available now.
|
|
|
|
|
Try it once with the IDE/Form Designer first:
drag a dataAdapter to the form and configure it. Such as "SELECT * FROM Projects".
drag another dataAdapter to the form and configure it. Such as "SELECT * FROM People".
Now right-click the first dataAdapter icon and choose Generate Dataset. In the form that pops-up choose New Dataset, and name the dataset something like DSAll. This is actually the schema name, but a dataset will be created, named like dsAll1.
Now right-click the "other" dataAdpater and choose Generate Dataset. This time, choose "Existing Dataset" and select the dataset you just created. Then you have two dataAdapters (one for each table) which both update data in a single dataset (which contains two tables).
You can then look over the Designer generated code to see what it did.
|
|
|
|
|
Thanks
Mazy
No sig. available now.
|
|
|
|
|
I want a very generic way to notify other objects that an object has changed in some way. I don't want to put any code whatever in set accessors. Does C#, .Net support this? I have some vague recollection of a similar fuctionality being supplied by MessageSinks and intercepting calls at the OS level.
|
|
|
|
|
delegates and events...
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
Maybe I was too vague. Clearly the overall architecture would have to use delegates and/or events. The problem is how to centralize the code which winds up calling them.
Assume that the ancesctor class Publisher maintans an internal list of Subscribers. Each time something changes the Publisher descendent calls NotifySubscribers(). Each subscriber is instructed to fire a delegate with a specified signature. This is the Observer pattern.
If I have an object with two properties
public class MyObject : Publisher
{
private object propA
public object PropA
{
get{return propA;}
set
{
NotifySubscribers{this); <-- I Don't want this here
propA = value;
)
}
private object propB
public object PropB
{
get{return propA;}
set
{
NotifySubscribers{this); <-- because it has to be repeated here and everywhere else
propA = value;
)
}
}
What I am asking is I think deeper into the .Net Framework than I have gone.
Robert Zurer
|
|
|
|