.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

WF solution to my problem

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :JavaScript/VBScript

I'm new to Work Flow. I'm trying to find whether WF provides a solution to my problem.

I'm working on a solution for a refund process. The customer calls the call center. The agent looks at the customer's record and issue a refund - if the amount is less than $5. The customer can't give a refund over $5, so he can only make a request to the supervisor. The supervisor can approve or reject his request. The agent calls the supervisor to his cubicle. The supervisor enters his secret code and approves the request. Also the agent can't give more than he is allotted for a day like $25. In that case also, the supervisor has to approve the agent's request.

The agent uses a web based application. This front-end application calls a WCF service hosted in a different office. The service can respond to the front-end status like (1) timed out (2) rejected (3) approved (4) investigation. The service gives a status of 'investigation' because there are some steps that the customer has to follow has not completed - like the office has not received the mail-in rebate form.

Now to the solution. I have to bring some efficiency in the communication between the agent and the supervisor. The supervisor does not have to run to each agent to approve the request. Secondly the 'timed out' and 'investigated' requests need to be processed in 24 hours time again and n

View Complete Post

More Related Resource Links

Extreme ASP.NET: A New Solution to an Old State Storage Problem


State management in Web applications is a contentious issue. Should you store user data per session or should you persist it across sessions? You can easily store information temporarily while someone navigates your site by using session state.

Fritz Onion

MSDN Magazine April 2006

Data Mining solution - SSRS Problem

I have created a Data Mining - Time Series solution and I am getting proper results from SSAS(Mining Model prediction tab) & SQL Management Studio query. However when I try to create an report using SSRS, In the field where I am expecting the predicted value, I am getting "#Error" Any suggestions as why this is happening.

Who can come up with a good SSIS solution to this problem?

Test your SSIS optimization skills on this problem: http://ask.sqlservercentral.com/questions/17499/phil-factor-speed-phreak-challenge-6-the-stock-exchange-order-book-state-problem Johan Åhlén http://blogical.se/blogs/jahlen  

ResGen.exe: Problem when compiling solution appears out of nowhere

  Hi guys!   I have a weird problem with my solution (or perhaps my machine?). When I try to compile my solution with embedded resources (two .docx documents), I receive the following error german error message: Die angegebene ausführbare Datei der Aufgabe "ResGen.exe" konnte nicht ausgeführt werden. Zugriff verweigert    my english translation: The executable file for the task "ResGen.exe" cannot be executed. Access denied. I have no idea, how to resolve this error. Does anyone have a clue? Regards, Florian P.S.: @moderators: I hope, I've posted in the right forum; if not, feel free to move this thread in the proper place.

is the overarchitecting of a solution a major problem in the development world today.

Hello all,I have been on this project for a while and wanted to get your thoughts.I have been working on a Sharepoint solution for a while to create a ASP .Net feature in Visual Studio. Now this is your standard CRUD application that queries data, displays data, updates data etc.As I am proceeding to code in this the original developer has used quite a few patterns MVP, observer, commands, repository and a couple of others. Being that this is Sharepoint developement and integration with Sharepoint is not good at all, I am finding that to much time is spent managing facets of the patterns rather than actually finishing the app. Another point is that debugging a Sharepont app with VS2008 is a pain because I have to redeploy the app everytime to make sure my changes worked.My chief concern is that its taking me going through about5 hours, 8 different objects having to redeploy the app to sharepoint over 10 times to test my code just to populate a couple of grids and comboboxes. It just seems more efficient use of my time program this app just seperating out my data access and business logic layers and calling the them from my code behind in my ASP .Net pages. It just seemed like he used the patterns just to use them without understanding why they are needed or a patterns proper place in an app..What do you guys think?

Solution Deployment Problem (Administrative Framework Object Dependencies)

I'm having a problem with the deployment of a SharePoint workflow solution - hopefully someone can help me out.Here is the sequence of STSADM commands and their output from the console:C:\Workflows>stsadm -o deactivatefeature -name IL.SharePoint.Workflows -url http://localhost/ -forceOperation completed successfully.C:\Workflows>stsadm -o uninstallfeature -name IL.SharePoint.Workflows -forceOperation completed successfully.C:\Workflows>stsadm -o retractsolution -name IL.SharePoint.Workflows.wsp -localDeploymentSucceeded : server : The solution was successfully deployed.il.sharepoint.workflows.wsp: Operation completed with errors.C:\Workflows>stsadm -o deletesolution -name IL.SharePoint.Workflows.wspOperation completed successfully.C:\Workflows>stsadm -o addsolution -filename IL.SharePoint.Workflows.wspAn object in the SharePoint administrative framework, "SPSolutionLanguagePack Name=0 Parent=SPSolution Name=il.sharepoint.workflows.wsp", depends on other objects which do not exist.  Ensure that all of the objects dependencies are created and retry this operation.IL.SharePoint.Workflows.wsp: The Solution installation failed.Here is the related log info from the SharePoint logs:error-redacted.txtAs far as I can see, SP is attempting to insert a "SPSolutionLanguagePack" object into the configuration database, with an invalid foreign key reference

A solution for the Sys.Webforms.PageRequestManagerServerErrorException problem


I was receiving the Sys.Webforms.PageRequestManagerServerErrorException error with an ASP.NET AJAX project I was working on.  I searched the Forums and other sources and found some common recommendations, but none worked.  Here's a summary of the cause and solution:

1) The web.config had the customErrors tag mode="RemoteOnly" and a custom Error page.  This caused the exception to happen with server deployments, but not show itself with local development environments.

2) The custom Error page causes the Response to AJAX Request to be altered and therefore causing the PageRequestManagerServerErrorException

3) Setting the AllowCustomErrorsRedirect="false" on the ScriptManager prevents the custom Error page from being used with AJAX Requests - http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.allowcustomerrorsredirect.aspx.

4) Define an OnAsyncPostBackError event handler on the ScriptManager to handle exceptions and set the OnAsyncPostBackErrorMessage to a user friendly error message the can be displayed to the user - http://msdn.microsoft.com/en-us/library/system.web.ui

Complete SQL Solution

SQL Server Solutions: SQL Server 2000/2005 Related Free Snippets.

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Regrading Sharpoint 2010 problem and solutions

We can write your question and problem on this blogger.you get ans.use.

This sharpoint 2010 problem solving threads

Hi friend,

you can use this thread to solving problem and solutions.

Virtual Path Problem


 I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,

Note that the slashes go in different directions

I've tried a number of things but nothing seems to work. Thanks-


Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Web.UI.WebControls

Imports System.Drawing.Imaging.ImageCodecInfo
Partial Class Protected_imageupload
    Inherits System.Web.UI.Page
    Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
        ' Initialize variables
        Dim sSavePath As String
        Dim sThumbExtension As String
        Dim intThumbWidth As Integer
        Dim intThumbHeight As Integer
        Dim sFilename As String = ""
        ' Set constant values
        'sSavePath = "images/"
        sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"

        sThumbExtension = "_thumb"
        intThumbWidth = 160
        intThumbHeight = 120

        ' If file field isn?t empty
        If FilUpload.PostedFile IsNot Nothing Then
            ' Check file size (mustn?t be 0)
            Dim myFile As Http

Strange Photo upload problem


I'm working project it's live on shared hosting

we'er uploading photos to a file on the server everything works fine the photo is resized renamed and sent to the folder

the upload page returns the thumbnail and the full size photo it's there all the photos have to be approved by an admin

twice now after they have been approved they disapear I checked the folder they are not there could there be anywhere

on the server they could get hung up before they go into the folder I have it setup so when you delete the data base entry it deletes the photo from the folder othe than that you need to open the folder and delete the photo this has hapened twice now I tried to recreate it with no luck

thaks for your help in advance

ASP.Net Caching problem ??


I'm having a problem with an asp.net 3.0 application using a gridview to display data.  The problem seems to be that despite a brand new .selectCommand being sent to the sqlDataSource, the gridview starts displaying data from *someone else's* query.  For example, user A is logged in and will be working fine until a few page submissions later when the gridview data starts suddenly showing information that belongs to another user. 

This is my first asp.net application, though I've been working with classic asp and ADO for years so I'm used to sending a SQL string and getting back the results from that string.  Apparently there is a complex caching system which is interferring which I do not at all understand so at this point I just want to stop the server from caching any data whatsoever.  Is this possible?

Any and all help will be much appreciated!!

Could some one tell me whats the Problem with this String Manipulation ??? C#.net



I store some values from code behind to a label which is Hidden !

<asp:Label ID="lbl_Hidden" runat="server" Visible = "false"></asp:Label>

and at the page load event i retrieve the value of the label & assign it to a string !

stringvalue = lbl_Hidden.Text;

Now i dont know why this manipulation does'nt work !

I've a character 'A' in the string and i'm unable to replace it with a space !

stringvalue.Replace(A, " ");

Wot do u think abt it ????

RaiseEvent problem


I have a parent page ProdView.aspx and two static UserControls, UC1 and UC2. Each UC is in an Ajax accordion pane and the accordion inside an updatepanel.

UC1 has a Gridview footer with couple of textboxes and a link button that fires an Add Row insert procedure. I want to Raise an event that will rebind the UC2 after the row insert in UC1.

First I created the sub delegate and event in UC1:

  • Public Delegate Sub MyRefresh(ByVal sender As Object, ByVal e As CommandEventArgs)
  • Public Event Refresh_UC1 As MyRefresh

In the same UC1 the Insert procedure that fires the insert and RaiseEvent:

Sub PricingGrid_Insert(ByVal sender As System.Object, ByVal e As EventArgs)
       Dim myConn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString)
       Dim myCom As SqlCommand = New SqlCommand("AddRow", myConn)
       myCom.CommandText = "AddRow"
       myCom.CommandType = CommandType.StoredProcedure


Gridview Enable Selection Problem



I have a gridview with Enable selection and Enable Paging equals to TRUE.

I also set the PageSize of my gridview to 4 so that I only displays 4 rows per page.

The problem is when I click the pager in the bottom of my gridview, my gridview is disappearing and no records appear.

Here is code behind of my gridview:

If e.Row.RowType = DataControlRowType.DataRow Then
                e.Row.Attributes("style") = "cursor:pointer"

                e.Row.Cells(2).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(3).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(4).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(5).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(6).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend