Click here to Skip to main content
15,881,882 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Re-Developing asp.net webform to MVC Pin
jkirkerx23-Nov-16 7:56
professionaljkirkerx23-Nov-16 7:56 
GeneralRe: Re-Developing asp.net webform to MVC Pin
Richard Deeming23-Nov-16 12:11
mveRichard Deeming23-Nov-16 12:11 
GeneralRe: Re-Developing asp.net webform to MVC Pin
jkirkerx25-Nov-16 9:59
professionaljkirkerx25-Nov-16 9:59 
AnswerRe: Re-Developing asp.net webform to MVC Pin
hussain.attiya23-Nov-16 20:27
hussain.attiya23-Nov-16 20:27 
QuestionWeb API integration into MVC Pin
sunsher17-Nov-16 16:55
sunsher17-Nov-16 16:55 
AnswerRe: Web API integration into MVC Pin
Matt U.19-Nov-16 5:39
Matt U.19-Nov-16 5:39 
AnswerRe: Web API integration into MVC Pin
Afzaal Ahmad Zeeshan24-Nov-16 2:36
professionalAfzaal Ahmad Zeeshan24-Nov-16 2:36 
Questiondatapager field(s) produce error I can't solve Pin
Scott5217-Nov-16 4:05
Scott5217-Nov-16 4:05 
Hello, I have a web page that is using similar code to a second page that works perfectly. Both pages have listviews. Immediately following the listviews I have datapagers.

Page 1 (the working page), has a listview, and a datapager. I have three fields for this datapager. To simplify things, the first field looks like:
<Fields>
<asp:NextPreviousPagerField ShowFirstPageButton="False" ShowNextPageButton="False" />


It works as expected.

Page 2 also has a listview. I have a datapager. If I leave out any fields for this datapager, the web page renders. (I just don't see any pagination control.)

Here is where I attempt to just add a single field to the datapager:
<Fields>
<asp:NextPreviousPagerField ShowFirstPageButton="False" ShowNextPageButton="False" />


Doing this generates what I consider to be a bizarre, crazy error:
<ERROR>
Control 'DataPager_ctl00_ctl00' of type 'LinkButton' must be placed inside a form tag with runat=server

Huh? Why would trying to add even one field to this datapager give me this error? The code for the listviews and datapagers for both web pages are nearly identical. Where both datapagers are defined I am using the runat="server" directive. The directive for the datapager that isn't working resembles this:

<asp:DataPager ID="DataPager" runat="server" PagedControlID="listview1" PageSize="1" OnPreRender="DataPager_PreRender">

I've got runat=server. If I take away the field (i.e., NextPreviousPagerField) in this datapager the web page renders. Add the field and I get what I consider to be a bizarre error.

Are there any ASP.NET DataPager gurus out there? Thanks.

-- modified 17-Nov-16 10:42am.
AnswerRe: datapager field(s) produce error I can't solve Pin
Richard Deeming17-Nov-16 4:38
mveRichard Deeming17-Nov-16 4:38 
GeneralRe: datapager field(s) produce error I can't solve Pin
Scott5217-Nov-16 4:45
Scott5217-Nov-16 4:45 
QuestionLimit Date Ranges to be not picked up which are already exists in the list Pin
indian14316-Nov-16 13:37
indian14316-Nov-16 13:37 
QuestionTrying to set fixed width with stringbuilder is not working correctly. Pin
samflex15-Nov-16 3:57
samflex15-Nov-16 3:57 
QuestionBest approach to avoid confusion in Configuration file when deploying an ASP.Net MVC application Pin
indian14314-Nov-16 13:48
indian14314-Nov-16 13:48 
AnswerRe: Best approach to avoid confusion in Configuration file when deploying an ASP.Net MVC application Pin
Nathan Minier15-Nov-16 1:33
professionalNathan Minier15-Nov-16 1:33 
GeneralRe: Best approach to avoid confusion in Configuration file when deploying an ASP.Net MVC application Pin
indian14315-Nov-16 5:54
indian14315-Nov-16 5:54 
AnswerRe: Best approach to avoid confusion in Configuration file when deploying an ASP.Net MVC application Pin
Richard Deeming15-Nov-16 2:21
mveRichard Deeming15-Nov-16 2:21 
AnswerRe: Best approach to avoid confusion in Configuration file when deploying an ASP.Net MVC application Pin
Dominic Burford17-Nov-16 2:41
professionalDominic Burford17-Nov-16 2:41 
QuestionNeed help with validation on image links Pin
Bootzilla3314-Nov-16 8:56
Bootzilla3314-Nov-16 8:56 
QuestionAssign a javascript or jQuery method to a button onClick event Pin
indian14314-Nov-16 6:24
indian14314-Nov-16 6:24 
AnswerRe: Assign a javascript or jQuery method to a button onClick event - Resolved Pin
indian14314-Nov-16 6:27
indian14314-Nov-16 6:27 
Questionhow to bind two dropdownlists using jquery,C# from backend Pin
Member 1284531611-Nov-16 1:49
Member 1284531611-Nov-16 1:49 
Rant[REPOST] how to bind two dropdownlists using jquery,C# from backend Pin
Richard Deeming11-Nov-16 2:04
mveRichard Deeming11-Nov-16 2:04 
QuestionThe datepicker input items that are added at runtime using Jquery are not firing the datepicker event Pin
indian1439-Nov-16 13:19
indian1439-Nov-16 13:19 
AnswerRe: The datepicker input items that are added at runtime using Jquery are not firing the datepicker event Pin
Richard Deeming10-Nov-16 2:13
mveRichard Deeming10-Nov-16 2:13 
GeneralRe: The datepicker input items that are added at runtime using Jquery are not firing the datepicker event Pin
indian14310-Nov-16 5:53
indian14310-Nov-16 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.