asp.net quiz application - asp.net

i want to create asp.net webforms, contain single multiple choice question on a form using formview
que. and ans. from sql server table(sqldatasource).
please give me a basic idea
thanks

Create a new website/web application in Visual Studio
Drag a FormView control from the Visual Studio toolbox to the Default.aspx page of your application.
Drag a SQL data-source from the toolbox to the same page, associate it with the FormView and the database.
You are up and running.
That was a very high-level idea of how to go about it. No one would be able to guide you step-by-step and make you learn all the aspects. You'd need to start fiddling with it on your own.
Following links would give you a head-start:
Build Your First ASP.NET Application with ASP.NET Web Forms
Querying Data with the SqlDataSource Control
Data Access Related Videos

Related

How to make oracle like list of vales (lov) in asp.net (web forms)?

I want oracle forms like list of values (LOV) in asp.net web forms.
How can I build it.
Any idea or example ?
Asp.net web form or mvc it's like baby when you compare it
with oracle adf or oracle form we have to build LOV manually
no efficient component like LOVS in asp.net and gridview
it's simple UI not a complex adf table with high feature
especially control query run time processing asp.net gridview
could hang application server if you not build your paging manually
many problem with Microsoft product especially web form
and in the MVC no control we need to build everything manually
but there's a good news asp.net dynamic controller can build views by wizard
don't be happy the UI look like anything but not a UI

Importing an ASP.NET website application to views in an MVC application

I have created an ASP.NET website with several aspx webpages and a masterpage. I now want to port this website to an MVC application and use the aspx pages as views. How can I do this in Visual Studio 2012?
There is no automatic process you can use to do this. You will need to create the views/controllers/actions manually and cut/paste your existing code into these (unfortunately)
Their is no one click process. You need to do it manually.
I suggest you to create a MVC solution. put your logic in Models, And start rewriting Controllers and Views according to your previous asp.net apps. Because asp.net MVC 's rules doesn't allow Session and Viewstate you need to make changes to your existing apps.
You need to move from session and Viewstate if your current asp.net app use this things.

ASP.Net framework for data read application and report generation

I was looking for a best framework to develop an ASP.Net Web application.
It will be using database MS SQL Server 2000 (It has to deal with other application)
The Web server is equipped with .Net 4.0 framework
The application is mainly reading data and displaying to the user. Writing to the database is very seldome. And it should have an option to generate reports also.
Which architecture solution I should choose develop such an application?
What will be best approach?
Asp.net Webform would be easier especially if you need render report in a gridview, it also enable you to drag and drop lots of controls for fast development. You can write minimum code to achieve reading data and displaying to the user, such as defining datasource in aspx page of a gridview.
MVC on the other hand requires you to write every bit of Html by yourself, though there are some auto generated razer views, you gain more controls and get rid of viewstate, but it takes much more time to develop and learn.
You should use EF regardless which architecture you choose, it's an ORM tool for writting multi-layered applications

T4 Generate ASP.NET WebForm UI

I'm staring to learn T4 .
I want to create a framework for my self that enable me to generate DAL and UI.
Like Code generator softwares that maps Codes and User Interface from database .
i don't have any question about generating data access layer.
my challenge is to generate UI ( asp.net controls and HTML).
is there any sample exist with T4?
what are your suggestions about this Code Generator that i want create?
Please try my post here: T4 Templates for ASP.NET Web Form CRUD Application.
I put a very basic code snippet generating templates for an aspx page (DetailsView and GridView for CRUD), ObjectDataSource methods for CRUD operations in VB, and SQL stored procedures matching with them.
Have you looked into Microsoft Visual Studio LightSwitch? I feel your search ends at Microsoft LightSwitch.
LightSwitch is able to generate UI for you. All you need to do is tell it to pull the data from one of the logical ends it is able to understand. As of now it is letting you talk to 1) WCF RIA services, 2) to Sharepoint through WCF data services and you can also connect LightSwitch presentation layer to Entity Framework.
Besides this you get amazing capability to customize your UI. LightSwitch UI is basically Silverlight 4 based UI which can be hosted out of browser or on a web server.
Hope this helps.

SharePoint Webpart and ASP.NET User Control

I am developing SharePoint Web Parts for MOSS 2007 on Visual Studio 2008. Up until now, I've been adding all my controls by hand to the code behind... but an earlier post suggested I could use the designer to create an ASP.NET User Control, then add it to the webpart, and everything is happy... See figure 5 for an example.
However, I can't seem to add a new ASP.NET User Control to my MOSS WebPart project, the template just doesn't appear. If I create a WebApplication and make my User Control in there, I can't see any SharePoint templates to add to the project. Finally, I tried copying a simple aspx file and its code behind to my webpart directly, and adding them as an "existing component"... but now the designer won't recognize the aspx file. Next, I'd probably try adding two projects to my solution, and just referencing any dll's from the ASP.NET application...
So how do I get an ASP control into my SharePoint WebPart project so that I can use the Visual Studio designer?
Edit: So here is a partial solution where the ProjectTypeGuids needs to be modified. When I try this, it gives me an error saying "The project type is not supported by this installation". I am using Visual Studio 2008.
Try reading some of the following tutorials:
http://www.google.com/search?q=create+sharepoint+web+part+as+feature
What type of functionality and/or display are you trying to create? You may not even need a user control. For example, create a very simple "proof of concept" HTML table as a custom Web control (Web Part). Create it as a Feature and use the Solution Framework to deploy it:
Create a Web Part with VSeWSS 1.3 - Part I
Create a Web Part with VSeWSS 1.3 - Part II
Scott Guthrie offers up resources here on Web Parts and User Controls:
Writing Custom Web Parts for SharePoint 2007

Resources