GridView/DataGrid via JavaScript?

P

pApAk

Hi,

i am working at .NET Web-Application (c# codebehind) and i have placed on my
web-site a GridView, aka DataGrid (that works as Server control). This
GridView generated following code in HTML-source:

<asp:GridView ID="GridView1" runat="server">
</asp:GridView>

Is there a way to "reach" a GridView (or a GridView-Row) via Javascript? For
example to change its BackColor, something like:

GridView1.BackColor="blue";

or

GridView1.Rows[0].BackColor="blue";

but with JavaScript?

Please help...

Thanks!
 
M

Matt Kruse

pApAk said:
This GridView generated following code in HTML-source:
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>

I guarantee that is not the generated html. Instead, that's the generated
asp code or whatever.
Load the age in your browser and view source. You'll find what you need.
Is there a way to "reach" a GridView (or a GridView-Row) via
Javascript? For example to change its BackColor

Probably. But the generated html/xhtml/js from .NET is so horrible that I
wouldn't even want to try to touch it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top