|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Accessible GridViewIs there a way to make GridView work if javascript is disabled (in terms of
selecting, sorting, and paging). As an alternate, are there other controls that could provide this functionality if javascript were disabled. HtmlTable....
-- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "Larry Charlton" <LarryCharl***@discussions.microsoft.com> wrote in message news:B64BEBAE-1B9A-43E0-B48A-A2BD314DB64C@microsoft.com... > Is there a way to make GridView work if javascript is disabled (in terms > of > selecting, sorting, and paging). > > As an alternate, are there other controls that could provide this > functionality if javascript were disabled. I think ASP.Net relies too much on javascript to make this an easy project.
Even when something is done server-side, the mechanism for geting the page to post to the server (the "postback") is a javascript function, I believe. So, for instance, even through sorting might occur on the server, a hyperlink in a gridview can only perform the postback which allows the server to do its work, if javascript is enabled. If instead of hyperlinks, you had a bunch of input buttons of type=submit, you could probably get away with no javascript, but like I said, this won't be an easy project. Show quoteHide quote "Christopher Reed" wrote: > HtmlTable.... > -- > Christopher A. Reed > "The oxen are slow, but the earth is patient." > > "Larry Charlton" <LarryCharl***@discussions.microsoft.com> wrote in message > news:B64BEBAE-1B9A-43E0-B48A-A2BD314DB64C@microsoft.com... > > Is there a way to make GridView work if javascript is disabled (in terms > > of > > selecting, sorting, and paging). > > > > As an alternate, are there other controls that could provide this > > functionality if javascript were disabled. > > > To be honest, I believe that ASP.NET relies on Javascript so much is to
manipulate the browser to do some things that a Windows app would do. If you really want to avoid Javascript, you can always use classic ASP. By the way, ASP.NET Buttons do not use the postback script because these postback on their own. -- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "Doug Salomon" <DougSalo***@discussions.microsoft.com> wrote in message news:386A11A8-DD88-48D6-ADC5-5BADB6898C84@microsoft.com... >I think ASP.Net relies too much on javascript to make this an easy project. > > Even when something is done server-side, the mechanism for geting the page > to post to the server (the "postback") is a javascript function, I > believe. > So, for instance, even through sorting might occur on the server, a > hyperlink > in a gridview can only perform the postback which allows the server to do > its > work, if javascript is enabled. > > If instead of hyperlinks, you had a bunch of input buttons of type=submit, > you could probably get away with no javascript, but like I said, this > won't > be an easy project. > > "Christopher Reed" wrote: > >> HtmlTable.... >> -- >> Christopher A. Reed >> "The oxen are slow, but the earth is patient." >> >> "Larry Charlton" <LarryCharl***@discussions.microsoft.com> wrote in >> message >> news:B64BEBAE-1B9A-43E0-B48A-A2BD314DB64C@microsoft.com... >> > Is there a way to make GridView work if javascript is disabled (in >> > terms >> > of >> > selecting, sorting, and paging). >> > >> > As an alternate, are there other controls that could provide this >> > functionality if javascript were disabled. >> >> >> Hi,
you can avoid those scenarios by having a look at this: ASP.NET Web Server Controls that Use Client Ccript http://msdn2.microsoft.com/en-us/library/ms178206(VS.80).aspx Show quoteHide quote "Doug Salomon" <DougSalo***@discussions.microsoft.com> wrote in message news:386A11A8-DD88-48D6-ADC5-5BADB6898C84@microsoft.com... >I think ASP.Net relies too much on javascript to make this an easy project. > > Even when something is done server-side, the mechanism for geting the page > to post to the server (the "postback") is a javascript function, I > believe. > So, for instance, even through sorting might occur on the server, a > hyperlink > in a gridview can only perform the postback which allows the server to do > its > work, if javascript is enabled. > > If instead of hyperlinks, you had a bunch of input buttons of type=submit, > you could probably get away with no javascript, but like I said, this > won't > be an easy project. > > "Christopher Reed" wrote: > >> HtmlTable.... >> -- >> Christopher A. Reed >> "The oxen are slow, but the earth is patient." >> >> "Larry Charlton" <LarryCharl***@discussions.microsoft.com> wrote in >> message >> news:B64BEBAE-1B9A-43E0-B48A-A2BD314DB64C@microsoft.com... >> > Is there a way to make GridView work if javascript is disabled (in >> > terms >> > of >> > selecting, sorting, and paging). >> > >> > As an alternate, are there other controls that could provide this >> > functionality if javascript were disabled. >> >> >> I believe that "avoid" is incorrect in this situation. If you're going to
use ASP.NET, you will have to have some Javascript functionality. Most standard HTML controls do not have postback functionality, so ASP.NET has to make it happen with Javascript. This isn't going to change because this is the ASP.NET paradigm. -- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "Teemu Keiski" <jot***@aspalliance.com> wrote in message news:upYfqG0QGHA.4900@TK2MSFTNGP09.phx.gbl... > Hi, > > you can avoid those scenarios by having a look at this: > > ASP.NET Web Server Controls that Use Client Ccript > http://msdn2.microsoft.com/en-us/library/ms178206(VS.80).aspx > > -- > Teemu Keiski > ASP.NET MVP, AspInsider > Finland, EU > http://blogs.aspadvice.com/joteke > > > "Doug Salomon" <DougSalo***@discussions.microsoft.com> wrote in message > news:386A11A8-DD88-48D6-ADC5-5BADB6898C84@microsoft.com... >>I think ASP.Net relies too much on javascript to make this an easy >>project. >> >> Even when something is done server-side, the mechanism for geting the >> page >> to post to the server (the "postback") is a javascript function, I >> believe. >> So, for instance, even through sorting might occur on the server, a >> hyperlink >> in a gridview can only perform the postback which allows the server to do >> its >> work, if javascript is enabled. >> >> If instead of hyperlinks, you had a bunch of input buttons of >> type=submit, >> you could probably get away with no javascript, but like I said, this >> won't >> be an easy project. >> >> "Christopher Reed" wrote: >> >>> HtmlTable.... >>> -- >>> Christopher A. Reed >>> "The oxen are slow, but the earth is patient." >>> >>> "Larry Charlton" <LarryCharl***@discussions.microsoft.com> wrote in >>> message >>> news:B64BEBAE-1B9A-43E0-B48A-A2BD314DB64C@microsoft.com... >>> > Is there a way to make GridView work if javascript is disabled (in >>> > terms >>> > of >>> > selecting, sorting, and paging). >>> > >>> > As an alternate, are there other controls that could provide this >>> > functionality if javascript were disabled. >>> >>> >>> > >
GridView TemplateColumn
Retrieving Values from Hidden Fileds Inside Web Controls on PostBa Intercepting the GridView Panel Controls ASP.NET datagrid System.Web.UI.WebControls.Image control not refreshing PREVENT an ASP.Net page from posting back when the ENTER key press Reaching elements within <asp:formview> control Postback and return view Absolute vs. Relative vs. my sanity... |
|||||||||||||||||||||||