ahmedilyas's Q&A profile
SQL Server T-SQL Reporting
is there anyway to run complex reports using T-SQL including variables and cursors and such Amythyst wrote: Why don't you just put it in a stored procedure, schedule it, dump it to a table, then use reporting services to just select * from the table and display it tabular so they can then export it to excel or something from the web thanks for your help guys, this is how i ended up doing it. ...Show All
Visual Studio 2008 (Pre-release) Integrate with Visual Studio
Hi, - I have dotnet 3 installed on my machine. - I've created a website and added a .svc file that I can browse and gives me the Service Information - I've tracked down SvcUtil.exe in the following folder "C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin". - I've downloaded an installed "Visual Studio 2005 Extensions for Windows Workflow Foundation RC5(EN).exe" Now I"d like to create a client talk to the website. But I'm not sure what to do from here. I'm using the following blog ( http://dotnet.org.za/hiltong/articles/52518.aspx ) and there's a mention there of right clicking onthe client project and selecting "Add Service Reference". But there is no such menu option. When I click "Add Web Refere ...Show All
Windows Forms options to messagebox
hello, is there a way to make only a part of the string in the messagebox body bold or different font thanks As the other poster said - you can't do that; however, I'd create a customized MessageBox form - this will allow you to do this (or anything else you'd want in a more beefy message box!) Good luck! Ethan ...Show All
Visual C# convert empty string to double
Hai, Can anybody please explain how to convert an empty string to double or float regards swingme Better yet, use TryParse. string textvalue = "..."; double numvalue; double .TryParse(textvalue, out numvalue); ...Show All
Visual Studio 2008 (Pre-release) Security and Encryption
Does WCF encrypt its data between the SOAP client and the soap header. Does that occur under basicHttpBinding What is its purpose, spped of transmission, scurity etc Ingeneral what security advantages does WSHttpBinding have over BasicHttpBinding wsHttpBinding supports the more advanced ws-specs, including ws-addessing,ws-security, ws-trust. This allows it to support message and transport layer security. BasicHttpBinding has limited security options but it can be useful because it's more interoperable. It's limited to transport layer security. The default for basic is to disable security so remember to set it up. Really in a nutshell you would want to use basic if you need to support a wide v ...Show All
Visual Studio 2008 (Pre-release) Replacing contents part of a view
I want to create a "main view" that has toolbars and underneath it will be the "contents" area. The contents area will be filled with the view based on the toolbar button that was selected. Is there a way to pop another WPF view into the contents area of another view ie. in WinForms you could have a Panel and then create multiple UserControl views, and then put the UserControl onto the Panel based on the toolbar item selected. How can I do this in WPF Thanks. ...Show All
.NET Development static constructor
Dear All, I am first to C# .net. I heared about static constructor. I want to know more about these. Can you explain this to me. It is a sample code I modified. Please use this code to explain the static constructor. public class Bus { static int AAA; static int BBB; static int CCC; static Bus() { System.Console.WriteLine("The static constructor invoked."); AAA=AAA+1; } public static void Drive() { System.Console.WriteLine("The Drive method invoked."); BBB=BBB+1; } public static void Start() { System.Console.WriteLine("The start method invoked."); CCC=CCC+1; } public void Stop() { System.Console.WriteLine("The Stop method invoked."); } ...Show All
Internet Explorer Development window xp sp2 IE - does not open word document in new IE window
why this commange doesnot work in windows xp sp2 IE 6.0 (no pop-up blocker). type this below command in IE address bar and see whether it opens new window. It opens new window for 2 seconds and immediately closes with no error. It happens any word document. Below is the example to try: javascript:window.open('http://www.myflorida.com/myflorida/universityboard/expect_respons.doc','_blank'); the best place to ask your technical query, since it appears not to be relating to IE web development, would be here for IE6: http://www.microsoft.com/windows/ie/dgbrowser/en-us/default.mspx simply hover over the Internet Explorer 6 menu on the left hand side (navigation menu) and choose the appropriate ...Show All
Visual C# How to use AddEventHandler?
Hi I am trying to use reflection to bind the same event handler to different events. I can't figure out why I can bind the eventhandler with += but not with reflection AddEventHandler - see the example below. Does anyone have a clue as to what am doing wrong Rgds Bertrand class form1 : form { public void myEventHandler( object o, EventArgs e) { /*...*/ } public void button1_click(...) { /* The following works: */ this.FormClosing += myEventHandler; /* Why does the following not work */ Type objectType = Type .GetType( "myNameSpace.Form1" ); EventInfo objectEventInfo = objectType.GetEvent( "FormClosing" ); Type objectEventHandlerType = objectEventInfo.EventH ...Show All
Visual Basic SQL Server vs. Local Data File
I am creating a standalone database application that will not be connecting to a remote computer. Would it be better to create an SQL Server database for my program or just use a local data file I have tried to create an SQL Server database from within VB Express 2005, but it gives me an error stating that remote connections are not permitted and says that I need to change my default settings to allow this. I have no idea how to fix that. What are the advantages and disadvantages of using an SQL server vs. a local data file if the program is only going to access the data from the computer that the program is installed on When you say "Local Data File" are you talking about using SQL ...Show All
Windows Forms MDI Child maximise
I have a MDI Parent and Child. I want to open the child as fully maximized (by that I mean where the normal title bar disappears and minimize/maximize buttons are replaced with small buttons just below those of the parent form). I cant figure out how to do this, when I open the child form as maximized it retains the title bar and minimize/maximize buttons. When I then click on the maximize button the form maximizes as I want it to, but I cant find the click event, else I would simulated this. That does not do it. It leaves me with the condition I described above, i.e. the form fills the entire space and is maximised, but still has a title bar and maximise/minimise buttons. I would like these to go away, as when the maximise button ...Show All
.NET Development XML variable problem(small question)
Hey, In this code: XmlTextReader theReader = new XmlTextReader ( Application .StartupPath + "\\options.xml" ); while (theReader.Read()) { theReader.MoveToElement(); if (theReader.LocalName.Equals( "Fontbar" )) { string value = theReader.ReadInnerXml(); if ( value = "1" ) { toolStrip2.Visible = true ; fontBarview.Checked = true ; } else { toolStrip2.Visible = false ; fontBarview.Checked = false ; } } } I am having the program in it's load event check to see if it should have the Font Toolstrip(toolStrip2) be visible or not...but on the line of code I highlighted red I get this error: Error 1 Cannot implicitly convert type 'st ...Show All
Visual Studio 2008 (Pre-release) Web method to retrieve instance from windows form
Hello, I'm making a Windows Forms application that hosts a web service. I got stuck because I don't know how to implement [OperationContract] method, which have to retrieve windows forms variable data. Is there any way to pass instance of this form or variable directly Or what else I could use to solve this problem For Web Service hosting I use WCF. Thank You. I am unclear what you are asking; if you are asking how to make your service get a reference to the form, you could always use [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single)] and then create your ServiceHost from inside the form, along the lines of new ServiceHost(new MyServiceClass(this)); // inside the form, so 'this ...Show All
Windows Forms set flag to listbox item that retrieved from registry
hi all, i have a list box conatins list of items retrieved from registry. and i have to add some new items to list manually. after that i have to parse accordingly. i need to put flag to items those i got from registry. Note: there should not be difference in the visibility of items . thnaks and regards ranadheer Hi, There are multiple possibilities. You could keep track of the items from the registry by using an external data structure: List< string > m_fromRegistry = new List< string >(); if (m_fromRegistry.Contains( listbox.SelectedItem ) ) { //from registry } else { //not from reg } You could also create a ListBoxItem class: class ListBoxItem { private strin ...Show All
Visual Studio Express Editions Visual Studio WebDeveloper and Oracle XE 10g
I installed VS Web Dev and am tryng to connect to a local instance of Oracle's 10g XE database. The text in the database connections box only mentions conections up to Oracle 9i DB. VS Web Dev does not seem to be connecting, but the error returned is from Oracle TNS: cannot resolve service name. How should the service name be entered in VS Web Dev. Does this mean 10g XE is out I mean connecting to the Oracle 10g XE database. I know the add-ins will not work but MSFT provides a .NET connector which does not seem to work. It could be that the connection string is not being correctly defined. ...Show All
