473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Client Side Controls In Datagrid ASP .Net

Jon
Can you add client side controls inside a asp .net datagrid?

The code below shows what I have template column inside a asp .net datagrid...

<Columns>
<asp:TemplateColumn HeaderText="Exist Or Not">
<ItemTemplate>
<!--<asp:ImageButton ID="btnViewReply" Runat="server"
CommandName="btnViewReply" ImageUrl='<%#
selectimage(DataBinder.Eval(Container.DataItem, "spec_hold_status"),
DataBinder.Eval(Container.DataItem, "spec_submit_date"))%>'
AlternateText='<%#iif(DataBinder.Eval(Container.Da taItem,
"spec_hold_status"),"Reply Exists","No Reply")%>'
CssClass='<%#iif(DataBinder.Eval(Container.DataIte m,
"spec_hold_status"),"imagebutton","button")%>'/>--->

<IMG id="imgImage" height="21" width="34" alt="Reply" style="Z-INDEX: 103;
LEFT: 874px; CURSOR: hand; POSITION: absolute; TOP: 36px" src='<%#
selectimage(DataBinder.Eval(Container.DataItem, "spec_hold_status"),
DataBinder.Eval(Container.DataItem, "spec_submit_date"))%>' />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
--

I am running some code that works great when I use a Imagebutton server
control inside the datagrid, except of course it has to make a trip to the
server, flash the screen before the rest of the code (not included here)
executes. (That line with the imagebutton is commented out in this code) I
have attempted many times to simply add a client side image (<IMG ) control
instead, but it won't show up in the datagrid. No errors, but no button
either. Any ideas??

--
Any info will be very appreciated!

Jon
Nov 22 '05 #1
1 1348
Jon
No one knows the answer to this??

"Jon" wrote:
Can you add client side controls inside a asp .net datagrid?

The code below shows what I have template column inside a asp .net datagrid...

<Columns>
<asp:TemplateColumn HeaderText="Exist Or Not">
<ItemTemplate>
<!--<asp:ImageButton ID="btnViewReply" Runat="server"
CommandName="btnViewReply" ImageUrl='<%#
selectimage(DataBinder.Eval(Container.DataItem, "spec_hold_status"),
DataBinder.Eval(Container.DataItem, "spec_submit_date"))%>'
AlternateText='<%#iif(DataBinder.Eval(Container.Da taItem,
"spec_hold_status"),"Reply Exists","No Reply")%>'
CssClass='<%#iif(DataBinder.Eval(Container.DataIte m,
"spec_hold_status"),"imagebutton","button")%>'/>--->

<IMG id="imgImage" height="21" width="34" alt="Reply" style="Z-INDEX: 103;
LEFT: 874px; CURSOR: hand; POSITION: absolute; TOP: 36px" src='<%#
selectimage(DataBinder.Eval(Container.DataItem, "spec_hold_status"),
DataBinder.Eval(Container.DataItem, "spec_submit_date"))%>' />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
--

I am running some code that works great when I use a Imagebutton server
control inside the datagrid, except of course it has to make a trip to the
server, flash the screen before the rest of the code (not included here)
executes. (That line with the imagebutton is commented out in this code) I
have attempted many times to simply add a client side image (<IMG ) control
instead, but it won't show up in the datagrid. No errors, but no button
either. Any ideas??

--
Any info will be very appreciated!

Jon

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jon | last post by:
Can you add client side controls inside a asp .net datagrid? The code below shows what I have template column inside a asp .net datagrid... <Columns> <asp:TemplateColumn HeaderText="Exist Or...
11
by: Hrvoje Vrbanc | last post by:
Hello, I have the following problem: I have a DataGrid control on my page with a column with TextBox controls and another one with ImageButton controls. In order to force a call to JavaScript...
4
by: Sue | last post by:
ASP.NET web application, data grid with several fields (Labels), table below the datagrid with several textboxes and dropdown lookup tables. When a user clicks on the "Select" button in datagrid,...
8
by: Sue | last post by:
I have a datagrid populated with 6 visible read-only labels and several hidden fields. Below the datagrid, I have a table with various textboxes, dropdowns, etc. I've managed to decypher the...
1
by: Asha | last post by:
greetings, i want to populate a datagrid with data from the db and this requires a post back and code behind do its job. after the datagrid is being populated, i want the client side to execute...
3
by: Mr Newbie | last post by:
I am using a DataGrid for Edit and Update. However, Im wondering what the best strategy for client side validation would be as I dont think the validators can reference the TextBoxes which come up...
0
by: magic man | last post by:
I have written an application in VB.Net using server side controls. I realize that I need client side controls to print anything at the clients computer. I have a web page that consists of a 1...
4
by: Server Control | last post by:
Hi, I have a datagrid(within a user control) that has label controls. I have added hidden fields in the datagrid alongwitht the label control. I do some client side editing with javascript and...
2
by: Maarten | last post by:
Hi all, I have a datagrid with questions where the user has to make a choice (yes or no questions) But for some questions there are rules, like if you choose (yes or no) for some questions I...
1
by: Andrew Wan | last post by:
Is it possible to make some of the DataGrid functionality to client-side? Such as the Edit, Update, Cancel, Delete functionality? Everytime I click on a row's Edit button, I wait 2 seconds...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.