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.
Related
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
I am a PHP web developer. Now I want to work with ASP.NET but it's very difficult for me to work with databases in ASP.NET. I need some source link from where I can easily learn ASP.NET.
A good start is the homepage of ASP.NET:
http://www.asp.net/.
It includes a section on how to work with Entity Framework which is an object relation mapper for SQL Server databases.
For WebForms there's a nice tutorial here.
Please follow the template for asking questions.
Since you have asked , ASP.NET has flexible options of connecting/working with databases or you can write code using ADO.NET classes as well. I believe below links will provide a better understanding of working with databases in asp.net.
w3schools - ASP.NET working with database
MSDN
if you search you will find lot of sources over the web,but i recommend you to start with some basic topics , below are some topics with which you should start with :
.Net Framework basics
ASP.Net Page life Cycle
Viewstate
Data Controls
ADO.Net
Basic CRUD Operations on ASP.net Pages(CRUD =
Create,Retrieve,Update,Delete)
Caching in Asp.net
Cookies Management
in Addition C# & VB are most often used languages with .Net Framework , you Can start with C# basics.
below is the link that will give you basic walkthrough
Basic ASP.NET Walkthroughs
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
I am using Asp.net Web Forms , earlier I used this jqGrid sample which is not free , this I realized later , now that the confusion was cleared , I will now have to use jqGrid open source thing as I wont opt for commercial one , Can anyone point me to links for getting started with jqGrid and Asp.Net Web Forms , it would be really great if someone gives an example which will show free columns from a sample table in jqGrid , I found some articles online , but couldnot understand how it works.
Any suggestions are welcome.
Thanks.
I think that working Visual Studio demo projects could help you mostly.
The demo from the answer uses ASHX handler in ASP.NET Web Form application. It uses only free open source package jqGrid which consist from JavaScript code only. The latest version of the source code you can download from github.
Another demo from the answer uses ASHX handler in ASP.NET Web Form application too. It shows how to implement editing of the grid.
I think having both of the demo project you can create application which uses full set of jqGrid features. Moreover the usage of ASHX handler in ASP.NET Web Form define only the way how the client communicate with the server. So you can use any technology which you prefer for the Database access. So You can use either Entity Framework or LINQ to SQL or even more old, but in many cases the best from the performance point of view SqlCommand with SqlDataReader.
It's important to understand that you can get the most part from the code examples created for another technology like ASP.NET MVC (see the example, another one, this one or this one). So you can implement Autocomplete, Export to Excel etc features in the ASHX handler in ASP.NET Web Form solution.
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