|
Here is the code behind my page...
public partial class _Default : System.Web.UI.Page
{
public string study = "";
public string rowfile = "";
public string colfile = "";
public string path = "";
public string weight = "";
public TabEngineClass tab;
protected void Page_Load(object sender, EventArgs e)
{
if (this.Page.IsPostBack == false)
{
DataSet StudyList = new DataSet();
StudyList.ReadXml("C:\\WorkingFiles\\TestChartGrid\\TestChartGrid\\StudiesList.xml");
DropDownList3.DataSource = StudyList;
DropDownList3.DataValueField = "path";
DropDownList3.DataTextField = "cycle";
DropDownList3.DataBind();
}
}
protected void displayDefinitions(object sender, EventArgs e)
{
study = DropDownList3.SelectedItem.Text;
path = DropDownList3.SelectedItem.Value;
Label1.Visible = true;
Label2.Visible = true;
DropDownList1.Visible = true;
DropDownList2.Visible = true;
DataSet RowList = new DataSet();
RowList.ReadXml(path + ".xml");
DropDownList1.DataSource = RowList;
DropDownList1.DataValueField = "path";
DropDownList1.DataTextField = "file";
DropDownList1.DataBind();
DataSet ColumnList = new DataSet();
ColumnList.ReadXml(path + ".xml");
DropDownList2.DataSource = ColumnList;
DropDownList2.DataValueField = "path";
DropDownList2.DataTextField = "file";
DropDownList2.DataBind();
}
|
|
|
|
|
Forgot one routine...
protected void nextStep(object sender, EventArgs e)
{
if (rowfile != "")
{
if (colfile != "")
{
RadioButtonList1.Visible = true;
}
else
{
colfile = DropDownList2.SelectedItem.Value + DropDownList2.SelectedItem.Text;
}
}
else
{
rowfile = DropDownList1.SelectedItem.Value + DropDownList1.SelectedItem.Text;
}
}
|
|
|
|
|
Ignoring the sheer idiocy of your naming conventions, have you set breakpoints to step through all this code. Relying on paths to xml files like this for all your data seems very fragile to me.
I notice that that dropdownlist 1 and 2 both are set together, is there not an instance where you set the second list's value and want to update only the value in the third list ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
This is a throw-away app to show proof of concept to the upper echelon....
Yes, I have set breakpoints. Dropdownlist1 and 2 both need to have the same source (i.e. the same definition list from the database) because the user has to chose both a row source and a column source for the grid. So, no, there will never be a time that one will key off the other.
The issue I am encountering is that once the code from the displayDefinitions routine runs, none of my subsequent breakpoints gets hit. I can change the selection in DDL1 and DDL2 but it is not triggering the event to call the next Step routine.
|
|
|
|
|
Thanks all.
I found my solution. I had to go a different route to achieve the same effect.
|
|
|
|
|
hello friends i need your guidence as soon as possible i want to know how can we draw bar charts using asp.net while the data to bar chart graph is fed from a database
plz buddies help me....really need a way!!!!
|
|
|
|
|
you have several options .you can use microsoft chart controls or any third party chart controls like fusion chart etc.. for the same
Cheers!!
Brij
|
|
|
|
|
Which Framework of ASP.NET are you using? If it .NET 3.5 SP1 , you can go for, Microsoft Chart Control For It. Other wise you have some other option of well know Chart Tool like Dundas, Fusion, Nevron chart.
|
|
|
|
|
|
You can upgrade it easily to SP1 from internet and download ChartControls and can use it.
For samples Have a look
Cheers!!
Brij
|
|
|
|
|
can you suggest me code or tutorial.. that would be appreciated dear.. thanks in advance
|
|
|
|
|
solo_gaurav wrote: can you suggest me code or tutorial.. that would be appreciated dear.. thanks in advance
Sure,
You need to install .NET 3.5 SP1
ASP.NET Chart Control
You download the sample also from Microsoft Site
Hope this will helps you.
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
When you ask a question, remember to click "Good Answer", If the Answer is helps you.
|
|
|
|
|
i have downloaded the .net framework 3.5 sp1 and asp.net chart control...
installed
then ....
|
|
|
|
|
Now you can use the chart control .
See more details Here
Cheers!!
Brij
|
|
|
|
|
I have provided the sample in my above answer.
Cheers!!
Brij
|
|
|
|
|
not getting it correctly brij..but thanks anyways
|
|
|
|
|
Do you not able to go to the link?
URL is :http://code.msdn.microsoft.com/mschart
Cheers!!
Brij
|
|
|
|
|
thanks buddy... sounds good.. cheers
|
|
|
|
|
Your welcome
Cheers!!
Brij
|
|
|
|
|
i created a master page.now i want to add it to my web page.how wil i do this
modified on Wednesday, July 22, 2009 3:09 PM
|
|
|
|
|
binoypwrote:
Forum: ASP.NET
Subject: how to inherit a master page in a web form
Sender: binoyp
Date: Thursday, July 23, 2009 1:00 AM
Where is you questions? No Description ? You want to Inheriate a Master Page from another web page ?
|
|
|
|
|
What is this?You need to describe your question
Cheers!!
Brij
|
|
|
|
|
Whenever you will create a page it has a checkbox for masterpage if you select it then that page would be created with the master page..
For more detials about the master page here is a Good Article
Cheers!!
Brij
|
|
|
|
|
Hi all,
I have built an application that stores file and does other kinds of work too. I store the attribute of files i.e file name,upload date, byUser,Time in the database and the actual file is store under a folder i have specified. So what's the best way to achieve this?
Q1. What's the best way to store files? Should everything be kept inside the SQL database?
Q2. Should I just store the file attribute inside the database and actual file in the specified system folder?
I have been situation where somehow the file got deleted and doesn't reside in the specified folder but it's attributes are in the database. So I were to view all the files I were to see the file but the acutal file is not. So how can i Synchronize it?
My application were suppose to keep thousands and thousand of file. Can somebody please help me what's the advanates/disadvanges and provide me a link or resource for the architeral desing.
Thanks
|
|
|
|
|
It sounds like you have a good handle on the pros and cons here. You can store the files in an IMAGE-datatype column, or keep the files in the OS and the properties in the database. If you have large files, you might prefer to keep them in the OS for performance reasons.
You could always have an application that runs daily (executed in Task Scheduler maybe) that scans the database for any records of files that no longer exist and delete them... or have a stored procedure in the database that performs the same task and run on a scheduled basis.
|
|
|
|