|
|
I am working with Asp.net 2.0, I was trying to use FieldmapCollection which is object present in Asp.net 1.1 framework and does not present on Asp.net 2.0
please help me out if there is any alternate for FieldMapCollection in Asp.net framework 2.0. For your information I will paste the part of code where I use FieldMapCollection,
Dim redValues As Double() = {10, 12, 8}
Dim redXValues As Double() = {1, 2, 4}
Dim blueValues As Double() = {6, 14, 9}
Dim blueXValues As Double() = {1, 3, 5}
Dim listOfArrays As ArrayList = New ArrayList()
listOfArrays.Add(redValues)
listOfArrays.Add(redXValues)
listOfArrays.Add(blueValues)
listOfArrays.Add(blueXValues)
Dim lstProvider2 As New SoftwareFX.ChartFX.Data.ListProvider(listOfArrays)
Dim fields As FieldMapCollection = Chart1.DataSourceSettings.feilds
fields.Clear()
fields.Add(New FieldMap("Field1", FieldUsage.Value))
fields.Add(New FieldMap("Field2", FieldUsage.XValue))
fields.Add(New FieldMap("Field3", FieldUsage.Value))
fields.Add(New FieldMap("Field4", FieldUsage.XValue))
Chart1.Gallery = Gallery.Lines
Chart1.DataSource = lstProvider2
Thanks in advance
-- modified at 9:58 Friday 22nd June, 2007
|
|
|
|
|
Delete your previous post. Asking the question once is enough.
only two letters away from being an asset
|
|
|
|
|
hi,
in my project i using this code for get rss feed data
DataSet ds = new DataSet();
Line 37: ds.ReadXml("http://feeds.autoblog.com/weblogsinc/autoblog");
Line 38: GridView1.DataSource = ds;
Line 39: GridView1.DataBind();
i am getting the below error:
Server Error in '/Slideshow' Application.
--------------------------------------------------------------------------------
A column named 'link' already belongs to this DataTable: cannot set a nested table name to the same name.
Please help me
Ramesh
|
|
|
|
|
Might be XMl file is not valid contains sub double value that you are assinging to Gridview again Check by debugging the application
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
try this code
XmlDataDocument xdoc = new XmlDataDocument();<br />
XmlTextReader Reader = new XmlTextReader("http://feeds.autoblog.com/weblogsinc/autoblog");<br />
xdoc.DataSet.ReadXml(Reader, XmlReadMode.InferSchema);
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
hi Pathan,
Thanks for taking interest on my query.
but i am getting the same error
i think problem with DataSet is not reading the data.
Server Error in '/Slideshow' Application.
--------------------------------------------------------------------------------
A column named 'link' already belongs to this DataTable: cannot set a nested table name to the same name.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.DuplicateNameException: A column named 'link' already belongs to this DataTable: cannot set a nested table name to the same name.
Source Error:
Line 42: XmlDataDocument xdoc = new XmlDataDocument();
Line 43: XmlTextReader Reader = new XmlTextReader("http://feeds.autoblog.com/weblogsinc/autoblog");
Line 44: xdoc.DataSet.ReadXml(Reader, XmlReadMode.InferSchema);
Line 45:
Line 46:
Ramesh
|
|
|
|
|
Hi,
I have created a website which will automatically refresh every 15 minutes. The website will have like 5 users logged in to the site all the day. It will work fine for 8-10 hours and sometimes the whole day. But when I return in the morning I will have the error message dispalyed on the screen that says Validation of viewstate MAC failed. I turned off the validation in the web.config but still it is giving the same error. Please let me know the solution.
THanks,
sridhar.
|
|
|
|
|
|
I have tried the suggestions that they have mentioned in the forums. I disabled the event validation in the web.config but still it is giving the error.
|
|
|
|
|
Hello Guys,
Can any one of you help me in passing stored procedure values to FormView --> ItemTemplate -->
I am unable to understand how to pass the values to PhotoID. Plz Help its an urgent task.
Regards,
dhulipudi
|
|
|
|
|
Don't use Urgent in the title.
only two letters away from being an asset
|
|
|
|
|
Hi Mark,
Its my anxiety made me write that. I got Stucked up there. Plz Help...
Regards,
dhulipudi
|
|
|
|
|
<img class="grayshade" src="getIt.ashx?PhotoID=<%#DataBinder.Eval(Container.DataItem,"PhotoIDcolumname") %>&Size=S" />
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hello,
To be more specific I am giving the full details here.
Imran Thank you for your suggestion I made good progress. But I have a small doubt here... How to call a method GetPhoto() which is present in getIT.ashx through the below code.
I am able to pass PhotoID here using DataBinder.
<%#DataBinder.Eval(Container.DataItem,"SP_Ph_ID") %>
Please let know your suggestions in calling the GetPhoto() method.
Thanks!!
Dhulipudi
|
|
|
|
|
Hi,
Please be specific in your doubt. I have understood partially.
Bind the PhotoID value (Databinding). Use Eval() or Bind()
Regards,
Jay
|
|
|
|
|
Hi
In my application I got a desperate situation to use a query string value in to HTML(Source Page) not in .CS page.
Is it possible to do?
If possible,How? Suggest me an example.
Thank u
Chandu
|
|
|
|
|
I think you want to say in the javasipt CALL THIS FUNCTION where yo want to query string
function getParams() {
var index = document.URL.indexOf('?');
var params = new Array();
if ( index != -1 ) {
var nameValuePairs
=document.URL.substring(index+1,document.URL.lengt h).split('&');
for ( var i=0; i<namevaluepairs.length; i++="" )="" {
nameval="nameValuePairs[i].split('=');
params[nameVal[0]]" =="" nameval[1];
}
}="" return="" params;
}
=""
<div="" class="ForumSig">Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
|
Hi,
I am having problems with exporting datagrid data to excel. I am getting the popup with error "Internet explorer cannot download default.aspx . IE was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again later." When I searched for the error in google, some have said that it happens if the site is SSL configured and have no-cache meta tag. The solution they offered is to remove no-cache tag. I did remove the meta tag but still it is giving the same error. The site is running on ASP.NET 2.0. Please let me know how I could solve this.
Thanks,
sridhar.
|
|
|
|
|
Once try this
datatable dt=new datatable();
dt=objndf.getdata();
Response.AddHeader("content-disposition", "attachment;filename=" + ListName + ".xls");
Response.ContentType = "application/vnd.xls";
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
GridView gv = new GridView();
gv.DataSource = dt;
gv.DataBind();
gv.RenderControl(htw);
Response.Write(sw.ToString());
Response.End();
gv.Dispose();
|
|
|
|
|
hi,
I want to create a copy of same page when i click a button it has to add to the solution explorer page
|
|
|
|
|
Have you tried the solution explorer context menu item named "Copy" or it that too obvious?
only two letters away from being an asset
|
|
|
|