hye_heena's Q&A profile
SharePoint Products and Technologies A web part that is a consumer and provider at the same time.
I have already implemented a provider and consumer ASP.NET web parts and using them in sharepoint. Now I have to send some information from my consumer web part to another consumer web part. Is it possible If not can I handle it using ViewState Thanks Here is the exact error that web part shows in the tooltip of the context menu , when I try to make the connection via web browser interface: "Web part connections cannot be created or modified at this time.One or more web parts on this page contains more information about the problem." ...Show All
Visual Studio Discrepancy in reports
Hello, I created a report and added a suppression formula for 1 of the pageheader. The formula works well in the designer but not when i fire it of the asp page. On further investigation i found out that this was because the totalpagecount field(being used in the formula) was not being populated when the report was first rendered but when i went to the last record and then if i browsed again from the first record the formula starts working. The formula i used uses the totalpagecount variable which i think is causing the problem. I am not able to devise another formula replacing it. Basically this is what i have: PHa-Company Logo PHb-Header for Details sections fields GH1a-Order Num and associated records GH1b-Header for Details sections fi ...Show All
Windows Forms how do I restrict extension?
Hi, I've developed application with log files. I want to restrict extension to load the log files such as like, .aspx, .xml, .html, .htm. In my Parser class, I do something like this; public class Parser { public LogEntry[] Load(string p) { ArrayList entries = new ArrayList(); using (StreamReader sr = new StreamReader(p)) { do { string lineread = sr.ReadLine(); if (!lineread.StartsWith("#")) { string[] information = lineread.Split(' '); string[] allowedExtension = new string[] { ".aspx", ".xml", ".html", ".htm" }; if ( ) { LogEntry newEntry = new LogEntry(); newEntry.IPAddress = inf ...Show All
SQL Server Union for two sets with where clause
Hi, I have situation where I'm returning comparing data from two date ranges in a chart in MS Reporting Services. In regular SQL, I simply do a UNION between two select statements. I also have a dummy column returned to distinguish between the two selects. i.e. Select *, 1 As 'DataSet' from tblData Where startDate >= @sdate AND endDate <= @edate UNION ALL Select *, 2 As 'DataSet' from tblData Where startDate >= @sdate2 AND endDate <= @edate2 In MDX, I've only seen a UNION for the columns, but not with the WHERE clause included. Is it possible to have a where clause for each set What's the syntax Thanks a lot! WITH MEMBER Measures.Set1 AS 1 MEMBER Measures.Set2 AS 2 SELECT Uni ...Show All
.NET Development Master Detail Records
Hi! I am learning VB.Net programming and having some problem with master detail records. It works fine when I follow all the norms of master detail data entry i.e. when I insert a record in master table and save that record and then add the records in child table using grid then everything works fine and even the grid automatically displays the value of the field which is common in both the tables. But the problem is that I've a situation in which I've to enter the master and details record at the same time. Actually I am creating a loan registration form, in which along with all other details of the loan, I have to enter the details of the guarantors, the number of guarantors depends on the amount of the loan taken. So whenever ...Show All
Visual C++ LNK2001: unresolved external symbol in logFels.obj how to solve?
Below is the error I got: error LNK2001: unresolved external symbol "private: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > logFels::logFileDir" ( logFileDir@logFels@@0V $basic_string@DU $char_traits@D@std@@V $allocator@D@2@@std@@A ) logFels.obj I've read thru the msdn, tried to spot the error, but couldn't (must be blind) So I hope someone can help me to spot the error, thanks! This is my header file. class logFels{ private : static string logFileDir; public : logFels(){logFileDir = "" ;}; static void setLog(log4cplus::Logger logger); static string getDirectory(); static void setDirectory(string dir); ...Show All
SQL Server Dynamic table name in destination
How to create a new table dynamically in OLE DB destination. This is what i am doing I am reading multiple flat files in loop and saving file name to a variable. Then i have a source script component which read and transforms data .Now how can I push the data to SQL table. I want to create a new table with name saved in a variable. I tried using OLE DB destination and assigning table name from variable. Does'nt work. Thanks in advance for any insight on how to make this work. -Amar Amar Khaira wrote: I am reading files in ForEachLoop container and creating tables(works fine) but how to tell the OLE DB destination about table because the table does not exist yet. It will be created d ...Show All
Visual Studio 2008 (Pre-release) Can't see System.ServiceModel in Add Reference
Hi: I've just installed the July CTP of .Net 3.0 and its accompanying SDK. However, when I attempt to Add a reference to System.ServiceModel to a project in VS2005, I do not see System.ServiceModel listed on the .Net tab of the Add Reference dialog. However, the System.ServiceModel is in the GAC. This is happening on 2 machines. Anyone have any idea as to what may be going on here Thanks Lionel you can install vsextwfx.msi like explained in this blog,This should fix Add reference problem http://blogs.msdn.com/markgabarra/archive/2006/08/01/685797.aspx ...Show All
Visual Studio SourceSafe Add-in
I'm trying to get the VSS bindings for projects in a solution from the EnvDTE object. There is a SourceControlBindings object but I can't find any documentation on it. I can get the Bindings by cracking open the INI files for Non-Web Projects but not for Web Projects. There must be a better way! Any help Assuming that you are using VS 2005, try this (not tested): - Cast DTE2.SourceControl to EnvDTE80.SourceControl2 - Call SourceControl2.GetBindings(ItemPath) to get EnvDTE80.SourceControlBindings ...Show All
SQL Server SUM the return value of a EXEC SP
ALTER PROCEDURE [dbo] . [GD_SP_FACTURA_GLOBAL] AS DECLARE @DIR nvarchar ( 10 ) SELECT @DIR = DIR_NOME FROM Direccao EXECUTE dbo . GD_SP_FACTURA_ValorTotal @DIR I Have the query above, It's correct, but I want the SUM of all the values returned by EXECUTE function. Thanks Pedro: Define a temp table that matches the form of the result set returned by your stored procedure and then try INSERT IINTO #myTempTable" EXEC dbo.GD_SP_FACTURA_ValorTotal @DIR Dave ...Show All
Visual C++ Measuring run time of a process or function
Hi I'm trying to measure the CPU run time of a process. Currently I'm using GetTickCount and GetTickFrequency but the given time includes the context switch time and the run time of other processes running along with my process. Is there an API function to get the precise CPU time of the process without the dependency in the condition of the OS and other processes An example for that is the CPU time given for each process in the Task Manager, but I need a milisecond measurement. Hoping to get help... Thanks! To avoid influence of other Processes(even a debugger), use BOOL GetThreadTimes( HANDLE hThread , LPFILETIME lpCreationTime , LPFILETIME lpExitTime , LPFILETI ...Show All
Visual Studio Nested SQL For Crystal Report
Dear All, I am very new to crystal report. My problem is quite simple. First I have a table as branch and another one is employee. So I am doing first a select * from branch. Then based on each branchID I do another sql search called as select * from employee where employee.branchID=branchID.branchID. So how do I go about crystal to create this form of reports.Thus the second query is nested in the first query. I want my report to be formatted in this way Branch 1 Employee 1 Employee 2 Branch 2 Employee 3 Employee 4 Employee 5 Can some one pls help me I am very new to crystal reports. Thanks in advance. Hi melody45, Thanks for your reply. I ...Show All
Microsoft ISV Community Center Forums .Net Version in the future?
Hello, I am wondering are we going to have a .Net Version of Office in the near future. The most important function I want to get out of it, is the multiple library version control. This probably not going to help my current version issues, but I hope we start to using .Net multi-library-version-control as early as possible for the future. Thanks. Hello, Thanks for the reply. So far COM has this version limit that only one version of DLL can be referenced, and I don't have any way to reference a DLL conditionally. For my current problem, I am using Outlook.COM in my Excel file using version Office2003. But once I run the Excel file on Office2000 platform,I failed to reference Outlook.COM because the ver ...Show All
SQL Server Database conversion from SQL Server 2005 to 2000 is not working
hello friends, i am facing a problem in SQL Server 2005 Express Edition. The database created in the SQL Server 2005 Express is when opened in SQL Server 2000, it changes the data type of all the columns of all the table to text type. can anybody help me Hi. Thanks for the Suggesion. i need to use sql server 2005 database in SQL Server 2000. Is there any other way ...Show All
SQL Server Insert Data into a table from a txt file
In SQLServer 2K we had DTS and now in SQLSrv2005 I am at a disadvantage for this utility does not exists as a GUI. I am not a programmer of .NET and do not know how to make my own import utility. Can someone tell me how I can bring in data from a flat file into a table, please. Thanks Ronnie You can just use the BCP command-line utility or SqlBulkCopy managed class or TSQL BULK INSERT or OPENROWSET(BULK) commands. The latter two commands will give the best performance in terms of loading the file to a table. See Books Online topics for more details on these bulk loading methods. ...Show All
