J_Dude2003's Q&A profile
.NET Development Webservice or Class
Hi I am building a webapplication which will have a series of aspx pages for each of the functioanilty (Employee status, Employee Details, Company Details, payroll etc) I need to make a webservice to cater each of these functionailites, What should be the right approach to do this 1. should I create a .asmx file for each of the functionality that I want to provide OR 2. should I create a single .asmx file and also have classes in the same assembly so I will have a single webservice (.asmx) which will internally call these classes and return approriate data Please help!! Hi Thanks for your response. I just wanted to confirm one more thing My Application architecture would be something like this 1. UI Com ...Show All
SQL Server sql problem help
if there are two tables Books(BookID, BookName) and Author(au_id, au_name) and BookAuthor(book_id, au_id) which gives the books written by corresponding authors. Now i want to generate a result that indicates which books have been written by a particular author in the following format: (booid,bookname, isbyauthor) The isbyauthor is a boolean field that indicates whether a book is by a particular author. The should query returns the result for a particular author only. eg. 1, A , false 2, B, true 3, C, true ......... Please help The following query will do.. Select BookId, BookName, Case When Au_id = @SearchingAuthorId Then 'True' Else 'False' End as IsByAuthor From Books A Join BookAuthor B On A.BookId = B.Book_Id Join Author C on ...Show All
Windows Forms Folder Browser Dialog -- Disk Error
When using the folder browser dialog, how do you trap or prevent the "There is no disk in the drive. Please insert a disk into drive ..." dialog. This is happening for disk which the system has identified as removable media. Excel doesn't experience this problem, I believe I should be able to achieve the same level of performance. Mark, The folder browser dialog starts at the Desktop. When I select "My Computer" to expand that I receive the error popups regarding a "G:" drive. The "G" drive would be a sd slot on my HP printer and I have not tried to access that. Interesting, if I run under the debugger instead of running without I don't get any error popups. Th ...Show All
Visual Studio Team System Test not found in TFS build
Hi The test run fails with warning in buildlog.txt: "Test mytest cannot be found". The .vsmdi file loaded fine. Storage attribute in the .vsmdi file points to right folder where mytest placed. I've checked all properties - testlist, paths - everything looks fine, but the paths in "Search path(s) for tests" are still wrong, they point to solution folder. How can I add or change the "Search path(s) for tests" paths Zeev I think you're misunderstanding the SearchPathRoot property - this specifies the path to search for the binaries containing the unit tests, not the vsmdi file. Notice the Loading d:\Builds\DefenseAnalyzer3\...\DefenseAnalyzer.vsmdi line just above ...Show All
SQL Server IDTSComponentEvents' events? When are they fired?
Hi everyone, I was wondering when events inside IDTSComponentEvents interface are called when you throw a SSIS package I've got a private class which implements IDTSEvents and along with that got another one that implements the IDTSComponentEvents. I see how neither of them are fired when I debug the code by using F11, and I don't know what is it for. Let me know your comments or come back to me if you need further details on that. Thanks in advance, From my usage, tasks use IDTSComponentEvents. You do not generally implement this yourself, but implementations of it are passed to you in suitable methods such as the TaskHost.Execute method which you override when building a task. It allows you to ...Show All
Visual Basic Web Browser project
I am working on a very simple browser, mainly for quick web surfing without the need of menus, favorites, and other fancy features seen in other browsers. The problem is, im quite new to this programming language, and i barely got anything out of what little time i had in Introduction to Computer Programming (using Visual Basic 6.0) before being pulled out of that class to make up a required credit. Im clueless as to how to get the WebBrowser object to respond to the input in the AddressBar, and display the site the user types. Any help on this would be really greatful. Thanks Well, I'm not sitting at my main computer (the one with VB installed) so I can't be exact. But I believe it is in the project properties. (Found in the " ...Show All
Audio and Video Development How to disable PRINT SCREEN on DRM'ed Videos
You can still use "print screen" key to capture video frames on videos protected with DRM if you turn off the "Use overlays" in Windows Media Player's "Video Acceleration Settings" Im using Windows Media RM 10.1 to protect our streamed video content via web embeded objects. How to disable PRINT SCREEN on DRM'ed Videos Is there any workaround to prevent viewers doing this or is it posible to force the Windows Media player to "use overlays" Thanks, XyMeX Try posting your question here: http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.drm&lang=en&cr=US ...Show All
Internet Explorer Development Swaping rows of a table using javascript
Hi Developers and coders!!! I am facing a complex situation. I have to swap rows of a table client side using javascript. I thought i could do it using HTML Dom but i am not able to do it, can any one help me for this. suppose i want to move Item 2 one level up on click of move up button using javascript, how is it possible using java script. I will be very thankful if could get some code snippet. Item 1 Item 2 Bye............ Hi, The article at http://msdn.microsoft.com/library/default.asp url=/library/en-us/dhtmltechcol/cols/dndude/dude07232001.asp frame=true may help give some idea on how to manipulate tables from script. Thanks -Dave ...Show All
Visual Studio Team System Intalling Database tier
When I install the database tier, the databases are not created. Wjhat kind of uninstall i should do to recreate the databases Hi smathieu, Are you receiving any errors when you try to install Can you post the details of any error messages here Can you also post the details for the machine and type of installation you are performing Also, I don't know if you are following the latest installation guides on MSDN, but it is important to follow them exactly, making sure you have all of the necessary prerequisites installed first. You can get started here: http://msdn2.microsoft.com/en-us/library/ms253084(VS.80).aspx -Matt ...Show All
Windows Forms how to pass searching for updates if the publishing location is down
when starting published application, it tries to get the updates from the publishing location, if he can't find the location then error message will appear and user can't start the application. how can i force the application to start using the previous version of the application if the location is down thankfully waiting for reply ASAP. I was pretty sure apps should be able to start if they can't get to the web server. Hopefully someone from the ClickOnce team can jump in. One thing you can do is to change your settings when you publish so that updates are checked in the background. This will allow the app to start. THe downside is that if you have an update available, without some code in your app to handle ...Show All
SQL Server temporary table not dropped after user disconnected (SQL2005)
Hello all, We are developing some stored procedures on the SQL2005 server. All of them use local temporary tables to store temp data. Due to some errors in the procedures, run-time errors are produced and the procedure stopped. But after user disconnected, these temp tables are still exist in the tempdb and cannot be deleted. We can only view these objects using SA account in tempdb.sys.objects view. I would like to ask if there is any method we can delete those unused objects Thanks a lot! Bryan I would recommend that you look at the following KB, and post SP2 hotfix that was released by Microsoft in March 2007. I had the exact problem you are describing and this resolved it completely. ...Show All
Visual C# Array of struct A in struct B!
Hi struct A { int x; int y; } struct B { int z; A [] tab=new A[14]; //cannot have instance field initializer in struc ...I know! } but i need an array of struct in another struct thanks. struct B { int z; A[] tab; public B(int intZ, int tabLenght) { this.z = intZ; this.tab = new A[tabLenght]; } } More clear now ...Show All
Windows Forms How to stop appended columns in DataGridView when using DataSource reference?
Using the form designer, I create a DataGridView with ten evenly spaced columns. I placed a button that when clicked generates a datatable that is then assigned to the DataGridView object. Instead of placing the values in the designed columns as expected, the designed columns remain blank and the data table values are appended to new columns on the DataGridView. private : System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { double HighDiffPressSpan = 500.0, MedDiffPressSpan = 100.0, LowDiffPressSpan = 25.0, StartPress = 200.0, PressIncrement = 10.0, StartTemperature = 30.0, TemperatureIncrement = 10.0; DataTable ^dt = gcnew DataTable(); for ( int i = 1; i <= 10; ...Show All
SQL Server xslt filters on xml output. cdata-section-elements and omit-xml-declaration problems.
Hi All, I'm using some xslt documents to transform the xml output of my Reports but have come across two curiosities where the xslt filter seems to behave unusually. Firstly, I need the final saved file to have an xml declaration, which I believe it should do by default. Even if I put omit-xml-declaration="no" in the xsl:output tag I don't get an xml declaration. At present we have a custom job that writes these declarations back into the xml after SRS has saved it. Secondly and more importantly, I need to have some of my output tags wrapped in CDATA sections. I've tried using the cdata-section-elements attribute, again with no luck. my XSLT looks something like this (simplified for space) < xml v ...Show All
Visual Studio Express Editions one image add another logo image in .net
one image add another logo image in .net hi friends any one tell me, using vb.net or asp.net or c#.net any language use my question is one picture box open a picture. iam save a picture.ok is general. one picture box open a picture.now i am add another image leftside or rightside or top or bottom. iam save a single image. ============================================================ example i am image upload sample: same i ask http://img526.imageshack.us/my.php image=iamgeoverlaybq0.png ============================================================= please try and anyone give code to me. my mail id is viswa.vp@gmail.com i am waiting for ur message. please urgent. thanks Thanks Lepaca my doubt is Main Image ...Show All
