|
Hi,
Ive just Deployed my new web service to the main company IIS using a deployment app and it installed ok, the IIS has the .NET Framework installed.
When I try and add a web reference to another project by browse to service1.asmx page it brings up the windows download file dialogue.... everything has worked a treat so far, my last hurdle
any thoughts?
Thanks guys
|
|
|
|
|
try "aspnet_iisreg -i"
I'm amumu, and you?
|
|
|
|
|
Hi, all
I try to create a wizard for vs.net when new project or file, when I test my wizard, vs.net always pops up a dialog "Could not run the xxx wizard".
firt part is my dll source:
using System;<br />
using System.Windows.Forms;<br />
using EnvDTE;<br />
<br />
namespace MyVSWizard<br />
{<br />
public class Wizard : Object, IDTWizard<br />
{<br />
public Wizard()<br />
{<br />
}<br />
public void Execute(<br />
object Application,<br />
int hwndOwner,<br />
ref object[] ContextParams,<br />
ref object[] CustomParams,<br />
ref wizardResult retval<br />
)<br />
{<br />
MessageBox.Show("Hello world");<br />
}<br />
}<br />
}
then I use "regasm /codebase" to register the dll as a com and get the clsid ={34470340-B2D6-39A4-AFDA-A53A13D04DF7}.
then my .vsz file
VSWizard 7.0<br />
Wizard={34470340-B2D6-39A4-AFDA-A53A13D04DF7}
then my clause in .vsdir file
MyWizard.vsz|{34470340-B2D6-39A4-AFDA-A53A13D04DF7}|0|270|My First Wizard|{34470340-B2D6-39A4-AFDA-A53A13D04DF7}|0|0|MyClass.cs
Thank you for your help!
I'm amumu, and you?
|
|
|
|
|
Anyone have any idea if it is possible to take an existing Windows Form (filled with working controls) and have it inheret to a User Control?
Otherwise I am going to have to copy over everything from the Windows Form to a new User Control, which is a chore
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
Hi Paul
How about just changing the inheritance part from Form to UserControl and remove the Main method?
There mite be one or 2 form specific Properties that needs to be removed if the compiler complain, also compile as class library, and then just add the dll to the toolbox, and walla you have a UserControl.
Hope this helps
Cheers
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
leppie wrote:
How about just changing the inheritance part from Form to UserControl and remove the Main method?
Llewellyn, you are my personal Savouir and God Programmer Of The Day.
I am still laughing at how that actually worked, and worked like a bomb! The difference between a Windows Form and a User Control is a couple lines of code (no maximise button etc.) and one reference!
I was actually trying to get the Windows Form hosted as a Visual Studio.NET ToolWindow Add-In. But when a Windows Form was hosted that way, it went berserk. However I had successfully hosted a User Control before and was trying to wrap the Windows Form up as a User Control.
Instead I have taken your advice and modified it slightly; The actual Windows Form is now defined as a User Control: public class frmMain : System.Windows.Forms.UserControl
And that is then hosted by VS.NET.
No having to port all those controls and functions to a User Control.
thanks man, you get big kudos today
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
No problem Paul Thanx you made a blue monday a bit less blue
Basically everything in System.Windows.Forms inherites from Control. I only picked this up the other day. You could also try just removing the main method and add a form by casting to Control (havent tried it).
Cheers
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
I have been using Anakrino to have a look around inside the System.Windows.Forms.DataColumnTextBoxColumn class and there is something I do not understand about the decompiles.
I quite often see the line goto i-1; but there is never a matching label to go with it (the Edit method being an example). Also Visual Studio will not compile a goto statement in that form, it chokes on the -1 part.
Can anyone give me a hint as to where it is going to jump to with a lable of i-1?
Thanks
Stephen.
|
|
|
|
|
I've seen that with anakrino as well. The best way I've found to figure out what's going on is to open up the ILDisassembler tool in the sdk and try to find that line. Of course, you'll have to know how to fumble your way thru IL a bit to do this.
|
|
|
|
|
I find this normally happens when there is a mixture of managed and unmanaged code compiled into 1 assembly. I could be wrong.
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
I am writing an ASP.NET application where I have an invisible button. What I want to do is to programmatically raise the button's "OnClick" event so that a client-side function that is attached to the button will be called. Is there a way to manually raise the event? Trying to call "OnClick" directly does not work as the compiler gives an error. I know that VB.NET has a RaiseEvent keyword, but no apparently no such counterpart exists in C#. So, is there a way to manually raise events in ASP.NET controls?
"What would this country be without this great land of ours?" -Ronald Reagan
|
|
|
|
|
are you saying that you want to call the clientside jscript eventhandler for a button, from the serverside, when the button isn't even being rendered to html because it is set to Visble = false?
|
|
|
|
|
newbie here so please be kind
why won't this work?
SqlString = "SELECT * FROM Accounts ";
SqlString += "WHERE (Nick IS"; // or with the "=" sign
SqlString += tNick;
SqlString += ")";
recset.Open(CRecordset::forwardOnly,SqlString,CRecordset::readOnly);
i am trying to find the "id" so i may search another record
shotgun
|
|
|
|
|
It appears you're using MFC instead of C#, but you are missing a space between 'IS' and the tNick parameter.
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
Hey all - I've been trying to get this to work all morning. I have a .cs file that looks like the following:
<br />
using System;<br />
[assembly: AssemblyKeyFile(@".\MyPair.snk")]<br />
namespace Seruyange.David.Examples{<br />
public class StrongName{<br />
public void test(){<br />
Console.WriteLine("This is a test...");<br />
}<br />
public static void Main(){<br />
Console.WriteLine("Here is main");<br />
}<br />
}<br />
}<br />
I generated the .snk file okay. I try compiling with the following:
<monospace>
csc /out:test.exe TestAssembly.cs
But I always get the error:
Type or namespace name 'AssemblyKeyFile' could not be found (are you missing a using directive or assembly reference)
Can anyone help? I'm just trying to generate a strong name.
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
|
Thanks Nnamdi - good eye.
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
Hi,
I would like to create a drag box on a form. The behavior that I'm talking about is what you see in the Form Designer of the IDE when you click and hold down the mouse button on a form (but not on a control that you placed) and drag the mouse. A dashed box is drawn while you hold down mouse. Could somebody tell me where I should be looking to begin coding something like this? (It would be cool if there were an example but anything would do.)
Thanks!
|
|
|
|
|
I have a database that contains 2 tables.
The first called Users contains username and password
the second called PhoneNumbers contains a primary key called PhoneNumberID, a User column and a column with the telephone numbers of the users, that can be 0, 1 or more.
There is a relationship one-two-many between the username in the Users table and the username in the PhoneNumbers table.
Now I want to make an application that displays the phone numbers of a given user and allows to add or delete new numbers.
I thought that the best method is to use a listBox, a texBox and two buttons, add and remove.
The user loads the data from the database, populate the listBox, selectt a number and clicks delete, and the number is deleted. Write a number in the textBox and clicks add and the number is added.
I make this through an XML Web Service.
I have a method that takes username and password, and returns a DataSet to the clien.
Than i use foreach to add all the returned phone numbers to the listbox.
Now THE QUESTION:
How I manage the update?
If a user added a phone number, the update should add a row to the database, if delete delete the corresponding row.
When the user clicks the update button, the code should,
check all the items actually in the listbox, determine if it was added, or know if some of the previously held was deleted.
HOW I ACCOMPLISH THIS?
And after this, how I create a link with the rows in the database, since the listbox, contains only the phone number value, but no primary key of the PhoneNumbers table?
An help is greatly apreciated.
"Nelle cose del mondo non e' il sapere ma il volere che puo'."
|
|
|
|
|
|
|
|
|
Nnamdi Onyeyiri wrote:
hmmm - may take a while for me to pick the code out.
Are you trying to write your own based on the one by Carlos H. Perez? or just use that one in your project? If the latter, it is rather easy to use.
-- LuisR
──────────────
Luis Alonso Ramos
Chihuahua, Mexico
www.luisalonsoramos.com
"Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein
|
|
|
|
|