I have been tasked to create a web interface for a POS terminal. I was thinking of using Javascript to display button values on a panel. But my boss insists I use Panel Controls. Is this applicable in ASP.net MVC5, and how do I implement this?
Related
Like back in the WebForm days you could create your own reusable User Control, or like a partial in MVC Razor.
Thanks.
I want to use only jquery ui controls in my web app and handle the raised events of controls in my c# code (not in javascript). I'm new in web programming so sorry if my question is too dummy. Also i want to design my web form with jquery controls as i do it with web controls from toolbox. Is it possible?
Or is there any alternatives to create beautiful ui in asp net web forms ?
You can use any controls you want. However, non asp.net controls will not postback to your server. You will need to manually call the __doPostBack(); asp.net method using javascript. Also, since none of you controls will be wired to do postbacks using the built in asp.net mechanism, you will need to force your page to generate that code for you by calling something like this:
var cs = Page.ClientScript;
cs.GetPostBackEventReference(this, string.Empty);
I hope this helps
I have Coldfusion web application that has a CF query from a database table. This data is displayed in an HTML table with a checkbox beside each data item and an associated picture. There is Jquery functionality on the page so that the items can be re-arranged in the table based on the users preference. After the user finishes with their re-arrangement, it is re-displayed without the checkboxes for sending as an email. Note I did not write this application myself but inherited it...
I need to transfer this functionality to a asp.net C# web application but i am at a crossroads on how to proceed. I've looked at telerik controls and others but none appear to fit the functionality i need. Any solid suggestions?
I'd suggest to handle rendering of the table yourself. If you're using asp.net webforms, this can be done with a custom server control. If you're using asp.net mvc (which I suggest as MVC matches the coldfusion development model a bit closer than webforms), then it's much simpler and you can just do so in the view.
Once you are rendering the grid yourself, then it's simple to apply the jquery functionality on the client-side.
Without more info about what you can or can't do, it's a bit difficult to offer any more guidance. But you did only ask for suggestions :-)
Asp.net doesn't mean you need to use a library control built for .net. jQuery is powerful enough today, and it's not tied to any back end technology.
So, that being said, I would still go with jQuery and back it up with RESTful request using webservices with WebForms or controllers with MVC.
Have a look at this: JQuery Drag and Drop features with ASP.NET
I am trying to figure out how to use/create a custom control in ASP.NET MVC 2.
I created a custom control earlier and compiled it (ccontrol.dll), the control renders a div, textbox and a button + some javascript in order to post a comment on the website. It could be a static aspx page that i wanted to allow my visitors to add a comment to. I would then drag my control from the toolbar to the aspx page and run it, it would then render all the code needed on the webpage including fetching the data from a datasource and displaying that inside the div. The user could also just type in a comment and press the button to save it to the datasource.
Is this possible to convert to MVC 2? Any good tutorial that covers custom controls and MVC 2? (Ideally would be if the control could be made into a .dll file that i then could reuse on future webpages)
How do i write a custom control the mvc way? Any good tutorials on the topic?
You cannot design Custom Controls according the normal asp.net style because in Mvc there is no ViewState and there are no server side control events. Data are returned back to the server through a Model Binding process. The fact that rendering and filling data in are handled in separated pieces of code make difficult to implement complex server controls in Mvc.
However, I developed a theory, and also a toolset to make quite easily custom controls ina Mvc too in the full spirit of the Mvc paradigm i.e keeping separation of concerns between Views and Controllers. See My Codeplex project. There, you will find pointers to documentation and tutorials on my blog. If you need assistance feel free to contact me.
No it is not possible to use custom controls in ASP.NET MVC. you need to re-write in MVC way
I have the need to do some graphing (bar, chart, pie, trend) and instead of using Infragistics or manually drawing the graphs I want to use Silverlight.
My current ASP.NET application was upgraded to 3.5 and I have added a Silverlight Application project. Consuming the output inside of the existing master.page layout or inside of user controls does not seem to be as intuitive as I was hoping for.
Nor is the ability to create a graph from a generics listing of data even a control (like I have seen in several demonstrations at PDC08).
Any ideas?
I would suggest starting with the Silverligt toolkit (released at PDC) which includes a Silverlight chart control. There is an overview of how to use this control post here.
The important difference between Silverlight charting and ASP.Net forum based charting (using a third party control) is that the Silverlight chart will execute on the client while the asp.net chart would execute on the server. So if you want to use this type of control you will need to expose your chart data as a service.
Another option to do Silverlight charting but have your code execute on the client side is to build your Xaml using ASP.Net. In this case you would create your chart Xaml using ASP.Net which instead of generating HTML output would generate Xaml output.
If you want an example let me know...