just nondrying if I can achieve same look as this word table in asp.net. I know about gridView but I really want a controller to give me more flexibility when view the data from SQL server
just I want some advice in how to design same look
Use a ListView with an itemtemplate. Then you can simply create it as an HTML table.
ListView Web Server Control Overview
It looks like you have to use some css, maybe use jQuery DataTables and modify default styles. You may find some hints how to implement that here. You can create your own asp.net control or just go with ajax web service
Related
I am new to C# programming. i have a database which contains different offers and i am able to get these offers from database.But now i want to create a custom look page for these offers(plz see image attached)
Suppose if there are 7 offers in database i want them on my page like the image of the offer on the top under that description. How can i do it ? i used Gridview but its giving result in table can i customize the grid view to get this look?
You have lot other options you can use dataview, repeater or JQuery.
Try googling on above topics and try to implement the process.
I want to list a group of similar templates(which contains photos,texts and hyperlinks in a certain layout) on my web page.
So I'd like to know some technologies which can provide me the ability to develop my own template so that I can feed this template with paths of photos, text and hyperlinks and the template will arrange the layout.
I am thinking of using Customer Control + Repeater to do this job.
But I think there could be some other really brilliant technologies which can do the same thing in a easier way.
I'd love to see the name of technologies and code to demonstrate how to use it.
With ASP.NET, repeater is fair choice, you can easily build your any kind of template. And you can use server side tags too.
If you are willing to bind your data at client side, there are lot of client side technologies available to bind Json data, such as Jquery template, Knockout.js etc. (you can also explore other client side data binding technologies such as backbone.js, ember.js, batman.js)
Here is the list of technologies and examples.
another good read about Javascript framework:
http://blog.stevensanderson.com/2012/08/01/rich-javascript-applications-the-seven-frameworks-throne-of-js-2012/
I have a list of items which is a bit too large for a dropdownlist and I'd like to add a search textbox which based on the input will drop down a list of matching items.
So if you put in John the list below would display any items that start with John.
How to go about doing that?
The feature you are referring to is commonly labeled "AutoComplete".
If you are not at all familiar with how to do this, I would suggest following a tutorial or leveraging a pre-existing solution.
There is an example using the ASP.NET AJAX Control Toolkit available at:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx
The basic idea is that when input is changed, JavaScript will send an asynchronous HTTP request to the server and find out what the auto-complete items should be, then it will fill the drop down options with the returned values.
Well what you want to look at is the autocomplete libraries that are available.
In your case, ASP.NET AJAX control toolkit has this functionality.
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx
There are other options such as :
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx. This is from telerik and not free though.
http://harvesthq.github.com/chosen/ - quite new and looks promising, but not ASP.NET specific.
I'm trying to create a very basic web site creator in C#. I already created the templates but have no idea how to get them in the program so the user can pick one and customize it. Is there a certain library I should look into? I've bee told this can be easily created in php but I'd rather not go down that route.
If using .NET you can use WebControl controls to display a preview of your templates and make the user decide which one he wants.
Or a list of templates and single WebControl that parse and display the HTML of the current selected list item (template) and then make the user select.
To edit, just a bunch of controls (one for each template placeholder) that updates the view of the WebControl.
In the top link you found how to do it.
P.S. Templates can be stored on XML, Plain Text, DB or any other mean.
Either store the templates as files on the web-side and use them as templates, or store them in a DB. Unless your app is not web-based, in which case the same advice pretty much applies.
I'm trying to add markitup text editor with markdownsharp http://markitup.jaysalvat.com/home/ to my MVC ASP project and kindof confused how to go about it. I added a class from markdownsharp and tested the function. that is working fine but confused how to embed the editor in my view.
Using Visual Studia 2010. Please guide regarding the same.
The documentation contains many examples.
#user488652:
As MarkItUp uses jQuery to transform a DIV into a complex editor, I am having similar issue binding the TextArea to the Model in my view.
There is one option I thought of, and it may be a better option, all things considered: make the form an AJAX-style form.
You would use jQuery to handle the Click on the Submit Button. When submitted, your handler would gather the model data and the MarkItUp editor data and fire it off to a controller action in JSON format via $.ajax().
Your controller then would receive the JSON, parse it into your objects, and use the MarkdownSharp library to do whatever logic you need, then send off the objects to your data layer for persistence.
The result may actually be better than the traditional MVC Form binding.
Good solution?