Before reading this I ended up appending the select row in my bll and that got it working, but adamroof your way seems much cleaner so I switched to that and it worked too. Thanks for the help everyone!
I tried that but no luck. I put a break point when the following code is being executed:
DropDownList ddl = (DropDownList)sender;
ddl.Items.Insert(0, new ListItem("- select Purchasing Division", ""));
And it is erroring out before the databound method gets called.
I have a dropdownlist that use an objectdatasource as its datasource. On the databound event I am adding another list item to the dropdownlist with this statement:
DropDownList ddl = (DropDownList)sender;
ddl.Items.Insert(0, new ListItem("- select Purchasing Division", ""));
Now the...
Hi I am overriding the CreateChildControls method, in a separate class, of the gridview to create a custom gridiview. Is there anyway I can access the querystrings from the URL in this class? Thanks!
Hi I am receiving this error message when I click the update button in a gridview that I created. The gridview is bound to an objectdatasource which is bound to a tableadapter. Since this specific tableadapter's select statement has a couple inner joins in it i had to create my own Update...
Hi I was wondering if anyone knew of a good way to display the point labels on a pie chart. If I keep them in the chart they overlap each other and if I have them extend out on the sides the chart itself gets so small for some reason and it just looks bad. Is there anyway to get the labels on...
Hi I have a Gridview with some boundfields. I want to dynamically change the color of text based on the datafield value for each row. Is there anyway to do this as a boundfield or do I have to turn it into a template field? Below is a snippet:
<asp:BoundField HtmlEncode="False"...
I was wondering if it was possible to put two charts on one .rdlc file. When I try to do this I get an error on the build that says:
The constructor to deserialize an object of type 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException'
Do I need to create multiple .rdlc...
When you set the target attribute of a hyperlink to "_Blank" or whatever you choose to make it open up in a new window, what are the chances of it being blocked by a popup blocker? I have a site with reference links to other sites and don't want people to leave my site when they click on these...
I fixed this problem too. It has something to do with the postback. The portion that I was creating the button in was only being created if the page was not postback so I took it out of the if(!isPostBack) check and it works fine now.
I ended up adding an EventHandler to transfer control back to the .aspx.cs page with the code below.
Here is the code I added to the separate class
//these were at the class level
public delegate void ImageButtonClickEventHandler(object WorkplanTable, ImageButtonClickEventArgs btnClick)...
That references another class for various reasons. ONe of the reasons is to create and add an image button to the .aspx page. I then created a onclick event for the image button. That event is located in the separate class. In that event I want to reference a panel that is in my .aspx page...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.