In my project I have a web service that returns an Exam object. This object contains a property that returns set of multiple choice questions in Questions[] array. Each Question object in Questions array contains two properties, Question and ChoiceArray. To clear things here's the code,
I need to know a way I can all of these question and their choices onto a form. Since I have these as arrays I can not bind them properly using DataList. how to display these questions and their choices on to the form and on choice selection, get the value of the selected answer for each question back.
i am new for asp.net. i want to develop a simple web application(asp.net+c#) which display questions and multiple choice answers and calculate result. i want to know which one is the best way for me to do it.i want to use linq to sql.
i have total of 20 questions in my sql table, it is consist of 2 type of questions: 1. Single answer -- the question that have only one answer. 2. Multiple answer -- the question that have multiple answer.
Using DataList( or another possible ways) how do i manage to show radio button for Single choice, Check box for Multiple choice question ?
I have a .Net dropdown list with a bunch of choices, and the final choice is 'Other'. When a user selects the choice 'Other' I need a textbox to appear next to it. I am able to do this with 'postback,' but as I have multiple dropdown list similar to this on one page I don't want to refresh the page each time. My question is, is there a better way to go about doing this? I also have to limit the use of Javascript. I can use C# in the codebehind page.
I need some explanations regarding the above exception.
I understood that if you place a response.redirect inside a try catch block, u will get the exception and the aspnet will handle the exception silently without the user knowing. But the thing is that right now i am having a hard time thinking of a reason why the error will occur after some changes has been made and the codes with the response.redirect has not been touched.
I am drawing a blank and need some direction.I am putting together a simple website that has a single DropDownList that is DataBound to table inside of a FormView Template.What I want to happen is when the page loads, it runs the SELECT statement and displays that result(which it does, so that part works).Where I am stuck is that if I Click the DropDownList and select another item, and display the results of that selected item in the associated Databound controls.My code is below;
The default asp membership provider only allows for one security question and answer. Does anyone know a work around to allow for more than one question and answer?
Have to create an FAQ page in ASP.net which comprises a list of 20 questions (all anchors) and then a Q/A section ftr down the page. The summary questions should jump to the Q/A section. I have the 20 questions in a List<> and have spun through the list creating a new List<> by adding <A></A> etc.
how to do this.or is there any template that one can use for the following-
using visual studio to design questions and answers with outcome of the grade immediately after submition and with timing.
For example, having questions 1 to 10, providing options like A, B, C,D, then let students choose from the right answer from the questions, then, after submition, an outcome of grade is displayed based on the right answer.
I have a question in gridview, I want to combine my two or more records into a single cell with two rowsfor Example i have a ID, Name, Year Start, and Year End for Column name in database and i want call it into my gridview that the Year Start and Year End will combine to Year like:
I want to build a survey system where you can build a form with questions and some answers to these questions and then members who will log in will be able to take the test.
Then i want to present the different results from the test in some diagram or something like that.
We need to find a .NET CMS system that does well in handling external data. Most of the data comes out of an external CRM system which is updated continuously. Some requirements:
We would like to avoid duplicating the CRM data. Meaning the CRM data should stay in the CRM system. Access to the CRM data can be handled via API, but raw db access is available as well of neccessary. It should be possible to edit the CRM data from the CMS UI, but all data needs to be saved back to the CMS db. News module Blog module Simple shop module for selling small number of t-shirts with different sizes/colors (optional) preferably MVC based (but knowing that this would limit the option too much)(optional) preferably c# based well supported, preferably with big community (was added to prevent custom solution ;) )
The focus of this question is which CMS system is good in handling external data, the other requirements are just to get an idea what kind of CMS we are after. **UPDATE** The data will be edited from CMS and CRM The user is supposed to work directly on the CRM database from both CRM and CMS system Concurrency issues are handled on DB level by optimistic concurrency. Basically an update might just fail, then the data gets reloaded and presented again to the user no data symmetrization of any kind should take place at any point
I have created one exam module where user will give the answers of objective questions.I have created next buttoon now i am getting first question in form load and now on click of next button shall i increase the question no +1 or some thing else.
I have a dropdownlist on my view that is being populated from values in a database table and I've added a "--Select One--" header. Selecting a value from this list is optional (it maps to a nullable field in my table). Currently, if a user doesn't select a value from the ddl then it inserts an empty string into the field, wherease I'd prefer to keep it NULL.
using vb.net 2005.I think I need to change the Exceptions from the debug menu but I"m not seeing that choice. How do I get to this window?Shown here:http://dotnetdud.blogspot.com/2009/01/clr-has-been-unable-to-transition-from.html
I want to make a real time form validation in asp.net form in which when i lost focus a field it show an error or success of field entrance data i search for best way to do that .. and if i want to do the same by validating data from SQL Database ... what's the best choice for doing that ?
I have a page in which i need to show data in the form of a grid. Each row in the grid is made up of 2 sub-rows, the first sub-row consists of a dropdown, a textbox & a textarea. Whatever is entered in these controls should be displayed in the second sub-row in the form of labels at runtime (i.e. using javascripts)
There can be multiple rows like this. The grid would have a max of 30 row, not more than that. create this which one would be better, in terms of performance & complexity, a GridView or a DataRepeater?
I have a need to display multiple .mht files in one asp.net web page dynamically.
I tried to use iframce to display these multiples .mht files but ran into the auto height issues (scroll bar is not working as per my customer requirement). I searched the internet and found several posts with auto resize java code but ran into access denied problem even my .mht files are in the same domain. Spent a couple of days try different java auto ifamce resize examples code but none works for me so far.
I found some post about using a div html tag to display .html file without worry about the auto heigth issue but not sure how to implement it.
iframe auto iframce resize working examples.. or how dipslay these .mht files in div html tag without using the IE scroll bar.
I am wondering if ASP.NET is a good choice to build small such as personal websites, blogs, photo gallery to medium websites such as online booking, medium sort of facebook!, etc?I have heard that ASP.NET and MS SQL Server take more resources than PHP and MySQL which means it could be only good for rich people who are able to pay for these resources!