Forms Data Controls :: Couldn't Find Graph In Environment
Feb 21, 2011in developing charts(graphs in vb.net with asp.net ), i am not finding graph controls in my environment.
View 1 Repliesin developing charts(graphs in vb.net with asp.net ), i am not finding graph controls in my environment.
View 1 RepliesI'm trying to display images in a GridView (yes, still this...). [edit] Before I can come to that I have to upload some images to the database.
I've followed this tutorial for the "upload image to database" code (this worked fine for uploading images, but I don't know if the images were converted to byte):
[URL]
and I've followed this tutorial for the "display images in gridview" code (and "retrieve file" from the tutorial below).
[URL]
It doesn't quite work, the GridView shows but without images
Now I'm trying to change the "save file" code according to this tutorial:
[URL]
but I don't understand everything in it. When I try to upload an image I get an error on this line:
[Code]....
I am creating a bar graph and line graph. I am using 2 dropdown list for the date and category. The user can chose the date and category that he want to view. I also have a upload button for the user to upload the excel file and dispaly the data in girdview.
However i have error whenever i want to view the graphs.. I have upload my code in the attachment. Pls take a look. I do the coding invb.
[code]....
I've got a asp.net web application, but if i try to publish it i get this error:Error 210 Copying file objDebugPackagePackageTmpimagesaanhalingsteken1.png to bjDebugPackagePackageTmpobjDebugPackagePackageTmpimagesaanhalingsteken1.png failed. Could not find file 'objDebugPackagePackageTmpimagesaanhalingsteken1.png'. 0 0 I've deleted this image, so what to do so the project can be build well ?Is there a collection of images somewhere?
View 2 RepliesI've got a old working project. But i like to work in 2008 with it.
So i've made a new clean project.
And imported the code, also the .cs files with the classes, the thing, i could not add a ASP.Net Folder for the App_Code (strange?).
So i made it by hand, maybe thats the problem... ?
But if i try to run the project coud'nt find the classes, while they are there, in the App_Code folder.
I have an Updatepanel inside hidden Div, but I am getting "Could not find UpdatePanel with ID 'ctl00_ContentPlaceHolder_ctl04_UpdatePanel1'. I am trying to show and hide this panel from code behind. Here is my code.
<div id="div1" runat="server" style="display:none">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table id="Table1">
<tr>
<td>
<telerik:RadComboBox ID="RadComboBox1" runat="server"
AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">
</telerik:RadComboBox>
</td>
<td valign="top">
<asp:Button ID="button1" runat="server" OnClick="button1_Click" Text="Test1"
/><br />
<asp:Button ID="button2" runat="server" OnClick="button2_Click" Text="Test2"
/>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</div>
Code:
<asp:GridView ID="ProductsGrid" runat="server" AutoGenerateColumns="False" DataKeyNames="ID,UserId"
DataSourceID="ProductsOptimisticConcurrencyDataSource"
OnRowUpdated="ProductsGrid_RowUpdated" AllowPaging="True" AllowSorting="True"
EnableModelValidation="True">
<Columns>
<asp:CommandField ShowDeleteButton="True" ValidationGroup="InsertValidationControls" />
<asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID"
ReadOnly="True" InsertVisible="False" />
<asp:BoundField DataField="UserId" HeaderText="UserId" ReadOnly="True"
SortExpression="UserId" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ProductsOptimisticConcurrencyDataSource" runat="server"
ConflictDetection="CompareAllValues"
SelectMethod="GetZaposleniBy" TypeName="zaposleni"
OnDeleted="ProductsOptimisticConcurrencyDataSource_Deleted"
OnUpdated="ProductsOptimisticConcurrencyDataSource_Updated"
onselecting="ProductsOptimisticConcurrencyDataSource_Selecting"
DeleteMethod="DeleteProduct">
<DeleteParameters>
<asp:Parameter Name="ID" Type="Int32" />
</DeleteParameters>
</asp:ObjectDataSource>
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)]
public bool DeleteProduct(int ID)
{
Guid UserId = Guid.NewGuid();
int rowsAffected = Adapter.Delete(ID,UserId);
// Return true if precisely one row was deleted, otherwise false
return rowsAffected == 1;
}
The problem is when I use Guid UserId = Guid.NewGuid ();.
In Table I UserId type: unique Therefore it does not work. If I use the UserId type: int working.
Error:
ObjectDataSource 'ProductsOptimisticConcurrencyDataSource' could not find a non-generic method 'DeleteProduct' that has parameters: ID, UserId.
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: ObjectDataSource 'ProductsOptimisticConcurrencyDataSource' could not find a non-generic method 'DeleteProduct' that has parameters: ID, UserId.
Source Error:
[Code]....
Stack Trace:
[Code]....
[InvalidOperationException: ObjectDataSource 'ProductsOptimisticConcurrencyDataSource' could not find a non-generic method 'DeleteProduct' that has parameters: ID, UserId.]
System.Web.UI.WebControls.ObjectDataSourceView.GetResolvedMethodData(Type type, String methodName, IDictionary allParameters, DataSourceOperation operation) +1119426
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteDelete(IDictionary keys, IDictionary oldValues) +504
System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary oldValues, DataSourceViewOperationCallback callback) +89
System.Web.UI.WebControls.GridView.HandleDelete(GridViewRow row, Int32 rowIndex) +714
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +869
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +207
System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565a
I've got a page with two ContentPlaceHolders. In first there is UpdatePanel with GridView. In second I located DropDownList which is trigger for UpdatePanel.
<asp:UpdatePanel ID="stanUpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true" >
<ContentTemplate>
GridView & other stuff
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ATDropDownList"
EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
Running the page causes error: "Control with ID 'ATDropDownList" could not be found for the trigger in UpdatePanel". I thought it was because the ATDropDownList is located inside ContentPlaceHolder. So I changed ATDropDownList's ID to UniqueID as follow:
<asp:AsyncPostBackTrigger ControlID="ctl00$ContentPlaceHolder2$ATDropDownList" (...)>
Everything works good, but I want to change it from page's code-behind. I tried to put
[Code]....
somewhere in code, but without luck so far.
I'm writing applications on Facebook located on an external website ASP.NET C #. The application should check whether or not a person likes my Fan Page (page) on Facebook, and if he or she doesn’t like it needs to like it before using this application. How this can be done using the Graph API and ASPSnippets Facebook API.
View 1 RepliesI have installed VS 2008 and then i installed sql server 2005 with reporting services. But i couldn't find the Business intelligence projects template in VS 2008. Suprisingly i could find the Business intelligence project template in VS 2005 which was installed automatically when i installed Sql Server 2005 and there ware no other project types like Visual C# etc.show me a way to get the Business intelligence projects template in VS 2008.
View 1 Repliesi am trying to write a gridview to an excell file, but i get the error: The type or namespace name 'StringWriter' could not be found (are you missing a using directive or an assembly reference?)
my code is:
protected void Button1_Click(object sender, EventArgs e)
{
//Clear content of buffer stream
Response.Clear();
//Set the type and filename
Response.AddHeader("TITLE", "TITLE.xls");
Response.Charset = "iso-8859-2";
Response.ContentType = "application/vnd.xls";
// Add the HTML from the GridView to a StringWriter to write it out later
StringWriter sw = new StringWriter();HtmlTextWriter htw = new HtmlTextWriter(sw);
GridView1.RenderControl(htw);
//Write out the data
Response.Write(sw.ToString());
Response.End();
}
I work in a group of 4 .Net developers. We rarely work on the same project at the same time but it does happen from time to time.We use TFS for source control. My most recent example is a project I just placed into production last night that included 2 WCF services and a web application front end. I worked out of a branch called "prod" because the application is brand new and has never seen the light of day. Now that the project is live, I need to branch off the prod branch for features, bugs, etc...
So what is the best way to do this?
Do I simple create a new branch and sort of archive the old branch and never use it again?
Do I branch off and then merge my branch changes back into the prod branch when I want to deploy to production?
And what about the file and assembly version. They are currently at 1.0.0.0. When do they change and why? If I fix a small bug, which number changes if any? If I add a feature, which number changes if any?
What I am looking for is what you have found to be the best way to efficiently manage source control. Most places I have worked always seem to bang heads with the source control system in on way or another and I would just like to find out what you have found that works the best.
I have Bar Chart with two Series on X axis one for Month and Other for Productvalue now if the product value is Zero then nothing is displaying on graph is there any way to show the atleast value of the product as integer Zero.
View 3 RepliesI cant even seem to start. i drag the chart icon into the ground and then the sqldatasource. tie them too together. and then im completely lost. i tried tieing x&y values with sum,customer name but they just arent working correctly
View 1 RepliesI have an arraylist that contains some values. (e.g. playerName). I also queried for values in the database (e.g. playerName, playerSales) and I need to match the playerName in the arraylist to the corresponding ones that I did a query from the database. (match those with the same playerName). From there, I need to create a bar graph with the respective playerName and their sales (playerSales).
A portion of the code is shown below:
[Code]....
The arraylist I mentioned was saved to a session to be used in another page. Is my code right? And how can I create the graph from the values?
I have a gridview on a web page as shown below
[Code]....
On checking the checkbox, the user will actually be selecting the products that he/she wants. The selected products will be stored in an arraylist by using a foreach loop through the gridview. The arraylist will then be saved to a session before being redirected to another page. (a button will be clicked after the selection of products to proceeed to another page)
On the redirected page, a bar graph needs to be generated based on the products selected previously and also the product sales (this is retrieved from the database).
How can I generate this bar graph without having to code the whole graph out?
I have a web page where a GridView will be shown with a column of different products and another column with checkboxes. Checking on the checkboxes will be equivalent to selecting the products. The selected products are saved to an arraylist. Then, the user has to click on a button located on the same page to analyze the selected products. On clicking the button, he/she will be directed to another page where a bar graph will be shown. The bar graph will be the result of having analyzed the products. How do I create the bar graph where the products are taken from the arraylist but I can make use of the datasource within the chart control to retrieve more detailed info(such as product sales) from the database, taking into account the products from the arraylist?
View 3 RepliesWe have a requirment to draw a graph (line or bar), where the data will be changed 40 to 50 times in second , we want to refresh data automatically.
Which chart component should we use for drawing graph and how do i make sure that the data will be refreshed very fast on the graph web page.
I have a requirment to draw a graph (Cartesion chart), where the data will be changed 40 to 50 times within hour , i want to refresh data automatically.
Which chart component should i use for drawing graph and how do i make sure that the data will be refreshed very fast on the graph web page.
i have some survey in my site with 5 radiobuttonlist answers after user vote the answer send to sql table. i want to display the votes in very simple way (horizontal 5 lines by percents) can any one direct me to solution or article? please i need the most simple solution (no colors, no pie no complex graphs) just 5 lines (line for each answer) that long or short by percents......
View 2 RepliesThis seems like it should be extremely simple. I have a list of x,y cords in SQL table that I am pulling out into a reader. I am then trying to bind my points to a point (have to use it since I can't find scatter) chart control.
Chart1.Series("Series1").Points.Databind(myReader, "Xpos", "Ypos", "Tooltip=CName")
Where Xpos = the x cord column and Ypos = the y cord column.The chart generates but my problem is that I am getting multiple x values that are the same. For example I have (67, 45) and (67,54).I would think there would be one x value for 67 with the two points on it, at 45 and at 54.Instead I am getting 2 x values listed, both for 67, one with 45 and one with 54.
Just as a test I listed these values in excel (in 2 columns) and did a scatter plot and it generated what I expected (2 items plotted on the same x value, one above the other. Is there a setting I am missing or does the chart control "Point" not have this capability.
i have created a .net chart, but when i load the page to see the results, all i see is a blank gray rectangle. no graph inside. (while if i split view it in VS i see the chart)here is my code,
[Code]....
I'm trying to increase the execution timeout and file upload limit on my asp.net website but when i try to add
<httpRuntime
executionTimeout="110"
maxRequestLength="4096">
</httpRuntime>
i get the following errors:
Could not find schema information for the element 'httpruntime'.
Could not find schema information for the element 'executionTimeout'.
Could not find schema information for the element 'maxRequestLength'.
According to this msdn library link this is how I'm supposed to do it,so what am I missing here?
I have to desing line chart graph in .rdlc report, can you please help me, i have decimal values on Y-Axis and date time values on X-Axis , i have two series of product, according to product value during specific time i need to display line graph for each product.please do needfull to me.
View 2 Replieshow to show data in bar graph format in asp.net.
View 3 Replies