|
You don't actually need to convert the control. All you need to do is replace this with:
Control ctrl = LoadControl("~/Customer/Details.ascx");
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hello. I'm having troubles with Remoting.
I've been doing a sample that has:
- A remoting object
- A server that instanciates the remote object and registrates it in a
channel
- A client that retrieves the object from the channel and executes methods.
When that happens, the results affects the server application.
Well, my scenario is a bit different.
I have a server that is a windows service and receives some messages that
inserts in a database.
I want to add a interface monitoring that messages, so I write another
application and I want to use remoting to communicate with the server.
Then I added a message class, that is remotable. I use that class in my
server, and I registrate that object in a channel.
The client should retrieve the object and show the messages in a control,
but when I get the object from the channel it is empty.
The difference is that in the example scenario, the client executes methods
that affect the server, but I need the opposite.
My only idea is moving the message class to my actual client, but then the
service won't work if the client isn't open.
Do you understand the problem? Any solution please?
Regards,
Diego F.
|
|
|
|
|
hi
i am currently using c# window application on visual studio .net 2005
for those remoting pro out there should know what singleton at server is used for in the remoting
i am currently trying to instead let the client initialise the creation of the remotable class
but instead, create the remotable class once the server start up and inherite it to my window application form so that i can use the values within it.
i am not sure if this method will work so please advice me or give me tips about this way.
also does anyone know how i can create the remotable class once the server start up and inherite it to my window application form so that i can use the values within it.
i cant find any sample codes that does something like that
thx
|
|
|
|
|
is this extention to dot net framework necessary to use WPF , I am interest in this technology but i cant use it i have installed .net framework 3.0 but it does not appear when i make new project using visaul stodio can you help me ...\
my name is layth abu sada
plaese help me
best regards
layth@ayla.ws
-- modified at 12:00 Wednesday 9th May, 2007
|
|
|
|
|
I am not sure of the exact name of the installer, but you need to install the Visual Studio Orcas tools for Visual studio 2005 if you want to have VS 2005 support for WPF.
|
|
|
|
|
- Make sure you install VS2005-SP1
- Always close your VS2005 to install
- Reboot your system after you install vsextwfx.msi
God bless,
Ernest
|
|
|
|
|
Hello,
I use VB.NET 2003 on Windows XP pro and .NET framework 1.1 SP1. VS2005 and .NET 2.0 are also installed.
I am using a combobox on a tabcontrol. When I select a value at runtime directly in the dropdown list of the combobox, it works normally. But it abnormally fires events (SelectionChangeCommitted, SelectedIndexChanged, SelectedValueChanged) when I use the scrollbar of the combobox : events get fired even if I have not selected anything, just after releasing the mouse button above the scrollbar. Then, the application runs into the dispose method of the form and complains about an unexisting instance addressed by reference, and exits on this bug. I observe this behaviour whether I bind it at runtime or I fill its rows at design time. I have tried to solve it and to work around this behaviour without success. Is this a known bug ? I have not found any report on such behaviour in .NET 1.1.
I would greatly appreciate help and explaination ! Thank you.
-- modified at 4:21 Wednesday 9th May, 2007
|
|
|
|
|
Set AutoPostBack property of combobox as false
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
No such property seems to be defined for combobox in .NET 1.1. Can you please precise your solution ? Thank you.
|
|
|
|
|
hey its there...Open you eyes please check it closely
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
This property looks to be available for web applications with ASP.NET. I am working on a desktop application written in VB.NET 2003 and no such property exists for combobox.
Furthermore, the problem I describe is really weird and inconsistant : events like SelectionChangedEvent get fired despite the fact that I do not select anything. I just release the mouse button above the combobox scrollbar, which should not fire such event as no selection was already made. I suspect something got wrong on my machine and I need to reinstall VS and .NET. I hope not. Has anyone a suggestion ?
|
|
|
|
|
Yes, this is a peculiar problem which I've faced too. The event seems to fire when the control is initialized. I haven't really dug too deep into this, but one way to workaround this is to check for the SelectedIndex property. It's usually -1 or 0 when the event fires unwanted. Put your whole logic inside a if condition that checks for SelectedIndex > 0.
Regards,
SG
|
|
|
|
|
Thank you for your answer.
This is a bugging code sample :
Dim DV As DataView<br />
Dim DVRow As DataRowView<br />
<br />
DV = ADO_BDGlobale.Tables(NOM_TBL_Enseigne).DefaultView<br />
DVRow = DV.AddNew<br />
DVRow("Libelle_Long") = " Toutes les enseignes"<br />
DVRow("Cod_Enseigne") = 0<br />
DV.Sort = "Cod_Enseigne"<br />
Me.ComboBox_PanelPV_Enseigne.DisplayMember = "Libelle_Long"<br />
Me.ComboBox_PanelPV_Enseigne.ValueMember = "Cod_Enseigne"<br />
Me.ComboBox_PanelPV_Enseigne.DataSource = DV<br />
1) The bug described before occurs (abnormal events during interaction with scrollbar)
2) The combobox item list does not get sorted first . After a few selections without the scrollbar, the combobox item list finally gets sorted ( !!!).
This is another simplified bugging code sample :
DV = ADO_BDGlobale.Tables(NOM_TBL_Enseigne).DefaultView<br />
Me.ComboBox_PanelPV_Enseigne.DisplayMember = "Libelle_Long"<br />
Me.ComboBox_PanelPV_Enseigne.ValueMember = "Cod_Enseigne"<br />
Me.ComboBox_PanelPV_Enseigne.DataSource = DV<br />
Binding to a dataview or a datatable, and no element at index 0, the event bug occurs with the scrollbar when it is scrolled until the end of the list.
The case looks desperate...
|
|
|
|
|
The workaround you posted does not solve the problem for me. SelectedIndex is not set to a negative or null value when the abnormal event arises.
How shall I report this bug to Microsoft ?
|
|
|
|
|
I've been looking at the configuration class and the connectionsettings property and have noticed that when I look at the zeroth element in the collection and then do a .name on it I get back something like "LocalSqlServer". I then get "data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" as the connection string value.
Is this some sort of default given automatically as part of this property or is it getting something from off my development machine?
Thanks.
|
|
|
|
|
VS.NET installation also installs the Express edition of SQL Server. If this is not true in your case, it's probably the ASP.NET User and Role management DB, guessing by the DB Name. You'll find the mdf in your App_Code directory.
|
|
|
|
|
That's also what I'm guessing, so I'm going to try it on a nondevelopment machine to find out.
|
|
|
|
|
Here's a new wrinkle... I put the code on a non dev machine and get the same results. Does anyone have any explaination to this behavior, because the only conclusion I can come to is that it's some kind of default?
Thanks.
|
|
|
|
|
Look in your web.config file. You'll find the "default" value in there.
|
|
|
|
|
There isn't any file. This is what happens when I just instantiate a configuration class object and then do an OpenExeConfiguration and specify a path. The HasFile property is set to false, which it should, since there isn't actually a file, but that this is all in memory. When I save the configuration it puts no connectionsettings section in the config file.
When I add a new setting on my own and then save it, it then saves only my setting and ignores the "default" setting. Is there a base config file someplace I should be looking at that settings are getting incorporated from also? This isn't a web application, but a workstation app.
|
|
|
|
|
OK. If there isn't any file, why are you using the ConfigurationManager??
There IS a default inherited ConnectionStringSetting in the ConfigurationManager, regardless if there is a config file or not. This is comming from the machine.config and machine.default files in C:\WINDOWS\Microsoft.NET\Framework\<version>\CONFIG .
To tell your COnfigurationManager to forget about the inherited connectionstrings, create a config file in your app and add your connection string like this:
<?xml version="1.0" encoding="utf-8" ?>
.
. blah, blah, blah...
.
<connectionStrings>
<clear/>
<add name="myConnectiongStringName" providerName="System.Data.SqlClient" connectionString= "blah;blah;blah;" />
</connectionStrings>
The clear/ line will tell the ConfigurationManager to dump all of the ConnectionStringSetting boject it currently has, including the default one, and build a new collection from the rest of the connectionStrings section.
|
|
|
|
|
I was using the ability of the save method in the configuration class to save the memory version to file. The exmples I've seen use the configurationmanager to get the object of the configuration class since it has no constructors. If there is another method for getting a configuration class instance I'd certainly like to know about it.
Well, the machine.config file certainly explains it then.
Thanks
|
|
|
|
|
Thanks! I didn't know about this.
|
|
|
|
|
That setting should be in the machine.config file or the root web.config file in the framework directory.
Look in c:\windows\microsoft.net\framework\"pick your framework version"\configuration
Hope that helps.
Ben
|
|
|
|
|
My setup project is already installed on my system.I am rebuilding it without doing any modification.If I double clicks my installer package it shows the message that "some version of product is already there".
What can be the issue?
Actually I am installing some some project output files through this setup project. I just want to install the output files which i have updated.It is of no use to uninstall full project and again install it.
Is it possible to customize my progress dialog box in userinterface Editor.I need the functionality at installation time that shows which component is getting installed at that particular time.I want to display some label on progress dialog box which will show that information.I am not finding any property like that with dialog box.
Thanks in advance,
Mann
|
|
|
|