Besnik.S's Q&A profile
Visual Studio 2008 (Pre-release) Looking for a working Attached Events sample
Hi, has anybody either succesfully implemented a custom Attached Event or seen an example somewhere I can't find any documentation available aside from the fact that implementation is similar to the Attached Properties approach. Thanks Nick and Chaz, thanks. I'll revisit my understanding of routed events again later this evening. It seems I'm always tying myself up in knots with this subject. ...Show All
.NET Development Adding e-mail addresses to System.Net.MailMessage.To collection (+)
I might be mistaken, but in spite of MSDN saying, that MailAddressCollection.Add(string addresses) can be used to set address es , it doesn't want to recieve string like that "1@1.com 2@2.com", throwing an exception with the message: "The passed string is not in correct format of e-mail address", or something like that. So the question is - is it somehow possible to add several e-mail addresses into MailAddressCollectio ...Show All
.NET Development Is it possible to convert XML into a Class?
Given an XML stream as below, is there any possibility to convert the same into any treditional class style with . (dots) as seperator of the nodes of the xml file... for instance bank.code.tostring() should reslut me " 5070 " and bank.description.tostring() should result " ICICI - Bangalore " bank.location.destination.code should result " MB " bank.location.zone.code.tostring() should result " ...Show All
.NET Development catch (Exception) slow
hi, I try to make the sum of a Sql column : if there is nothing i want the sum to be null (zero) try{ ......select sum (price) ...... } catch( System.invalidcastException ) { sum=0; } but it is very slow . How can I make it fast In fact each time I have an excpetion it is very slow . Some of them can happen often and I need a mean toi accelerate those. Thanks for any help Another option is to actually m ...Show All
.NET Development WSE 2.0 SP2 Installer Error 1001
Hi, I'm trying to install Microsoft WSE 2.0 SP2 on an XP Professional machine. This is a fresh install of the WSE library, no other version has been installed previously. I am using the installer directly from: http://www.microsoft.com/downloads/details.aspx familyid=FC5F06C5-821F-41D3-A4FE-6C7B56423841&displaylang=en I receive the following error: Error 1001. Unknown Error (-1) and then: Error 1001.Could not ...Show All
.NET Development Browser waits till it gets response thrgh xmlhttp
Hi All, I'm using xmlhttp and sending data to an .aspx (this aspx page...performs all database transactions..) and returning the result. I gave an alert message to test the response..It take a time from readystate1 - 2..ie.loading..to loaded. But the actual problem is , the browser doesnt allow the user to navigate to any other links till it get a response. As I m using asynchronous call, by rite it should allow the user to navigate to OTHER pag ...Show All
Visual Studio Express Editions referencing files in application dir
Hi, Some help please I have the following line of code which sets the path to the xml file Dim datafilepath1 As String = "c:\settingsdata.xml" In VB 6 I could use the folllowing so that the path to the file will be in the directory where the application files reside so I don't have to worry about where the program resides on the computer. =App.Path & "\" & "settingsdata.xml" I have tr ...Show All
SQL Server New Server Registration to External Database
Hi All, Quick question ... Is it possible to add an external server registration using SQL Server Management Studio Express CTP Reason being I have been doing some work from home and need to port the data back to the office who are on SQL 2000. I have a database with my web hosting company and wanted to export the data to the 'live' database so I could import to the office database - any ideas I've tried to connect using my log ...Show All
SQL Server Renaming databases sloooow
We have SSAS 2005 setup which rebuilds our cubes each night on a single server. What we were trying to do is make it so that each night a second database is built and processed for the next days data, and then the previous days database is dropped and the new one renamed to the correct name. This was meant to minimize downtime. The problem is, renaming the database is slow (it takes hours!) .. is this a bug We've tried renaming it through AMO an ...Show All
Visual Studio Express Editions Project Files
MSVC++ 6.0 had a wonderful feature in which during the compile process of the main code (which had, of course, user #include file(s) in it), the environment would identify ("discover") *all* header files upon which the project was based - automatically. Do the later MSVC versions have this capacity If so, how do I set up my environment to make this happen and where in the IDE would these files be displayed Thanks. ...Show All
.NET Development MySql and SqlDataAdapter
I'm tring to use a SqlDataAdapter to access some data in a MySql database. The problem is that the SqlDataAdapter.SelectCommand.Connection.Open() does not like my connection String which is: " DRIVER={MySQL ODBC 3.51 driver};Server=10.10.0.229;port=3306;Database=dbName;Uid=myUserID;Pwd=myPassword; " If you take out DRIVER={MySQL ODBC 3.51 driver}; and port=3306; it runs but then it doesn't find the database. The error reports tha ...Show All
Visual Studio Express Editions Question about button to website
Hey guys, I have a noob question. I forgot...this. I have a button. I want it to go to my website from the button. The button says go to website...when it's clicked....it goes to the website....how Paul P.S. I really forgot this. it is just one line: Process .Start( "http://www.microsoft.com" ); ...Show All
Visual Studio VS code generation
I'm working on custom Designer. This designer must generate code files with partial classes definition (like Form designer generates Class.Designer.cs) in C#,mC++,VB,J#. I have no problems with generating Class prototypes (using DTE CodeModel) The question is: Is there any VS classes that allow me to parse methods: for I need to generate something like Initialize methods of Form designer. Its burie ...Show All
Visual Basic In Access 2003 VB, textbox names resetting to upper case
I'm trying to correct a compatibility issue by changing the table and field names to all lowercase. In VB code, the control names automatically change back to initial caps when I try to correct them. I've searched for hours trying to stop this--any assistance greatly appreciated. These forums are for VB.NET questions. It sounds as though you are using the internal VB in Access 2003 which is Visual Basic for ...Show All
SQL Server Report History in SQL Reporting Service
Hi, I am using SQL Server 2005 Reporting service. I am working on a report. I have made several subscriptions for it. Report runs according to subscription. SQL Server Reporting service also offers functionality to save report histories. Now how can I configure it so that whenever report runs according to its subscription, a history should be automatically saved If in case it is not possible by some automatic process then is there any way to s ...Show All
