Hi, I have made one State Machine workflow, which has got multiple stages, and sub stages which are linked with each other. Now each stage has event driven activity which handles external events. This is working fine when from my UI I invoke each event on different button click. Also I am persisting the state of the workflow in SQL database. Now my requirement is on one button click, I want to invoke multiple events from multiple stages one by one and in the order I have defined in the workflow. After invoking the first event, when I am trying to invoke the second one, which is in next state, an error is generated. 'Event ConductInitialInterviews on interface type RecruitmentTracker.InterviewProcessService.IInterviewProcessService for instance id 050b6e1d-e0ad-4a29-92a2-76cf54862aeb" cannot be delivered.' Does any one has any idea? Thanks in advance !! Chintan
chintan1979
Posts
-
State Machine Workflow, calling External Events -
Web Parts (ASP .Net 2.0)Hi, I am using web parts in my application. I have dragged and dropped web part manager, web part zone on my aspx page. Then I dropped few controls in web part zone and gave title etc. The problem is, at the design time I can see the image to open the menu to minimise and close the web part zone. But when I run my application in IE, I can't see that image to open the popup menu to minimise and close. Please assist. Thanks in advance !! Chintan
-
Adding control to Calendar ControlHi Guys, I want to add a dropdownlist to the calendar control so that the user can jump to a particular year otherwise going to a year like 1970 is next to impossible. Please give me a code its very urgent. Thanks in advance !! Chintan
-
Generic Sort ClassHi, Use this class. In oyur code You can write. arr.Sort(new ObjectComparer("Name", True)); [Serializable] public class ObjectComparer : IComparer { #region methods /// /// Compares two objects and returns a value indicating whether one is less than, equal to or greater than the other. /// /// First object to compare. /// Second object to compare. /// public int Compare(object x, object y) { //Get types of the objects Type typex = x.GetType(); Type typey = y.GetType(); //Get each property by name PropertyInfo pix = typex.GetProperty(Fields); PropertyInfo piy = typey.GetProperty(Fields); //Get the value of the property for each object IComparable pvalx = (IComparable)pix.GetValue(x, null); object pvaly = piy.GetValue(y, null); //Compare values, using IComparable interface of the property's type int iResult = pvalx.CompareTo(pvaly); if (iResult != 0) { //Return if not equal if (Descending) { //Invert order return -iResult; } else { return iResult; } } //Objects have the same sort order return 0; } #endregion #region constructors /// /// Create a comparer for objects of arbitrary types having using the specified properties and sort order /// /// Properties to sort objects by /// Properties to sort in descending order public ObjectComparer(string fields, bool descending) { Fields = fields; Descending = descending; } #endregion #region protected fields /// /// Properties to sort objects by /// protected string Fields; /// /// Properties to sort in descending order /// protected bool Descending; #endregion } Chintan
-
Accessing ViewState in ClientSide ScriptHi, Thanks for your reply. Yes, I can access __ViewState element in the jave script. But its value will be encrypted. How to access a particular index of the ViewState? For e.g. if in my Code Behind File this is the statement I am writting in the Load. ViewState["Name"] = "Chintan"; How can I access the value of ViewState["Name"] in my Client Side Java Script Function ? Thanks in advance !! Chintan
-
Accessing ViewState in ClientSide ScriptHi, Can I access my ViewState in Client Side Script ? If Yes then How ? Thanks in advance !! Chintan
-
Calendar ControlHi, In Calendar Control we can nevigate thru months but can't jump to a year. For e.g. from 2005 to 2006. I have to navigate thru all 12 months of 2005 to move to year 2006. Any solution ? Thanks in advance !! Chintan
-
Control to pick up Folder Path in ASP .NetHi, Thanks for the reply. I want to give the user a option to select a folder and not a file. Like for e.g. I want to ask user a path for saving temporary files. The control you are talking about is for selecting a file and not the folder. Thanks in advance !! Chintan
-
Control to pick up Folder Path in ASP .NetHi, I want to give the user a control to pick up the folder path and as the user selects a folder, the same needs to be assign in one TextBox for saving purpose in my ASP.Net Page (Same like File Browser Control, Input type='file'...). But I am not able to do the same.
-
Spell check.Hi friends, If any one can help me in implementing spell check in my web application. I am using a rich edit box (Bold, Italic, Under Line, Fonts - Type, SIze, Color etc.). O/S : Windows 2000 Platform : .Net Framework 1.1 Thanks & Regards, Chintan Chintan
-
Sending messages to the client application from the server applicationDear friends, From my server application I want to send messages to all the clients connected to the SQL database. How can I achieve this? The scenario is like this... At the day end, on the server the administrator of my system runs the day end option. This option is suppose to transfer the records of a particular day to respective files and so on. Before running the day end option, all the clients has to log out. Now the server is in a server room and clients can be any where in the office. So it’s not possible for the administrator to tell everyone individually to close the system. So I want to develop an option, which tells the administrator that who all are using the system, and the administrator can send them a message to close the system. I am able to display the name of the users logged into the system at a current time but I am not able to send the message. I know that I can use windows sockets for that purpose but can't I use windows messaging service for this?? Operating System: Windows 98/2000/XP/2003 Language: Visual Basic Backend: SQL 2000 Regards, Chintan Chintan
-
Help required for implementing the rowlevel locking trough ADO Connection ObjectDear All, I need the help for implementing the row level locking in my transaction-based form. Following is the details of the working logic and the problem faced by me : - Front End: MS Visual Basic 6.0 Back End: MS SQL Server 2000. In one of my form first the user makes the document and saves it. While saving the document numbers is generated and then the details are saved in the detail table and one entry will be passed in the header table. After which the user needs to do the authorization of the same. In the authorization form when the user selects the particular document for authorization then in the lost focus of the document number text box I want to lock the record for that document in the header table. The table contains precisely one record for each document. I first BEGIN the transaction for the connection object I’m using and then I set the LOCK_TIMEOUT property to 0, by executing the statement 'SET LOCK_TIMEOUT 0' through the connection object. Then I execute the following statement: - SELECT * from HEADERTBL WITH (UPDLOCK) where GRNNO='001' But when I go back to SQL Server and execute the SP_LOCK procedure that gives me the status of locks hold by SQL Server. It shows that the record that I want is locked by Update lock but the other records are also locked by SHARED Lock, which I don’t want. After going through the number of records locks it was found that it locks the whole page by default with SHARED Lock and the record matching the where condition with the lock specified. The problem is that if some other user when tries to lock some other document for UPDATE Lock then SQL Server refuses that until the rows locked previously are released. Is anybody can help to set some property through ADO or directly so the records matching the where condition are only locked and other users are also allowed to lock other records then the one already locked. Also the locked records need to be allowed to read by all the users as they take the help for document number and due to which I was unable to use EXCLUSIVE Locks. Revert back in case of any further details are required. Chintan
-
Setting focus to a control at server side.Hi, Thanks a lot for your replay. Also I have got another solution for this problem. It may help you. I have written one common function in each code behind page. Private Sub FocusOnControl(ByVal name As String) Dim strBuilder As String = "" strBuilder += "" strBuilder += "document.getElementById('" + name + "').focus();" strBuilder += "" RegisterStartupScript("FocusOnControl", strBuilder) End Sub I am calling this function to set focus to any control from any procedure. For example on a click of a server side button if I want to set focus to a server side text box named 'txt1' then I just call the above function in the click event of the button as FocusOnControl("txt1"). This line does the needful to set focus to my text box. And this all is done in the code behind page. Once again thanks a lot for your reply. Regards, Chintan Chintan
-
Setting focus to a control at server side.Hi Guys, In my page I have two server side combo boxes (web controls), which are not visible when the page is loaded as they are positioned at the bottom side of the form (Means you have to scroll down). For example I have two combo boxes, one for country and other for states. As soon as the user selects any country respective states are added to the states combo box in the “SelectedIndexChanged” event of the country combo box and as the click event generates a post back the page is loaded again and the focus is again on the first control of the form. So the user has no idea where he was earlier and is very irritating too. How do I rectify this problem?? Your quick help in this regards will be appriciated. Thanks & Regards, Chintan :(( Chintan
-
Picture GalleryHi Guys, I am creating a portal for search... In this portal we have something like Picture Gallery.. A user can search for pictures using a keyword. I have problem in displaying the pictures in a format like datagrid. In which we have page numbers comming (Or we can have custom paging). How do I go about this... If u all have seen a google search for pictures.. They display 15 to 20 pictures per page and at the bottom have page numbers coming up. How do I do this??? Can I use the Datagrid control... Chintan
-
FONT LISTHi Guys, Can Any one guide me how to get the list of fonts installed on the system, also the list of named colors programatically. Regards, Chintan
-
Datalist ControlHi, Thanks a lot... I have done this successfully this DataList Web Control and really it's easy to use. I was not knowing how to do it... It's done Thanks a lot... Chintan
-
Datalist ControlHi, Thanks for replaying so fast. I have already used the listbox control with multiple selection allowed. But my client doesn't want this. He wants check box selections. How do I do it??? Chintan
-
dynamic hyper link in datagridHi, You can try out this... In the select statement add a dummy column as urlhref. This column will have the name of the page u want to call combined with the respective PID. For eg. if your table has two columns citycd and citydesc then write a select statement in this fashion.. select citycd, citydesc, 'webform1.aspx?c=' + citycd as urlhref from city. Now in datagrid columns, you must have made one column as hyperlink column. There is one property of the hyperlink column 'DataNavigateUrlField', which takes a field name of the datasource as its value and the datagrid uses this field for href tag for each row in the hyperlink column. So you can set this field DataNavigateUrlField='urlhref'. So now each row of your data grid's hyperlink column will have diffrent href as per the 'urlhref' column value. May be I am not able to give a perfact explaination but hope that it will help you... Chintan
-
Datalist ControlHi Guys, I want to display all the cities from a SQL table so that the user can select multiple cities as 'Prefferd Area'. On submitting the form all the cities selected should go to a table where the selection is stored userwise. I have achived the displaying of this thing by using Datalist control. Even I was able to show the selection made by the user earlier, if he clicks on the option again. ( I have entered dummy data in the table manually). My problem is how will I come to know, which cities are selected by the USER on submit click as I am not getting the individual check boxes on submit click event. Can any one help me out??? Chintan