lianalet's Q&A profile
Software Development for Windows Vista Asp.NET & WF- Performance issue when number users increases
Hi, My query is regarding the performance in the following scenario. User is creating a Ticket from asp.Net page which may or may not be sent for approval before processing. The Admin user can view/process the ticket, or can send for approval if required. Whenever the ticket is created , I want to invoke the workFlow runtime to save the state of the ticket and when the Admin user logs , I again want to get the ticket from its latest state using the WorkFlow Runtime. Now , 1) If suppose 1000-2000 users are accessing the Site to create/view their tickets then how many WorkFlow runtime Instances will be created 2) Will it affe ...Show All
Visual Basic EventID ?? is now InstanceID
Guys, On VB 2005 microsoft had the wonderfull idea of change the Eventid for InstanceID. I'm trying of retrieve the eventid in my application but it come with a very long number in some cases. How can I retrieve the EventID that you can see in the Event Viewer instead of the InstanceID Is there a way I can convert the InstanceID to EventID Ejemple: Private Sub btnSee_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click ' Create an EventLog instance and assign its source. 'Dim myLog As New EventLog("myNewLog", ".", "MySource") Dim entry As EventLogEn ...Show All
.NET Development HTML Mail using SmtpClient
Hi, I'm using .NET 2.0 (Beta2) and I want to send an email where the body is html. I'm using the System.Net.Mail.SmtpClient and System.Net.Mail.MailMessage classes. Before sending the MailMessage I add an alternteView using message.AlternateViews.Add( AlternateView .CreateAlternateViewFromString(<html string>, null , "text/html" )); but when I receive the sent mail it is blank. If I set the MailMessage.Body property to the Html string the it arrives as raw HTML, again in plain text. MailMessage no longer has a BodyFormat property as in the .NET 1.1 framework!! Can anyone help me Regards Graham Yo ...Show All
Smart Device Development wake the device while he is in screen save mode
Hi All, is there a way (I’m sure there is, I’ve just have to know how to do it…) to wake the device while he is in screen save mode for example, when I got something from the server and the screen is in save mode, to wake the device with my new content. thanks, Oren. This forum is intended to deal with issues directly related to the .NET Compact Framework. It appears that this question can better be answered by someone on one of the newsgroups for Windows Mobile or Windows CE. In order to get a quicker and more accurate response, please consider reposting this question to o ...Show All
SQL Server Need help on Matrix Column Grouping
Hi all, I am trying to make column grouping which look like this: Group1 Group2a Group2b Group2c G3a G3b G3c G3d G3a G3b G3c G3d G3a G3b G3c G3d Data Data ...Show All
Visual Studio 2008 (Pre-release) Several Problems with ListView
I have some problems when using a ListView. I still have the problem which I posted befor ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=379578&SiteID=1 ) and the problem Thomas S. Anderson already mentioned ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=384949&SiteID=1 ). In the Code-Behind-File I added some EventHandler to the ListView: ListView.AddHandler( ScrollViewer .ScrollChangedEvent, new ScrollChangedEventHandler (onScrollChanged)); ListView.MouseDoubleClick += new MouseButtonEventHandler (listView_MouseDoubleClick); ListView.PreviewMouseLeftButtonDown += new MouseButtonEventHandler (lis ...Show All
Visual C# switching alias at runtime
Is it possible to reset an alias at runtime Eg if I have using Office = Microsoft.Office.Interop.Word; Can I make this Office = Microsoft.Office.Interop..Excel from code Thanks&Regards, Pavan What would be the point changing alias at runtime Aliases are just to make the code more readable. After compilation, there is no such namespace as "Office" in your CIL code, just Microsoft.Office.Interop.Word and Microsoft.Office.Interop.Excel namespaces, even if you use aliases to change their names. So answer for your question is simply "No, you cannot", since aliases does not exist outside your source ...Show All
Visual C# Login
hi all, I am designing a login "component" for my application. Do you know of any good examples of login implementation on the web that I can get ideas from It must NOT be windows authenticated login. I have my own dB table etc. Thanks Hi If you have your own database table that stores your user's credentials then you could use SQL and ADO.NET to authenticate your users. The following assumes that you have a table called "Users" with at least the fields "UserID, UserName, UserPassword": private void btnLogin_Click(object sender, EventArgs e) { if (txtUserName.TextLength > 0 && ...Show All
SQL Server What's magic about DT_STR and size 50
Okay, this is probably my own stupidity but here goes. I am trying to make a very rudimentary package. I've got a data flow that has a flat file source. This source has fields delimited by the | symbol. I give the fields in the flat file source names. The first field is always exactly 1 character. When I use the advanced editor to look at the fields' properties, I see the first field, called ProductLine, is considered to be of SSIS internal data type DT_STR with a length of 50. I change the 50 to 1 because that is as long as that field is. No matter what I do, when I close the advanced editor and then open it again, the field length for ...Show All
Software Development for Windows Vista dynamicly use of Invoke Workflow activity
In my Workflow , i want to invoke a number of instances of an other Workflow . The problem is that number is unknown ( it's in a database ) . so i have to invoke the workflow dynamicly. How can i do that should I use the Invoke Workflow activity , or am i obliged to use a code activity in which I embend a foreach statement I thank every helper . I've found that on the book : " presenting wwf " Replicator The Replicator activity is designed to support scenarios where you need to execute an activity "n" number of times, but the value of "n" is only known at runtime. The Repl ...Show All
Visual Studio Tools for Office Accept Event for a Meeting Item
I'm working on an VSTO 2005 Outlook Add-In and I need to add an Event Handler for an Accept event on a MeetingItem. There doesn't seem to be one available in the OOM like there is for Reply, Forward, etc on a MailItem. Does anyone know how to access the Accept event on a Meeting Request in OL2003 Thank you. JW, What you are trying to do can be done, but you need to do it differently. The MeetingItem does not have a property that represents all of the people who have accepted, declined, or tenatively accepted an invitation. The way you handle this is by using the NewMailEx event (Outlook 2003). This ...Show All
Visual C# static employee Dept Type to limit asignment value
I would like to pass a value to my clsemployee Dept of Mgmt, RE, FID or CIA how can i create a static something so i can pass like Employee emp = new Employee; emp.Dept= Employee.CIA; tks~ Not directly. In your case: emp.Dept = 123; // compiler error, 123 is not a member of Depts. emp.Dept = (Depts) 123; // ok, the compiler won't complain. It's easy to circumvent this issue, though: 1) make Dept a property instead of a field (which is almost always a good thing to do) 2) in the set, check if the value is admitted by means of the Enum.IsDefined method. For instance: private Depts _dept; ...Show All
SQL Server JDBC Driver
Hi, I am writing a simple java code to connect to my newly-installed SQL Server 2005 Express. I have read that a new driver is needed to connect to the database (sqljdbc_1.0.107.104_enu.exe). Here is a connection sample I found: jdbc:sqlserver://localhost;user=MyUserName;password=**** and the driver class is com.microsoft.sqlserver.jdbc.SQLServerDriver This is far different from the one I used to have when connecting to SQL Server 2000 or MSDE (jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=dbNameSelectMethod=cursor) Also, I used to have the following when connecting to a database: 1. jtds (net.sourc ...Show All
Visual Studio Team System Error Executing reports
I have been evaluating the Team Foundation Server Beta Refresh 3 without any problems, but have recently installed on a new server the RTM Trial Version, but the reports don't work. For report Bug Rates: An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'PriorityParam'. (rsErrorExecutingCommand) Query (19, 3) The ALLMEMBERS function expects a hierarchy expression for the argument. A member expression was used. Any ideas Thanks Giles hi giles, My guess is that the warehouse hasnt uploaded any data yet. Please check the application ...Show All
Visual Studio Team System Workspaces are broken
I created a team project, created a distributed app in that project and checked it in. I then created another team project, created a native C++ app in that project and checked it in. Doing the above broke Team Build since both projects were associated with a single source control workspace. So I created a second workspace for the second project, and created a mapping in that workspace between the source control branch and working folder for that project. Team build is now happy, but the project itself is broken. Opening the source control explorer for the second project shows no mapping for any of the files, nor can I find any ...Show All
