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...
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...
Hi I have a gridview and below the gridview a user can add a new entry into the database. The Gridview is then rebound so the new entry is added to the Gridview. When I run my insert statement I am also returning the scope identity with the Select Scope_Identity() statement and a...
Hi I am trying to set the focus to a textbox when validation errors out. below is the code I am trying to use and I keep getting an error that says tBox is undefined. Also, are there any focus methods or workarounds to get this working in both IE and firefox, rather than just IE? Thanks...
I am trying to return the index of a cell in a table, when a textbox is manipulated. I have an onchange event with the textbox and I am sending the textbox object as a parameter with the key word this. In my Javascript I am trying to obtain the index of the cell and row that the Textbox was...
I have a data adapter that is filling a data table with info from a SQL Server database. I am trying to retrieve the length of each datacolumn by using the maxlength property from the datacolumncollection. It keeps returning -1 though? How can I retrieve the column length for each column?
I have a staging table that will be broken down and inserted into 5 other tables programmatically. I need to create a primary key for each row using the data that will be inserted into that table, columns range from 3 to 50 for the tables. Keepin mind when I pull data for each table I am...
I am trying to concatenate multiple fields into one field in a query. The problem I am having is that if any single one of these fields has a null alue the resulting value is null regardless if the other fields have values or not. I tried both the convert and cast functions but to no avail...
I have two tables, on two different SQL Servers, one locally, and another in a development environment, and they are identical in terms of columns and data types etc... the only difference is one has data and the other is completely empty. I created a link between the two servers, and want to...
Hi,
I have a program that opens a database and fills a datatable, with 0 rows, through a dataadapter. A text file is then parsed and the datatable has rows inserted into it with each row from the text file. When the program is done parsing the file and modifying the datatable, the...
I have a Windows Form Program, and it creates a separate thread and then fires off another .exe. In my main thread I am tracking if the background thread is still alive every second or so. The background thread dies right after I start the exe, but I don't want my program to move forward until...
I have the following code:
string line6 = "PATH {0}";
With {0} being the parameter, I can't quite figure out how to pass a value to it though. Can someone please help? Thanks!
I am trying to make it so that when a user drops a file onto my exe icon I can grab the location of the file and begin processing. How would I go about doing this? Is there an event that is triggered when a file is dropped on the exe itself? thanks!
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.