Click here to Skip to main content
15,892,537 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to populate gridview based on another value clicked. Pin
Bikash Prakash Dash28-Mar-14 19:50
Bikash Prakash Dash28-Mar-14 19:50 
Questiongive me the steps Pin
Member 1070426327-Mar-14 6:48
Member 1070426327-Mar-14 6:48 
AnswerRe: give me the steps Pin
Sulaiman_J3-Apr-14 0:21
Sulaiman_J3-Apr-14 0:21 
GeneralRe: give me the steps Pin
Member 1070426310-Apr-14 11:34
Member 1070426310-Apr-14 11:34 
GeneralRe: give me the steps Pin
Sulaiman_J18-Apr-14 18:58
Sulaiman_J18-Apr-14 18:58 
QuestionIs it possible to use ASP.NET ProfileCommon in a windows service? Pin
devenv.exe26-Mar-14 21:15
professionaldevenv.exe26-Mar-14 21:15 
AnswerRe: Is it possible to use ASP.NET ProfileCommon in a windows service? Pin
Richard Deeming27-Mar-14 2:26
mveRichard Deeming27-Mar-14 2:26 
QuestionThe Legend hides the Plotted data in Chart control ASP.Net Pin
Kandepu Rajesh26-Mar-14 17:55
Kandepu Rajesh26-Mar-14 17:55 
Hai All,

As a part of my project I need to plot multiple series of data and need to show the color of each series in the Legend. But when I have added legend , it is diminishing the plotted area. and the plotted area views wiered. Could anyone give me a solution for this.
<pre lang="c#">
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
string sqlquery = "select " + dd_axisX.SelectedValue.ToString() + ", " + dd_axisY.SelectedValue.ToString() + " from retrospect where locid=" + ds.Tables[0].Rows[i]["locid"].ToString();


System.Data.DataSet ds_ValuesToPlot = new System.Data.DataSet();

da = new MySqlDataAdapter(sqlquery, con);
da.Fill(ds_ValuesToPlot, ds.Tables[0].Rows[i]["locname"].ToString());
double[] Xdata = ds_ValuesToPlot.Tables[0].AsEnumerable().Select(e1 => Convert.ToDouble(nullconvert(e1[dd_axisX.SelectedValue.ToString()]))).ToArray();
double[] Ydata = ds_ValuesToPlot.Tables[0].AsEnumerable().Select(e1 => Convert.ToDouble(nullconvert(e1[dd_axisY.SelectedValue.ToString()]))).ToArray();


chrt_ScatterPlot.Series.Add(ds.Tables[0].Rows[i]["locname"].ToString());

chrt_ScatterPlot.Series[ds.Tables[0].Rows[i]["locname"].ToString()].ChartArea = "ChartArea1";
chrt_ScatterPlot.Series[ds.Tables[0].Rows[i]["locname"].ToString()].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Point;

chrt_ScatterPlot.Series[ds.Tables[0].Rows[i]["locname"].ToString()].Points.DataBindXY(Xdata,Ydata);
chrt_ScatterPlot.DataBind();
System.Web.UI.DataVisualization.Charting.Legend lgd = new System.Web.UI.DataVisualization.Charting.Legend(ds.Tables[0].Rows[i]["locname"].ToString());

lgd.DockedToChartArea = "ChartArea1";

lgd.Docking = System.Web.UI.DataVisualization.Charting.Docking.Right;

lgd.MaximumAutoSize = 30;
lgd.LegendStyle = System.Web.UI.DataVisualization.Charting.LegendStyle.Row;




chrt_ScatterPlot.Legends.Add(lgd);
chrt_ScatterPlot.DataBind();
chrt_ScatterPlot.ChartAreas[0].Axes[0].Title = dd_axisX.SelectedValue.ToString();
chrt_ScatterPlot.ChartAreas[0].Axes[1].Title = dd_axisY.SelectedValue.ToString();




}

</pre>
AnswerRe: The Legend hides the Plotted data in Chart control ASP.Net Pin
Schatak4-Apr-14 3:24
professionalSchatak4-Apr-14 3:24 
QuestionHow to blink text Pin
vasuarya26-Mar-14 0:33
vasuarya26-Mar-14 0:33 
AnswerRe: How to blink text Pin
Kornfeld Eliyahu Peter26-Mar-14 1:15
professionalKornfeld Eliyahu Peter26-Mar-14 1:15 
AnswerRe: How to blink text Pin
Richard Deeming26-Mar-14 2:32
mveRichard Deeming26-Mar-14 2:32 
QuestionC# Web Forms: Add a context menu to a grid and outside grid also. Pin
AshwiniSH26-Mar-14 0:12
professionalAshwiniSH26-Mar-14 0:12 
AnswerRe: C# Web Forms: Add a context menu to a grid and outside grid also. Pin
Bikash Prakash Dash28-Mar-14 19:58
Bikash Prakash Dash28-Mar-14 19:58 
QuestionAjax Update Panel not working properly when using mutiple triggers contols on it Pin
Yat_desh9025-Mar-14 21:52
Yat_desh9025-Mar-14 21:52 
QuestionRe: Ajax Update Panel not working properly when using mutiple triggers contols on it Pin
Blikkies25-Mar-14 23:33
professionalBlikkies25-Mar-14 23:33 
QuestionWhatsapp group for. NET Developers Pin
rehmanabdurr25-Mar-14 19:32
rehmanabdurr25-Mar-14 19:32 
AnswerRe: Whatsapp group for. NET Developers Pin
Kornfeld Eliyahu Peter25-Mar-14 22:09
professionalKornfeld Eliyahu Peter25-Mar-14 22:09 
QuestionWindows update (KB2894843) makes my ASP.NET web application post back to behave differently Pin
Member 1069366523-Mar-14 18:21
Member 1069366523-Mar-14 18:21 
AnswerRe: Windows update (KB2894843) makes my ASP.NET web application post back to behave differently Pin
Richard Deeming24-Mar-14 3:13
mveRichard Deeming24-Mar-14 3:13 
GeneralRe: Windows update (KB2894843) makes my ASP.NET web application post back to behave differently Pin
Member 1069366524-Mar-14 4:56
Member 1069366524-Mar-14 4:56 
QuestionIHttpModule and Build Action = Compile? Or Content? Pin
Swab.Jat23-Mar-14 1:40
Swab.Jat23-Mar-14 1:40 
Questiontextile cad fabric output simulation Pin
Member 1057081122-Mar-14 1:55
Member 1057081122-Mar-14 1:55 
QuestionInvalid initializer member declarator -- error Pin
miss78621-Mar-14 6:28
miss78621-Mar-14 6:28 
AnswerRe: Invalid initializer member declarator -- error Pin
Richard Deeming21-Mar-14 6:41
mveRichard Deeming21-Mar-14 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.