Shadi Mari's Q&A profile
.NET Development Calling Web service
Hi, Iam learning Web sevices.So idon't know these simple things. I created a web service.And iam using Visual C# Express Edition.In the Client application I added the web reference to the service i created.It generates the Reference.map,service.disco,service.wsdl. When we click on ADD WEB REFERENCE button one proxy class is generated.I think in that proxy class we have namespace and class name and methods .Using that namespace and classname we call out web service in the client. But in C# Express Edition How to see the proxy class contents. Please help me. Thanks in advance. On the solutions explorer highlight the project that is consuming the web service. There is a button (Show all files) which will toggle the hidden files; it is f ...Show All
Visual Studio 2008 (Pre-release) WCF Security in Hardware
Are there currently any hardware appliances out there that can process WCF security so that my WCF software is not bothered if hardware security check fails Are there any such products that are in beta stage for use with WCF Can MS provide some information on this Lets say I am using PKI certificates for consumers as well as services for authentication. I know most of this certificate security is handled by WCF most of the time. But I wonder if we can push this security check from WCF layer to hardware layer. I know IBM bought DataPower last year for SOA appliances. Is there something similar for use with WCF Thanks. In message security, what if we do not use negotiation of protocols That is, what if the required security is ...Show All
Visual Basic Wizard Generated code and regions
Hello folks, I know this is answered somewhere here. Just can't find it so I'm sorry for asking this simplistic question. When working with wizard generated code where does one specify the #region that the code should be entered into. I'm finding it most annoying that the generated code is always ending up in my main class view window and cluttering it up. Thanks for any ideas folks... Hi Rod, through the IDE, you can change the namespace in which the code will be generated. To do so, simply select the .xsd project item in the Solution Explorer window and there should be a Custom Tool Namespace property showing in the Properties window. There doesn't seem to be a way to specify the #reg ...Show All
.NET Development OleDbDataAdapter.Fill doesnt fill primary keys into DataTable
Hi, m_dbAdptrRemedies = new OleDbDataAdapter("", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + m_RemediesFilename); m_dbAdptrRemedies.SelectCommand.CommandText = "SELECT Nr, Name, Bezug, [Position], * FROM tListenListe ORDER BY [Position]"; table = new DataTable(); m_dbAdptrRemedies.Fill(table); Although Ive set a primary key for column "Nr" in MS Access the filled DataTable has no primary key set. Sure I could do it myself, but I want to find out if the SELECT command returns data with our without primary key, because there might be wrong tables that dont have it and this way wont allow to use a CommandBuilder for update lateron. (BTW: is it possible to ma ...Show All
Visual Studio Express Editions Weather Tracker not working
Hello, I just started learning Visual Basic using Build A Program Now book. I am now trying to run Weather Tracker program but having problem running it. I get the message which says the web service is not available. Does it work for you If you know what to do, let me know Thank you for the advice. I've already tried to test the Username and the Password in http://www.ejse.com/WeatherService/Service.asmx and it worked, but when I tried to do it using the Weather Tracker, it didn't work. In the error, it said that this code e.Result = weatherService.GetWeatherInfo2( _ My.Settings.Username, _ My.Settings.Password, desiredZipCode) was not right. The Username, Password, and ...Show All
SQL Server How to divide a row data to multiple row in one table by SSIS?
Hi, Experts, I have a data table from a old system. There are 10 data fields stored in one row at this table. How can I seperate those fields into another table to be 10 rows Any component in Data Flow can I use (I have tried several component...) by the way, the original table is a large table, contain 3,000,000 rows. Thanks for your all assistance. Amar Khaira wrote: How can we loop and get columns dynamically rather than hardcoding. I have have 300 columns I'm not sure that you can, as SSIS needs to know the metadata upfront on its connectors. Surely you can't expect the connectors to auto-update How would the downstream transformations be able to handle that change Are you talking ab ...Show All
.NET Development how i can rebuild my UserControl whitout rebuild MyMainApplication? (reference problem)
i have writed a lot of Personal Usercontrol, and i have build it on common working folder "Common Control". i have aslo writed a lot of User Application that reference to this folder "Common Control", but when i solve some bug in my UserControl and i rebuild that Usercontrol, the main application go in error!!! example: MyUsercontrol1.dll version 1.0.0.0 MyUsercontrol2.dll versione 1.0.0.0 --------------------------------------------------- MyApplication contain (Usercontrol1, Usercontrol2) And it work! If i solve a fix on Usercontrol1.dll and rebuild it, the version become 1.0.0.1 (for example). when i start MyApplication i have an error. How i can solve this problem, making MyApplicat ...Show All
SQL Server Create new login non case sensitive
I am trying to create a new login on a database, and I want that username and password NOT to be case sensitive. Do I have to set this at the server level or can I set this in the SQL script Here is the script I am currently using... IF EXISTS (SELECT * FROM dbo.sysusers WHERE [name] = 'UName') BEGIN EXEC sp_dropuser 'UserName' EXEC sp_droplogin 'UserName' END EXEC sp_addlogin 'UserName', 'Password', 'Database' GO EXEC sp_adduser 'UserName', 'Password', 'db_datareader' GO Any help would be appreciated... David SQL Server 2005 only uses case sensitive password, this is an intentional behavior change for SQL Server 2005. See http://msdn2.microsoft.co ...Show All
Visual Studio 2008 (Pre-release) installation winFX
Hi, I am a new with the winfx and want to ask what I should install to get started. I have Visual studio express edition and win xp sp2. I tried to install: 1).NET Framework 3.0 July CTP 2) Windows SDK for .NET Framework 3.0 July CTP after that I can't see the template for winFX project in the Visual Studio. am i missing somthing Thanks Thanks for answer, I have a problem install this orcas getting error winfx runime is required... but I installed it before :"Microsoft Pre-Release Software Microsoft .NET Framework 3.0 - July 2006" http://www.microsoft.com/downloads/details.aspx familyid=62057a6f-185f-41db-abe5-678f6fc388f0&displaylang=en ...Show All
SQL Server Migrating data from a .SDF file to SQL Express 2005
How do I migrate data from a .SDF file in a tablet PC to a SQL Express 2005 database in a desktop PC. ...Show All
Windows Live Developer Forums Creating first Windows Live Gadget
I am trying to create a simple Windows Live Gadget and am using this site as a guide. I want to create a gadget that contains a background image and a hyperlink to another site. The guide says that to get a hyperlink to display I have to enter the following lines of code into my .js file. p_elSource.innerHTML = "<a href=\"http://www.live.com\">Go to the best home page!</a>" + "<br />" + "<a href=\"http://ideas.live.com\">Check out the new windows live services!</a>"; However, when I log onto live.com and add the XML file of my gadget, it loads the title and icon but no content within the gadget. This is the whole code of my .js file ...Show All
Windows Forms About the cursor position in the richtextbox...
I have a problem in getting the cursor position in the richtextbox in order to get the inputcursor position (x,y) as to know the row and colum( especially,which line is the cursor in). actually, I knew how to get the mouse cursor's position, but it's not the the input cursor in the richtextbox. so would you please give me a example on how to get the lines of the cursor. and is it to add CursorChanged eventhandler or others thank u very much! GavH thank u so much! It's so kind of u give such wonderful answers for me! there will be no enough thanks I can give u, as I was so excited when I solve my problem! thank u very much! ...Show All
Visual J# Scanner object
The Visual J# we have presently installed where I teach does not have many of the objects found in the java.utils package found in JAVA 5.0 Among other objects that were not found is Scanner , one used extensively in the text that we have adopted. Does the Visual J# upgrade address this problem at all seems the license is more flexible than GPL, they use the "Classpath exception" license addendum http://www.sun.com/software/opensource/java/faq.jsp#g4 ...Show All
Windows Forms ContextMenuStrip Display Capability
Hello: VB.Net(2005) Here is the situation: A ContextMenuStrip drop down menu is displayed when a TextBox control is entered. There are two items available in the drop down menu. The display makes it difficult to distinguish which item is hi-lited and which item is not hi-lited due the color selections made. The up/down arrow keys toggle between the items but it is not obvious which item will be selected when the enter key is pressed. Question: Is there a way to change the ContextMenuStripItem.Text as the item in the drop down menu is selected with the up/down arrow keys Many thanks for suggestions... jes I have found a solution: I looked at: KeyDown, KeyPress, and PreviewKeyDow ...Show All
SQL Server Parent Package Variable issue?
I have noticed an issue with parent package variables. I have a package with multiple parent package variables defined, call them X, Y, and Z. I also have a parent package that calls this other package. The parent package has variable definitions for X and Z. It seems that the value for X will be passed along, and Y will give a warning since there is no variable of that name in the parent. The issue is that Z will not be passed along. It seems like the parent package configuration process stops after it encounters one missing variable. Is this a know issue Is it by design Look for a fix in SP3, perhaps. There is already a bug filed for this issue. https://connect.microsoft.com/SQLServer/feedback/ViewFeed ...Show All
