Simple MVC Pager - asp.net

I'm looking for a simple pager to add to a View where I give it the current page number and the total number of pages, and it generates something like this:
< Prev 1 2 [3] 4 ... 28 Next>
Unfortunately everything I find uses a PagedList of enumerable items or is built around a data list. In my case, I just have a multi-page report where I want to navigate from page-to-page.
Any suggestions?

Related

Display multiple submissions for single field in the same row (gravity forms)

I am trying to set up a feature where users can submit an entry (a single field) every time they use a page.
I would like these entries to be displayed in a single row in a view - example below:
Page Entry 1 Entry 2 Entry 3
Today's height (cm) 155.1 155.1 156.2
Today's weight (kg) 75.5 75.6 75.7
So far I have set up a form which automatically populates the page and user, whilst collecting the single entry.
I can then display this using gravity views and the advanced filter extension to only show users their own entries.
I cannot however display each entry in a row like the example above.
Help would be greatly appreciated!
Thanks

Asp.net core 5 Items List

I am new to asp.net and I have created an attendance system where I can a list of employees from the DB and when I click a button "In" it save a timestamp for when that employee came in.
So far, I have a normal table list of employees with the buttons in a separate column and I would like to change the design to look somewhat like the one in the attached image.
However, I do not know the what to use to be able to create that. Employee List ItemList
search in youtube how to make horizontal card in css
or this should be help u
https://www.youtube.com/watch?v=5QB9agsk42Q

Different styles for first result in drupal 7 Admin view results

I am working on Drupal 7 and have been configuring view which in result display 4 different rows.
I need to apply different css to fist result (image / title / summary) and then some another css to rest of results.
I have been trying to use Global:View result counter field but dont know where exactly we can apply split of css for first row result and rest of row.
Can any one help me or gv brief about it?
Thank you in advance.

ga:visits showing zero when ga:pageviews, ga:visitors show values?

I have a top profileid and a filtered profileid.
the filtered profileid uses a path starting with /xxx/yyy/
now in site I have 2 view pages -
1) top profile + my filter of /xxx/yyy/
2) sub profile
both pages show the same number and values for pages
but when I do a view of "ga:pageviews, ga:visitors, ga:visits"
I get different values only for visits (sometimes 0 on #1)
examples of output
1)
70 5 1
40 8 0 <--how can I get a zero?
2)
70 5 6
40 8 8
so hitting the top profile and adding my filter to the call gives me invalid visits.
using the same code for profile #2 I get correct numbers.
looking inside google admin, profile 2 only has the 1 filter and it matches the same as what I am doing in code. also the pages match up so this does not make sense to me.
how is it possible to get numbers but have no visits?
is there a way to get an individual listing of the data that it is using to output to my filtered request?
http://www.analyticsedge.com/2014/09/misunderstood-metrics-sessions-pages/
I think I figured this out. doing the filter inside google as a separate profile will retag the first page to a session count, whereas if I query the top profile and filter on my end I will get very low session starts because most people hit the home page or login page which counts as their session start.
it seems I cannot use the metric sessions or visits along with my filtering to a sub section.

Data Paging with specific layout

I am trying to use data paging (not custom data paging - just normal inefficient paging) for about max 125 records, over 5 pages, 25 records per page. But most samples out there seem to be using a gridview or a datagrid, however I want each record to look like this:
Record 1 Title
Record 1 Description
Record 1 Time: Record 1 Contact:
Record 2 Title
Record 2 Description
Record 2 Time: Record 2 Contact:
etc etc, however with grids they result is like a table with bound fields for each column so I can't display it like that using paging, I thought of using a Repeater however I think I will need to use viewstate for that as it doesn't have paging built in and don't want to use ViewState as I have disabled this - can anyone help?
I think what you are looking for is a DataView or a Repeater
The Repeater control is a basic
templated data-bound list. It has no
built-in layout or styles, so you must
explicitly declare all layout,
formatting, and style tags within the
control's templates.

Resources