Determine The "correct" Number Of Steps In A Questionnaire Where Branching Is Used?

Jan 5, 2011

I've written a questionnaire application in ASP.Net that takes people through a series of pages. I've introduced conditional processing, or branching, so that some pages can be skipped dependent on an answer, e.g. if you're over a certain age, you will skip the page that has Teen Music Choice and go straight to the Golden Oldies page.

I wish to display how far along the questionnaire someone is (as a percentage). Let's say I have 10 pages to go through and my first answer takes me straight to page 9. Technically, I'm now 90% of the way through the questionnaire, but the user can think of themselves as being on page 2 of 3: the start page (with the branching question), page 9, then the end page (page 10).

How can I show that I'm on 66% and not 90% when I'm on page 9 of 10?

For further information, each Page can have a number of questions on that can have one or more conditions on them that will send the user to another page. By default, the next page will be the next one in the collection, but that can be over-ridden (e.g. entire sets of pages can be skipped).

View 2 Replies


Similar Messages:

Determine The Number Of Pages In A Custom Paged Control?

Mar 21, 2011

I am trying to determine the number of pages in a custom paged control I have Built

there are 46 records and I am trying to get to the exact number of pages when there are 5, 10, 25 items per page etc...

at 5 items per page I should have 10 pages

and at 10 items per pages I should have 5 pages

but my code returns values that cannot use.

this is my code:

[Code]....

those are values I get.

When maxrowperpage is 5
pagecountConverted is = 9
pagecount is = 9
When maxrowperpage is 10
pagecountConverted is = 5
pagecount is = 5

how can I get a correct quotient?

View 1 Replies

Use ITextSharp To Determine Text Field's Maximum Number Of Characters Allowed?

Oct 6, 2010

I have a PDF document with a number of text fields, several of which have a maximum length - namely, a maximum number of allowable characters. Is there a way using iTextSharp to determine this setting? Here's the code I have so far:

Dim reader As New iTextSharp.text.pdf.PdfReader("Foobar.pdf")
Dim inputFields As IDictionary(Of String, iTextSharp.text.pdf.AcroFields.Item) = reader.AcroFields.Fields
For Each key As String In inputFields.Keys
Dim PDFFieldName As String = key
Dim MaxFieldLength As Integer = ???
...
Next

I need to set MaxFieldLength to the number of allowable characters for the current form field being iterated over.

View 1 Replies

JSON String Creates The Correct Number Of Records In The Custom Objects Array?

Jul 21, 2010

For some reason the following JSON string creates the correct number of records in the custom objects array, but does NOT populate the objects in the array with and values.

[code]....

View 2 Replies

AJAX :: Masked / Mask Edit Extender Not Displaying Currency Correct When In Number Mode?

Mar 3, 2010

I have found a problem with the Masked Edit Extender when using it with a culture of Azeri (Latin, az-Latn-AZ). I have not found anywhere that states that the control should not be used with languages that is not included in the list of languages that the ajax control toolkit is translated.

The currency symbol for Azeri is "man." the first problem is that the mask displays this as "man," but the comma is the decimal indicator for Azeri.

Scenario 1

When the DisplayMoney property is set to "right" and the currency is removed by the masked editors script the resulting value looks something like "12,12," the second comma then invalidates the numeric value and all my compare validator which also acts on the same textbox keeps failing because the value is not numeric.

Scenario 2:

When the DisplayMoney property is set to "left" there is always a "0," added to the string because the the script of the masked editor removes the man then gets to the comma (man",") sees it as a decimal indicator and adds the 0 before the comma this happens on the first blur of the textbox each resulting onblur event will add another 0 to the value. But the value is already invalidated by the fact that it again has two commas like 0,12,12.

I get this result even with the Ajaxcontroltoolkit sample site, the changes needed to sample site's MaskedEdit.aspx page can be seen below.

For scenario 1, change the first MaskedEditExtender on the MaskedEdit.aspx page to the following:

[Code]....

For scenario 2 effect change the first MaskedEditExtender on the MaskedEdit.aspx page to the following:

<ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" runat="server"

View 3 Replies

Control For Questionnaire?

Mar 14, 2011

I would like to design Questionnaire around 30 questions. What control should use? If simply using label & text box will have a lot of control within one form?

View 4 Replies

VS 2010 - How To Create A Dynamic Questionnaire

Dec 1, 2011

i have a Dynamic Questionnaire that is created using dynamic data from the Database. My data in the Database contains the fields like

QuestionID - Primary key
Question - The Question Text
Answer - The Answer
Required - This is a Validation , i used this to enable the Required validator in asp.net
DataType - This is the Datatype, it can be a Heading also.
ReadOnly - This check if that Question is a Read-only , This happens most of the time , when it is a Calculated Field, meaning its values depends on other fields values.
Order - This is the order the Questions will appear
Section - This is the section, So the Questions are Grouped. Normally in Page1 you will have Questions for Section 1.......
Deleted- This is a bit Field , its either 1 or 0 , 1 is active, so this will be to Filter only active Questions
QuestionType- This is the Type of Control the Data should be Presented with, It can be a Dropdown ,checkbox or textbox..
QT_ID - There can be many Templates of the Question , this makes sure we use the Correct Template for the Questionnaire

So with this kind of Data , i want to use know , what asp.net Control can i use to achieve this.

View 9 Replies

Web Forms :: Using Web Parts For User Defined Questionnaire Generator?

Mar 27, 2010

need to let users to generate online questionnaires that could be answered by other users. I was wondering if this could be done using the WebParts.I have a custom application with already set up database. I do not use any form of Membership Provider (I have a custom made form of user authentication, I did not want to be bounded by the rigid frame of the ASP Membership). As far as I know Web Parts uses db (called SharePoint ?) to store the state etc. so this might be the first problem because I do not want to modify my DB just for the sake of WebParts (I assume it would require a whole lot of changes).So I was wondering if it would be possible to use Web Parts only as a form of "ASP code generator" e.g. I could create the questionnarie using WebParts and then export the result somehow (?) to print an ascx/aspx file or code.If this can not be done, can anybody tell me if there are any components that would be useful here? Some sort of toolkit where one could create asp code online? (with textboxes, checkboxes etc.).

View 2 Replies

Web Forms :: Building Questionnaire Application With One Question And Four Options

Feb 4, 2013

i have a task, online test. 15 questions stored in database , and also answers.

it has 4 options, a, b, c, d. for a particular question how to fil values in respective options from database.?

and also how to move to next questions, by clicking next button

View 1 Replies

Web Forms :: Set Two Minutes Timer In Online Questionnaire Test Application?

Feb 6, 2013

how to set time for particular questions.

eg: 2 min.

if the user not click the answer for particular question, it should automatically went to next question. (online exam text).

View 1 Replies

When A Click Is Made On A Radiobutton A Message Appears Saying That It Is Correct Or It Is Not Correct

Feb 10, 2010

I am doing a workshop , it has questions, and answers with radiobuttons, I need that when a click is made on a radiobutton a message appears saying that it is correct or it is not correct, how can a do it,

View 10 Replies

DataSource Controls :: Trying To Get The Correct Info Belonging To The Correct Id?

Mar 6, 2011

I am using 3 tables and are trying to get the correct info belonging to the correct id. Like this: I go to a page and here i want to see the information from the 3 tables using a specific id.

I have written this so far in a query:

[Code]....

My problem is that the last line does not work and i am uncertain how to make this work? How to write it correctly that is.

View 2 Replies

Name Or Number Search In Textbox While Entering The First Letter Or Number Charactor Or Number?

Feb 2, 2010

I am using the asp.net and framework 2.0 with Ajax enable web.i have a text box and when user will enter "a" or number in this will search the name started from "a" character or number if he or she enter the number basically we can say live-search.

Employee search: Textbox.In this text box she/he will enter the first character of name or first number of employeeno and according to the a character name will search in list.

View 1 Replies

What Are The Steps To Be Taken While Deploying Application

Oct 16, 2010

can anyone tell me What are the steps to be taken while deploying asp.net application

View 1 Replies

Useful Steps To Increase The Speed Of The Website?

Mar 30, 2010

I know its a common question. But I want to share something. Actually I am working on e-commerce portal. It consists of 32000 products with around 2500 categories. I used 3-tier architechture for this project.Everyting is coming using stored procedures. I used master pages as well.But still I am fighting with the performance issue. Can anyone pls tell me some usefull steps to increase the speed of the website.Its taking ages to load the pages. please look at the site

View 2 Replies

C# - Validate All Wizard Steps On FinishButtonClick?

Nov 8, 2010

I have an asp:wizard control that contains five WizardSteps. All of these steps have form controls, and most of these controls have validators. When the user steps through the wizard with the next and previous buttons everything is working great, and validation triggers as it should. However, if the user chooses to navigate the wizard using the links in the SideBar, he or she could skip some of the steps. When the last page is submitted (which is a summary page) there might be controls in the wizard that are invalid.

What I want to do is to check the state of all controls (or run all validators) when the user clicks the finish button, or when the user enters the summary page. I have made an attempt to run all the validators in the FinishButtonClick event by doing this:

[code]....

But when I do this every validator claims that they are valid. I have also tried to set all controls to Visible = true; prior to this code block, but this has no effect. what could be wrong? Or is it a better way of doing this, maybe a native function to the wizard control that I'm missing?

View 2 Replies

WCF / ASMX :: What Are The Steps To Write SoapException

Oct 28, 2010

I am not sure how to write soap exception. What are the steps to write soapException.
Somebody can explian?

<WebMethod(MessageName:="get_output_information")> _
Public Function get_output_information (ByVal tran_id As Object) As DataSet
Try
'do some code here
'do some code here
Return ds1
Catch ex As Exception
Throw New ArgumentException("An Error occurred while processing output information.")
End Try
End Function

View 3 Replies

MVC :: Steps For A Controller That Process A Creditcard?

Jan 14, 2011

I was wondering, in MVC normally we can include validation in the model. Plus, we can add our own custom error in the control using the ModelState.AddModelError.However, it is okay to call ModelState.AddModelError after we called ModelState.IsValid ?

In others words, if i wanna :

1- Check if cart is not empty.

2- Check if the shipping details are valid.

3- Doing the transaction by creditcard.

4- Check if its a success.

5- If its a success Submit the order.

Is this controller code okay, does it fellow conventions ?Is there a better way to do thoses steps ?

---
public ActionResult CheckOut(Cart cart, ShippingDetails shippingDetails,
CreditCard creditCard)[code]....

View 6 Replies

MVC :: Minimum Steps To Turn A Non Project Into One?

May 24, 2010

Background - I've started with a VS2010 dynamic data project, but now I want to add some other custom pages based on MVC to it. Question - What is the minimum I would need to do to get this non-MVC project to look/act like an MVC project?

View 6 Replies

Web Forms :: Send An Email Until All Steps Done?

Feb 3, 2010

To complete an order, I need to code the following steps one by one.

1) update order table, tOrder

2) update customer order history table, tCustomer

3) update shipment table, tShip

4) send an confirfation email

The problem is sometime due to unknown reason, after step 2), program can not finish step 3) and 4).
Since tOrder and tCustomer table was updated, how to back to their data before update?

View 1 Replies

Security :: Some Wizard Steps Inaccessible From Code Behind?

Sep 28, 2010

I have a CreateUserWizard with three Wizard steps and one CreateUserWizardStep. The first two are accessible from the code behind by ID. The third and fourth are not! If I comment out the references to these two steps in the code behind the page runs fine. I have triple checked the variable names and everything is fine. Everything that should have a runat="server" does, everything is enabled, all of that good stuff.

why some steps in the same CreateUserWizard may not be visible from the code behind and others are?

View 3 Replies

Web Forms :: Adding Wizard Steps Dynamically?

Dec 6, 2010

I am trying to add wizard steps dynamically in code-behind but keep getting an exception

"ActiveViewIndex is being set to '0'. It must be smaller than the current number of View controls '0'. For dynamically added views, make sure they are added before or in Page_PreInit event."

I found I have some fundamental error in my building, since I got this error after trying to build the simplest wizard in a new web-site just opened...

[code]....

View 6 Replies

WCF / ASMX :: What Are The Steps To Follow To Migrate From Web Services To WCF

Nov 14, 2010

What are the steps to follow to migrate from Web Services to WCF-Webservice?

View 1 Replies

MVC :: Steps To Make TempData Durable Across Web Server?

Jun 5, 2010

We used MVC TempData to store smallish view state prior to redirects. This works worked great on our single Win2008 development server. Unforunately, the use of TempData no longer works in our load balanced production server farm. What steps are required to make MVC TempData durable across web servers?

View 4 Replies

Steps Involved In Reading An Xml File From Webservice?

Mar 19, 2011

I would like to know what are the basic steps involved in setting up your application to able to read data from another application. Then take that data and modify it and send it back to the application.
The data being read will have over 100 fields.... what is the most efficent way to store them? Put them in a class object?

I know web services are involved..

The application is in .NET using vb

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved