How do you dynamically populate the silverlight InitParameters collection fron ASP.NET (C#, not script) in Silverlight 3.0? Now that they recommend an object tag instead of an asp:Silverlight tag it does not seem to have any sort of 'run at server object' to work with?
I have been able to work around this with a hidden input tag in HTML. ASP.NET can set the value, Silverlight can access it via the HtmlDocument.
Related
I am new to asp.net MVC. I am trying to understand how to add pagination for a list of items using MVC without code for a view. I am using nunit testing to check whether pager option is tested or not
There is no built-in pagination for a vanilla MVC project -- you'll need to write one yourself or find something off the shelf.
See PagedList, which is also available on NuGet.
With ASP.net MVC 3.0 and visual studio 2010 I can generate views easily by selecting the Controller action ( right click + scaffolding ), so I select the type of View (details,list,edit...) and I can even select the Entity/List that the view will use as datasource.
The questions is: Is there such thing working with Java JSP and servlet with eclipse where I don't have to manually change web.xml?
There's something wrong here. Comparing ASP.NET MVC with JSP/Servlets is really like comparing apples with oranges. ASP.NET MVC is a fullworthy component based MVC framework, but JSP is a barebones view technology and Servlet is just a barebones HTTP controller API. There is absolutely no means of a comparable component based MVC framework here with JSP/Servlet.
You need to look for a component based MVC framework in Java side. From the standard Java EE API, JSF is been offered.
However, as to the tooling, there are as far as I know no "Scaffolding" plugins for JSF available in Eclipse which does bottom-top code generation all the way from DB until with the JSF view. Closest what you can get in Eclipse is generating JPA entities from DB, but it stops here.
Netbeans has a JSF CRUD generator though.
See also:
What is the difference between JSF, Servlet and JSP?
What is the main-stream Java alternative to ASP.NET / PHP
Recommended JSF 2.0 CRUD frameworks
How to use Ajax Slider from Ajax Control toolkit in ASP.net MVC4 Razor template application?
Ajax toolkit doesn't work with MVC because it was built for WebForms. So You have to use alternates for that purpose like "JQUERY".
You are unable to use AJAX Control Toolkit for MVC 4 because it is a set of User controls build in Web Forms and only compatible with ASP.NET Web Forms. jQuery, DevExpress, Infragistics and other toolkits are available for MVC.
Check the links here: Dev Express Tool Kit For Asp.Net MVC 4
Unknown server tag 'asp:AutoCompleteExtender'.what should I do to use AutoCompleteExtender in MVC.I have no problem with this when using in aspx page holding single textbox/ajax
what should i do to use AutoCompleteExtender
Nothing. You shouldn't use server side controls in an ASP.NET MVC application. I would recommend you taking a look at jQuery UI and its AutoComplete widget.
I'm asp.net mvc for my project and now I have to show a couple of reports using the ReportViewer control. I need to specify a couple of properties before rendering the report ie. ReportServer Url.
Is it possible to achieve this using asp.net mvc?
You can't use reportviewer control in asp.net mvc because it needs postbacks.
But you can use it to generate an image and show it (some googling should give you results about how to accomplish that).
Another option - you can make a hybrid application (web forms + mvc).
And another option - you can try javascript charts. Google charts looks good for example.