Questions tagged [buttonfield]

52 questions
1
vote
2 answers

How to get each row data using button field in gridview to display in textbox?

I want to display my gridview details in respective textbox by clicking Edit buttonfield appear in gridview. I am able get only first row(row[0]) data, either by default or by clicking all over the another rows. But I need each row by clicking each…
Arjun
  • 41
  • 2
  • 6
1
vote
3 answers

How to make click event for button field in grid view asp.net

I have dynamically created GridView in my .aspx from codebehind. I inserted a sql table in that GridView. Then I added one more button filed column. Here is the code: ButtonField bf = new ButtonField(); bf.Text = "Details"; bf.ButtonType =…
daidai
  • 531
  • 5
  • 10
  • 22
1
vote
3 answers

Using ButtonField or HyperLinkField to write a cookie in ASP.NET

I currently have a DetailsView in ASP.NET that gets data from the database based on an ID passed through a QueryString. What I've been trying to do now is to then use that same ID in a new cookie that is created when a user clicks either a…
Matt
  • 494
  • 1
  • 5
  • 13
1
vote
1 answer

How to check if a GridView contains a Button field or not

My Question is: I have a GridView and it contains a column (Button field). Now I want to know on runtime that wheather my Grid contains a Button field or not. foreach (DataColumn col in Table.Columns) { …
Marxist Ali
  • 65
  • 2
  • 11
1
vote
3 answers

How do I make my custom bitmap button field use a transparent background?

I have a custom bitmap buttonfield that completely works, however, the background behind the image is showing a white rectangle. I've found where it makes the color white, but I cannot figure out how to make it completely transparent. Any ideas? I'm…
Joey John John
  • 243
  • 2
  • 11
1
vote
1 answer

ButtonField in a GridView setting ButtonType to "image" raise two http post (IE only)

I am facing same problem as mentioned here. When using a ButtonField in a GridView and setting ButtonType to "image",on click it makes 2 http post. For these multiple postbacks on one click, the value of Postback is 'false' for the first time and…
Gaurav
  • 330
  • 7
  • 21
0
votes
1 answer

Blackberry custom ButtonField with icon and text

How would I go about creating a custom ButtonField that includes an icon? I have found several different sources for a ButtonField with a custom background Bitmap, but I want to have a button with an Icon and text under it. I can not find anyt…
DecodeGnome
  • 1,809
  • 1
  • 19
  • 36
0
votes
1 answer

Blackberry BitmapButtonField center alignment + fitting on window view

I'm using the following code to add images to the buttons. However, I got some of the buttons out of the window view !! What should I add to make them fit on the view window ?! PLUS: I want them to be on the center, vertically and horizontally.…
iAhmad
  • 3
  • 2
0
votes
1 answer

Gridview with buttonfield delete & Linq to SQL DAL

I'm trying implement a simple Button field in the GridView. I have a three-tier application that I'll combine into one function for this example: protected void…
Camoking
  • 3
  • 2
0
votes
2 answers

Calling a java script function in grid view button field

I have a asp.net grid view which has a buttonfield to reset a user? I need to call a js function to get a confirmation message, when the buttonfield clicks, Any ideas? TIA here is my grid view
Aruna Prabhath
  • 206
  • 2
  • 10
0
votes
2 answers

GridView ButtonField postback not working in IE7?

I have an ASP.Net Web Site with GridView control that in turn contains a ButtonField column. It's supposed to do a postback when this ButtonField is clicked, but that doesn't happen if I click on the button from within the Internet Explorer window…
Guest20090331
0
votes
3 answers

How to highlight button when get focus on it in blackberry?

I want to make a blackberry button with images, the one image should be shown when focused and another when unfocused. or even you can say a blue color when focus is off(by default) and red color when focus is on, how can I achieve such thing ? see…
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
0
votes
1 answer

How to use result of SqlDataSource query (specified in aspx file) with ButtonField?

I have specified a SelectCommand in SqlDataSource (.aspx file). This SelectCommand query will return data, that will be shown in GridView. Now there is one property named id (Primary Key) in select command, whose data will NOT be shown on GridView,…
Junaid
  • 941
  • 2
  • 14
  • 38
0
votes
1 answer

Changing button style in a gridview on click

i'm using a gridview filled with 7 buttonfields and 2 boundfields on each row. I'm trying to change the backcolor of my buttonfield on each click and doing some db update with a sp. I have tried to get that on rowcommand but having a null reference…
0
votes
1 answer

No Image on IE browser when using Image Button or Button Field in Grid View

Does anyone know why I'm encountering this issue using IE (all version) as browser? The image works perfectly on Chrome but not on IE. Here is an example screenshot of what I'm talking about: IE: And when I try this using Chrome it works as…
g0y
  • 73
  • 1
  • 14