Hi, I am looking at ways to align the AJAX UpdateProgress next to the button that is doing a server postback, but not having success. I first added the UpdateProgress above the UpdatePanel in the masterpage (use one masterpage with an updatepanel), but when I click the button, the UpdateProgress image was displaying at the top. I then moved it next to the button(on the page that was doing the postback), but then had a few of these UpdateProgress images displaying to the "submit" buttons (there are 3 of these on the page). Does anyone know how to get passed this? Thank you.
playout
Posts
-
Align the UpdateProgress loading image to the button clicked -
Loose Coupled ArchitectureGo for a Service/Factory architecture and use a Agile Methodology. The service should drive the data(eg web app and windows app connect to the service)... Agile methodology to keep everything(code, documentation, team) together, etc.
-
Disable a page similiar to the ModalPopupExtender (non javascript)Hi, How can I disable a page when a user has javascript turned off(or have the same effect), similiar to the AJAX ModalPopupExtender? I have user that use javascript and non-javascript browsers(or have javascript turned-off). Any tips on where to find this on the web would also help. Thanks, Playout
-
Delete row from gridview after bindHi there, I want to delete a row from a gridview, once it has been populated. My user have some control over how he wants to see the gridview, but now wants to be able to deleted certain rows, when clicking a link. How will I delete the rows? I have the following code:
Dim row As GridViewRow 'Delete Customers from grid For Each row In gdvUsers.Rows If (row.Cells(4).Text = "") Then 'delete row End If Next
Any help will be appreciated. -
convert anynumber to text [modified]Hi, I need to do something similiar to: I need to convert any random number, to text. How would I do this?
private function getDateFormat() as string Dim theDate as string = "01-06-2005 13:45:30" Dim theDateFormat as string = "dd-mm-yyyy hh:mm:ss" 'need function here to convert to text, or something else? return "1st June 2005, Quarter-To-Two" End sub
-
auto filter on gridviewHi, I am looking for some help, on how to add a dropdownlist to a gridview header, and then having the same functionality as auto filter in MS Excel. If I sort on one column, it filters my gridview, if I sort on more then one column, it filters on the combonation. Now here is the tricky part(for me atleast)... I will not know how many columns there are, as the information is imported from an excel spreadsheet. Any help will be welcome.
-
GroupBy in datatable??Hi Pathan, It looks like something that can help me, but where do I use it? Where I fill my new datatable, or from the current datatable?
-
GroupBy in datatable??Thanks Ramana. Now if I want to group on a string, how would I do that? My columns in datatable are F2 and F3. I want to group by F2, where F3 is the primary key.
-
GroupBy in datatable??Hi, Is there a way to use groupBy in a datatable? I need to group some vaules in a column. I cannot use a sql query, as I am munipulating the data in the datatable for a gridview. I know there are no function/class available in asp.net, but maybe someone knows where to find something on the net, or had the same problem as me.
-
removing mulitple entries from datatableHi Venkatesh, I need to select from a datatable, not the sql database. I need to do something like a groupBy in the datatable, on a certain column. Any idea how to do that?
-
removing mulitple entries from datatableHi, I have a datatable called dtEmployeeData. In the datatable the Employee's name can sometimes be in there more then once(I get this data from a sql database). Now I can't change my select query, to bring back the employee name only once, as the his name is allowed to be in the gridview more then once(due to transaction history). What I want to do now is, is to select only the name from that datatable, and only show his name once in a dropdownlist. I use this dropdownlist to show all the employee names, and the name must only appear once. How would I do this? Here is my code I have so far:
Dim dtEmployeeData As DataTable = New DataTable() dtEmployeeData = BO.getData() drpSort.DataValueField = "EmployeeName" drpSort.DataTextField = "EmployeeName" drpSort.DataSource = dtEmployeeData
Using this code, I get: Abraham Bennie John John John Peter Stewart I want to have the following: Abraham Bennie John Peter Stewart -
select specific column from datatableThank you Ben, I think this method will help me a lot. Will try it over the weekend. Regards Playout
-
select specific column from datatableHi, I have a datatable filled with data I get from a sql query and database. Has the following columns in: EmployeeID EmployeeName EmployeeSurname EmployeeSickLeaveDate I just want to select all the data from column "EmployeeName" in the datatable. By that, I only want to populate a new datatable with "EmployeeName" How will this be possible. I tried using datatable.select(), but no luck, or I am not using it correct.
-
create header row for gridview in code-behind before bindingHi, I would like to know how I can add a headerRow to a gridview, before I show it on the page. I will never know how many columns there will be(get amount of columns from another source), so I have to loop through an array each time, check how many columms there are, and then create a column(with text name) for each of the array items. How will I add code to the following code, to add a header row?
'dtInvoice = datatable 'gdvInvoice = gridview gdvInvoice.DataSource = dtInvoice gdvInvoice.EmptyDataText = "No Data to Display" gdvInvoice.PagerSettings.Position = PagerPosition.Top gdvInvoice.AllowSorting = True Dim keyArray() As String = {ViewState("AppPrimaryKey")} gdvInvoice.DataKeyNames = keyArray gdvInvoice.DataBind() gdvInvoice.Visible = True
-
OnCheckedChanged event for checkboxHi, I want to add the OnCheckedChanged event to a checkbox, and then fire a method that colours all my rows in the datagrid. I am doing this in the RowDataBound method. I am not having any luck. Can anybody maybe help me. Here is my code so far:
Dim chkAllInsertInvoice As CheckBox = New CheckBox() chkAllInsertInvoice.ID = "chkAllInsertInvoice" chkAllInsertInvoice.AutoPostBack = True chkAllInsertInvoice.Attributes.Add("OnCheckedChanged", "ChangeAllBackgroundRow()") cell = New TableCell 'cell.Text = "All" cell.Controls.Add(chkAllInsertInvoice)
-
Highlight gridview row using AJAXHi, I would like to know if it is possible to highlight a gridview row, using ajax. I have a checkbox in each row, and if you check the checkbox, the row colour must change colour. If you uncheck the checkbox, the colour should revert back to its original colour. Is this possible and how?
-
SQL CursorIs it possible to select from 3 tables, and insert into a new table without using a where clause and using the SQL cursor. If so, how would I do that? Any code example?
-
retrieve auto number IDThanks Colin, I just have one more question... What is SCOPE_IDENTITY()?
-
retrieve auto number IDHi, I am inserting a new record to a SQL 2005 database table(tClients). I have a Primary Key called iClientID in that I use to bind clients, that is Auto Number. I want to retrieve the iClientID once I inserted the record, as part of my stored procedure. Here is my insert statement.
INSERT INTO tClients(sClientName, sClientAddress, sClientContact, iClientOrder) VALUES ('Joe Simpson', '3 Green Ave' , 'Mr. R Simpson' , 3)
-
column length select queryThanks alot. It worked. I never thought of LEN()...