Home All Groups Group Topic Archive Search About
Author
7 Mar 2006 12:46 PM
Larry Charlton
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.

Author
7 Mar 2006 1:51 PM
Christopher Reed
HtmlTable....
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

Show quoteHide quote
"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.
Author
7 Mar 2006 2:31 PM
Doug Salomon
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.
>
>
>
Author
8 Mar 2006 3:12 AM
Christopher Reed
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.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

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.
>>
>>
>>
Author
9 Mar 2006 6:21 AM
Teemu Keiski
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


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.
>>
>>
>>
Author
10 Mar 2006 12:34 PM
Christopher Reed
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.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

Show quoteHide quote
"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.
>>>
>>>
>>>
>
>