Hi, I have a master datagrid in an asp.net page. Selecting a record in the master datagrid loads the details datagrid. This worked fine as long as I had both the datagrids on the same asp.net page. Now I moved the details datagrid to a seperate asp.net page that I included in an IFRAME element in the asp.net page that contains the master datagrid. On doing this I have taken care that when a record is selected on the master datagrid the id is passed to the details datagrid in the IFRAME. So selecting a record is now properly loading the data in the details datagrid in the IFRAME page. Both the Master and the Details datagrid have paging enabled. Now after using the IFRAME I am facing the following problems: 1> I select the record in the Master datagrid and the Details datagrid loads with paging in the IFRAME. If I click on any of the pages of the Master datagrid, paging has stopped working properly : the postback takes place but the next page is not loaded for the datagrid. 2> If I click on any page no. of the Details datagrid in the IFRAME I get the following exceptiion: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. The paging for the Master Datagrid works fine if I do not have the IFRAME element The paging for the Details datagrid works fine if I independently load the page with the required params passed. In case if anyone has faced such a problem before and knows the solution please let me know Thanks in advance :) Sid
psid23
Posts
-
Datagrid paging and IFRAME -
Datagrid Paging not working when using rowfilter on dataviewHi, I was displaying data in a datagrid using the dataview as the datasource for the datagrid. Paging worked properly when i used sort property on the dataview, however it failed when i used the rowfilter property on the dataview to filter records. If anyone has faced this problem before please let me know the solution at the earliest. Thanks & Regards, Siddharth P
-
Adding events to dynamically created controlsthanks for the solution :)
-
Adding events to dynamically created controlshow will i get the event name when the control name is not available at design time?
-
Adding events to dynamically created controlsHi, I am dynamically creating asp.net controls at runtime. I have 2 dropdown lists. When I change the item selected in the first drop down list I want to load the second drop-down list. How shall I add the SelectedIndexChanged event handler for the first dropdown list? Please let me know at the earliest since this is really urgent. Thanks in advance. Sid :)
-
Applying style to an HTML Anchor in asp.net code-behind fileHi, I want to apply style(e.g. class) to an HTML anchor tag in the code-behind asp.net page. How can this be done? Thanx in advance, Siddharth P
-
Email validationYou can also try this piece of code. Assumptions: 1. Your Windows form has a text box with the name txtEmailID 2. You have using System.Text.RegularExpressions at the top of your form. 3. Call the ValidateEmail function in the event where you want to validate the email id. private bool ValidateEmail() { bool checkFlag = false; string EmailID = txtEmailID.Text.Trim(); if (EmailID != "") { Regex regex = new Regex(@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"); Match match = regex.Match(EmailID); if (match.Length == EmailID.Length) { checkFlag = true; } else { MessageBox.Show("Enter a valid email-id"); checkFlag = false; txtEmailID.Focus(); } } else { MessageBox.Show("Enter Email ID"); txtEmailID.Focus(); } return checkFlag; } All the best. Siddharth P :)