How to programmatically create list of buttons that fill client browser based on its resolution in asp.net [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new to ASP.net web application development. I try to create a page that contains a number of buttons (based on the data from database), all the buttons have the same size, and fill the client browser (no scroll bars on either side).
The questions that I have are:
How can I get client browser's resolution? (By jQuery)
Is the size of each button will be Resolution / Number of Buttons?
Thanks

I recommend learning a templating framework like Bootstrap. It allows you to quickly develop grid-based web pages that you can easily throw a customized template on.

Related

I have a Blazor server app.How can I add a live chart into my Razor page? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 months ago.
Improve this question
I have a Blazor server app.I have to add a live chart into my razor page that will get the data from the related razor.cs C# code. With my C# code I am reading the Cpu load of a remote PC in 1 second intervall. How can I visualise the CPU load live on my razor page?
The easiest way is using a component library that solves the JavaScript part for you. For example: Blazorise.
Else, you'll have to arrange the JS part yourself using JSInterop.

How do I deal with cache and the browser back button in an ASP.NET app? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
How do I best handle when a user pushing back to a page that is cached with items in a ASP.NET app?
Could I handle the cache with by capturing it in the back buttons event?
There are multiple ways to perform state management in ASP.NET on page navigation. You can use client side state management techniques such as View state , cookies and query string based on your requirement and amount of data you are going to cache.
Please refer below link for complete understanding of caching.
ASP-NET-State-Management

C# WYSIWYG Web Field by Drag and Drop [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like to know what type of field is used for a WebEditor (like WebBuilder) to Drag-and-Drop text, input,... in C# ?
I thinking of an HTML field, but not sure.
Thanks in advance.
If you mean Web based application, you should take a look at ASP.NET WebForms. If you want to build desktop application, Visual Studio has a project template called Windows Form Application consisting drag drop support. I don't recommend you using Web Form for web-based application, rather use ASP.NET MVC framework for this purpose which does not include drag-drop functionality in development.

C# Allow the user to draw their signature on the form [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm building an ibanking system with my friends and I'm in charge for the credits part. I want to allow the user to have their signature on a webform and is it possible ?
You won't be able to do that in C#, on the web if you want user interactivity like drawing you'll have to do it in javascript (on the browser), the user isn't going to go in your datacenter and draw on the server :)
If you're fine with limiting yourself to HTML 5 browsers you should be able to do this with drawing in a canva and then sending the finished drawing to the server. Here is another SO question that covers user drawing in a canva: Draw on HTML5 Canvas using a mouse

Generating forms that use an MVC Web API [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am developing an interface that customizes and generates forms for customers to use on their own site. When a user logs in to the interface, he can create a form, add or remove fields from existing forms, and the system will generate the file.
I want to know what's the best approach for doing this. Making these forms independent and just use HTML/Javascript? or have them part of the overall MVC solution inside a Views folder so it can have server side code?
Probabily the best way is not to store the entire form, but having some metadata that describe the forms, then generate the gui dynamically. There are many ways to doing this, it basically depends on your skill, and your specifics, personally im developing something similar right now and i chose Angular2.
Here an example:
https://angular.io/docs/ts/latest/cookbook/dynamic-form.html

Categories