I have three dropdownlist controls. When the page loads, first dropdownlist is filled and the remaining two are empty. When I select some value in First dropdownlist then corresponding values to be populated in Second dropdownlist and same When I select some value in Second dropdownlist then corresponding values to be populated in Third dropdownlist. The problem is, Whatever I select in the First dropdownlist automatically the first item only getting selected. Even If I selected the 5th Item, then also the First Item only getting selected. Please solve my problem.
I have designed and coded all my report pages.As my data is more then 500 charactres in one of my fied, the entry directly goes to second page and the first page remains blank as i have a page header covering 1/4th space in my first page....
Thus i wanted to have data on first page also and continue the remaining data on second page....Is there any property that i m forgetting to assign ?
Hi guys, i have a datagrid with a check box.
when user clicks 'Delete' button, then all the rows
where a checkbox is checked should be deleted.
here is what i have tried and suprisingly only the first selected row get
deleted and the rest are ignored
for (int i = 0; i < contacts.Items.Count; i++)
delSel = (CheckBox)contacts.Items[i].Cells.FindControl("delSelection");
string contactId = contacts.Items[i].Cells.Text;
string delet = manager.DeleteContact(contactId);//get response after deleting from database
Please help if you know how i can delete all checked rows(contacts)
Ya managed to fix it...really just logic wasted my 3hours.
I was calling a method to update my datagrid within the forloop,
to mean when it loops once i call the method to update datagrid
hence my selected/checked items get refreshed and lost.
Anyway thanks for your help
you say PreviousPage is always null. When is the code you posted actually run? If it is on a postback,
PreviousPage is null, because there is no PreviousPage then. You should save the value
in a "If(!IsPostback)" part of your page load.
I have created a report which uses CSS to set back-ground image a text box. When I run the report using ASP.NET CrystalReportViewer, the CSS formatting was applied but when I tried to print the report, the CSS formatting was not applied.
I am using Crystal Report for Visual Studio .NET 2005.