I want to write a C# program which can generate a series of HTML pages based on some data grabbed from an external database. Are there any .NET based SDK which enables me to do the HTML generation? Maybe I am searching on the wrong keywords, but can't seem to find a simplistic, comprehensive answer to this. Just wondering as well, is the Google Web Toolkit an answer to my problem IF I use Java instead? Thanks for your help.
In general, I would avoid server-side HTML generation, and opt for client-side templates.
There are many options when it comes to client-side templating, but jquery-tmpl is becoming a the standard template engine for jQuery.
If you want this to tie into your data easily, consider using MVC3 with Knockout.js, as demonstrated here: http://channel9.msdn.com/Events/MIX/MIX11/FRM08
Related
I'm familiar with C# and typically create asp.net webforms apps. I've spent a couple of days now trawling the net for the 'simplest but workable' way to setup webservices for ajax. My mind is now full of options - scriptservices, asmx, httphandlers, page methods, wcf, and so forth. My requirements are pretty simple really:
I'd like to get various datasets (normally LINQ generated
collections in C#, in my asp.net webforms apps) over to javascript to use charting/viz tools like highcharts (www.highcharts.com)
Call server side methods from javascript, with parameters (eg to apply a new criteria, add a record to the backend db).
Minimum things to setup/debug - the less web.config, .cs files linked to .svc files, and other dependencies,
the happier I'll be.
As I seem to find in my chosen Microsoft ecosystem, there seem to be many ways to do it. I've downloaded a couple of examples that work, but replicating the steps to create them is not obvious.
Any wisdom from people who have tried the methods and had success? It's driving me crazy! I just want a basic chart! Postbacks are starting to sound tolerable :)
Any kind of proven 'working' walkthrough or linked example would be great.
Cheers
Mark
I'm quite fond of using JavascriptSerializer and JQuery.
This is a good tutorial although it is MVC focussed:
http://www.highoncoding.com/Articles/770_Implementing_Dynamic_DropDownList_in_ASP_NET_MVC_3_Framework.aspx
Hi I have to incorporate wiki style documents in my site, with links embedded in text and date of updates in plain view, for each entity. Entity can be people, place etc. Only authorized user of site can add/edit documents.
I have to implement it using .net and SQL-Server at back-end.
I am totally blank on this. Can you please help me with Links, tutorial and/or your answers that how can I achieve this.
Thanks.
You could use WikiPlex, the wiki engine behind Microsoft's CodePlex:
WikiPlex is a regular expression based wiki engine that allows
developers to integrate a wiki experience into an existing .NET
application seamlessly and with little effort. Built and used by the
CodePlex team, WikiPlex has been thoroughly tested in real-world
scenarios!
SharePoint has an out of the box wiki if you happen to have that available already. If you're coding it from scratch, I would personally start by defining all of the use cases, then modeling the database to meet those needs. Then build your data I/O layer and user interface on that. Since you're using ASP.NET you can take advantage of the asp.net forms authentication and user and role infrastructure. The question sounds a little broad for me to really get detailed on anything.
I am looking for a search engine that can be used for sites. Sometimes we dont want to use google embedded search or the complication of lucene.
I run in to these requests:
Crawl based search
Rating and ranking of content based on content types
Searching documents like pdf and docs etc..
I dont mind if it is a commercial control that we have to purchase but I would like to be able to integrate it nicely in to some of these use cases
There used to be Lucene.net. Recently the status of this project is becoming questionable (not certain of the details). Here is the site: https://lucenenet.apache.org/
Looks like you can still download the code. Probably not much development going forward.
Bob
I have used dtSearch in the past which I know has a web crawler built into it. It doesn't come with a front end control though, it's strictly a search engine. You need to write your own results control. It does have a powerful query language though that lets you score on multiple dimensions depending on how you set up your indexes. It also has a decent .NET API to work with.
I don't know that this is any less complicated than Lucene though. So then I start to wonder what complications you are hoping to avoid.
You should look at Apache Solr (built using Lucene) - it offers a RESTful interface for integrating into .NET or whatever platform you prefer. It offers all the goodies could ask for without concern for compatibility Java .NET versions etc.
You can easily integrate Solr into your .NET app using SolrNet
What is a nice templating engine to use in C#? I have XML or JSON as structured datasource. This data needs to be presented to users on the web in strict XHTML.
I've been using XSLT mostly, but maybe there are more or better options?
It needs to be used in C# or IronPython.
StringTemplate is great. I also like the Spark View Engine, which is primarily for ASP.NET MVC, but can be used on its own (the download includes a good example).
You could try Apache Velocity Engine
http://velocity.apache.org/engine/index.html
I have a website which has thousands of (ever increasing) resources in it. I implemented the usual Sql Full text Search and it was working fine until recently. I noticed some performance issues with it. I am using MySql Database with C#. NET as the back-end code.
I just need few valuable suggestions from you so that I can take those into account while building a new search strategy for my website.
What can I use to improve performance in the search functionality on my site?
You could try out;
http://incubator.apache.org/lucene.net/
Take a look at Lucene.NET. It is a high-performance, full-featured text search engine library which was initially written in Java but ported over to .NET. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
Try using Lucene.NET. Many websites have text search based on it.