MeetJayBlack's Q&A profile
Visual C# Finding controls on a web form
I'll set out the pattern for you. I am writing a method - purpose unimportant but the location I think is important. The method is based in a user control, this control is on a web page that also inherits from a Master page. I am trying to find a control that is on a different user control that is in the same web page. I have tried various routes of the Page.Controls collection and using the FindControl method always returning me a null. If I understood the heirarchy better I could probably find it. Page.Parent is returning null. Page.Controls[0] appears to be the base page It's probably Page.Controls[0].Controls[a reference to my usercontrol in question].FindControl("control"); So far though I haven't found it :) ...Show All
.NET Development RegEx and URL's
I need a regex pattern that can be used to extract urls from the clipboard. Clipboard data could be text, html or rtf even. Possibly three different patterns Any ideas Anyone done this sort of thing before There are so many problems of course, for example invalid characters in url, url cant start with a hyphen, but can contain a hyphen etc. All of these need to be matched! http://www.url.com http://url.com url.com www.url.com (and each one could be += /file/file.html) try this: Regex theRegexURL = new Regex( "(([a-zA-Z][0-9a-zA-Z+\\-\\.]*:) /{0,2}[0-9a-zA-Z;/ :@&=+$\\.\\-_!~*'()%]+) (#[0-9a-zA-Z;/ :@&=+$\\.\\-_!~*'()%]+) " ); If (theRegexURL.IsMatch( theUrlInput )) { // ...Show All
Visual C++ Can I use POSIX threads in a atl STA project
I have a library which uses pthreads inside of it. Can I use this library safely in a single threaded apartment project. If I can't what are my options . I want to use this library for building a com component. Thanks I wrote my component a little bit. This component use the C library to send HTTP messages. e.g. myComponent.Send("HTTP data"); Send() method uses the C library internally. The C library method should block until the response arrives and give me the response. The problem is that if the response take a long time to come the method just returns even before the response arrives. If the response arrives quickly it will capture the response. What could cause this kind of a problem. Actually this com component is a d ...Show All
Visual Studio Team System Tfs DataBase Schema Documentation
For a better understanding what's happen under the hood: Where can I find documentation about the schema of the Tfs Database. - Meaning of the tables and columns - how the tables are connected (implicite). I don't find foreign keys in table definitions. Thank you in Advance Regards Sorry, but there is no documentation about the database schema, as accesing directly to it is not supported nor recommended by Microsoft, but if you want to do something with the artifacts avaliable in TFS you have a model object, and also if you need help just tell the problem and I'm sure you will get help on this forums ...Show All
Visual Studio Numbers and date format in Visual Studio Reports (.rdlc)
I am using an english version of visual studio 2005. I am from a spanish spoken country (CHILE!). Until now when I program, I can change the format of numbers and dates to the formats use in my country. The problem is that I need to format numbers in the reports (reportviewer) that I create in visual studio. The reports are in the format .rdlc. I need that the numbers have as a decimal separator a comma (,) and as a number separator of thousands a period (.). In the case of date format, instead of showing the report the day "Monday, 12 of Febrary", I need to appear the name "Lunes 12 de febrero". How can I do this in my reports since I have a english version of the program Thanks in advance Mike ...Show All
.NET Development Seek suggestion on .NET support options
Hi everyone, Does anyone out there have some recommendation(s) regarding alternative forums for discussion / questions / answers about .NET programming, C# development, etc It's great to have the MSDN forums, but, the "oracle is not always in", and I find that more of my questions go unanswered than not...(I do try to form my questions as well as I can, and try to be aware of the proper etiquette, read faqs beforehand, etc...I think the problem is simply that most of the problems I've had a genuinely quite obscure, ...for example, I've got a problem right now with a bizzare compiler error messsage ('assembly /../..longpath/xyz.dll must be strong signed in order to be marked as a prerequisite') which is fatal to the build proc ...Show All
SQL Server Loop throught columns of an Excel file using dtsx package!
Hello, I'd need an help because I'm stucked!! I have to import an Excel file into my DB. The Excel file is made by 2 worksheets but I need only one and inside this worksheet I have to loop through the columns and for each column I define a Data Flow that trasform the data as necessary and then insert into the table. I started with a "Foreach ADO.NET Schema Rowset Enumerator" with connection=excel file and the schema was set to "Columns" but the loop go also through the worksheet that I don't need.. after 4 hours of tries I'm lost... Someone could give me an advice ThankX Marina B. Hi Cian, I hope that this reply will answer your questions.. the import is done in a daily base: The ex ...Show All
Visual Studio 2008 (Pre-release) how to use ribbon control(Office 12) with C#/XAML on June CTP
I am looking to incorporate ribbon control in our future application based on WPF, WCF and would like to build on ribbon control. Is there any documentation how to incorporate that. Atul Ribbon is a particular control that you can modify by using a XML file but I don't think that you can add it to your WPF application. It's a control dedicated to Office application so if you want a ribbon in your app, you will need to develop it.... Bye ...Show All
Visual Studio Team System Problem with VSTS workgroup instalation
Hello During instalation, after Platform Scan, i've got the message The System Health Check has detected a problem that will cause Setup to fail. Description The original Internet Information Services (IIS) Default Web Site does not exist or is not configured properly. Workaround / Remedy Internet Information Services (IIS) Default Web Site is a prerequisite for this product and must be running before you can install this product. More information For additional information and help please refer to: http://go.microsoft.com/fwlink/ LinkId=52502 any one know - what i should do with it , of course i installed IIS 6.0 before without Frontpage 2002 Ext Lufa My solution was to reinstall IIS.. This ...Show All
Visual Studio Package Issues: getting fullpath for the file in the activeView, calling File->Save, snippets, autocompletion, toolbox filli
Hi all, I have some problems with a vs package and I need help fast... Let's say that I work with the Example.ManagedMyC (c#) and I included a new vspackage in the solution. The package adds a new menu to the standard devenv menu (MyC Tools) with a command (My test command) and a contextual menu with the same command. http://msdn2.microsoft.com/en-us/library/bb165473(VS.80).aspx I've added a class to the package project which implements the IVsEditorFactory interface. I have some questions about managing myc files. 1. If a myc file is opened in the active window, and I execute the command (click 'My test command' in 'MyC Tools' menu) how could I get the full path to the myc file in the callback method of the command 2. I would like that ...Show All
SQL Server Multi Value Parameters
I just created a report with 2 parameters and it works fine. If I change one of them to MV it still works but if I pick 2 values I get a message about a problem with the "," - Incorrect syntas near ',' Is this a known problem or is it something I'm doing. Is a problem is there a fix for it. YOu habe to change your query after changing the parameter type, as your query probably look like WHERE SomeColumn = @MyParameter which will evaluate in a MV-Parameter to WHERE SomeColumn = 'A','B' This is not valid SQL. Therefore you to write your query like the one below. WHERE SomeColumn IN (@MyParameter) That should work for you and your value list. HTH, Jens Suessmeyer. --- http://www. ...Show All
Visual Basic A Few Questions (VB, Studio 05)
I have a couple of questions, I've used the "service control" tool to control spoolsv and a few other non-essential system processes(starting and stopping) I'm using the following code; in this case I'm using the spoolsv code. StartSpool.ServiceName = "Spooler" StartSpool.Start() Is there a way of adding an If/Else to error handle As when one of the processes is already stopped and I click the "stop spool" button it crashes the application and (for me) causes an extreme slow down on my pc for a few minutes. I would like to know if its possible to add a message box, if the process is not running. Further to this, is it possible to use checkboxes to select items, then through 1 command b ...Show All
SQL Server Problem occurs when migrating a SQL Server 2000 database to a SQL Server 2005 server
When I try to migrate a database on a SQL Server 2000 server to a SQL Server 2005 server with the Copy Database Wizard of the SQL Server Management Studio, I'm confronted with the following problem; Performing operation... - Add log for package (Success) - Add task for transferring database objects (Success) - Create package (Success) - Start SQL Server Agent Job (Success) - Execute SQL Server Agent Job (Error) Messages * The job failed. Check the event log on the destination server for details. (Copy Database Wizard) When I take a look at 'Event viewer' on the SQL 2005 server, the following error is displayed; InnerException-->An error has occurred while establishing a connection to the server. When connecting to SQL Server ...Show All
Visual Studio Express Editions Setup Error
When i'm trying to install VB2005 I get a error from BITS or something. So i've downloaded BITS and wanted to install. But then i get this error: http://img178.imageshack.us/img178/7981/bitserrorcw5.png What can I do about it Looking at the request i would go through a windows update and make sure that you have the correct patches and updates applied, then using the CD that you installed the OS with, go to the control panel and add the BITs components then windows update again, and try the install. ...Show All
SQL Server article row filter - 2 parameters
hello, i need to filter an article based on a user-supplied datetime filter (the datetime parameter is specified by the subscriber just before replication). at the same time i need to filter again by user (different subscribers get different rows). i already did the user-based filter using HOST_NAME( ). but the difficulty here (al least i think so) lies in passing 2 parameters to the filter. i cannot rely on using SUSER_SNAME to pass the user filter, because no one will want to create 500 user accounts. so i guess the only solution here is to pass both parameters using only HOST_NAME( ) and then write 2 splitting functions which uses HOST_NAME( ) as its parameter. am i right publisher/distributor is sql server 2005, all subscribe ...Show All
