|
I need to provide CSS rules for html elements e.g. body and for ASP.NET controls. Can I do it using themes only? It needs CSS to be created and attached also
Чесноков
|
|
|
|
|
may i see the cod of Default.css
may be i can find solution for this one.
al hajjaj
|
|
|
|
|
http://download.microsoft.com/download/c/7/a/c7a07f0e-4778-4d73-a163-f873a06b18ed/rounded06.msi[^]
I add the css and its Images into the App_Theme\Blue theme.
I enable themes and set for content page of the master the Blue theme.
I attach the css in the <head> of the master.
All works great, until at some step during the page developing and asp controls additions, changes in css and styles asignments to asp controls stop to be displayed in ASP.NET development server. Only the publiched version works.
Чесноков
|
|
|
|
|
They are Some Cases When The Browser store the cookies and the if u add the new styles also, the browser will show the old files .First Delete the cookies and the storage info in the browser I think U know How to delete the cookies privacy data and all .And now check . If this Is not Your Answer Sorry..!If this is Your Answer Let Me know
|
|
|
|
|
|
|
Hi All
public void sample(string s)
{
string k = s+"test";
return k;
}
This is my function in App_code/Test.cs
I want to give one vale like sample(ram) and test whether it returns correct value.
I know about the breakpoint ... I want to know whether in immediate window or in watch window ,is it possible to check the value ....so that it will be helpfull for me while coding
Thanks
Ramkumar
|
|
|
|
|
Use the following code in the Immediate Window -
?sample("test")
You might need to append the class name infront of the method.
You can get the details here[^].
|
|
|
|
|
Thanks ...but i am getting this error..remember i am coding in class file
The expression cannot be evaluated while in design mode.
?sample("fsdf")
The expression cannot be evaluated while in run mode.
Please help
Ramkumar
|
|
|
|
|
getramonweb wrote: The expression cannot be evaluated while in design mode.
?sample("fsdf")
The expression cannot be evaluated while in run mode.
I created the following class with your method (your sample method would give compilation error) -
namespace MyNameSpace
{
public class MyClass
{
public static string sample(string s)
{
string k = s + "test";
return k;
}
}
}
Then I used the following commands in the immediate window to get the result (check that I used static method) -
?MyNameSpace.MyClass.sample("Arindam");
I think you need to read this[^] carefully. Mainly go through the multiple project section as you have to select the project as startup project. Also this link tells about some limitations.
|
|
|
|
|
thanks,, sorry for disturbing again and again
I just copy past the code ,but i got same error...can u plz guid me where i am going wrong
?MyNameSpace.MyClass.sample("Arindam");
The expression cannot be evaluated while in design mode.
Ramkumar
|
|
|
|
|
You are not disturbing anyone
It's my pleasure to solve (if any ) issues.
Did you select the project as startup project where you place this MyClass?
I have quoted the section from the MSDN[^]
Design Time Expression Evaluation in Multi-Project Solutions
When establishing the context for design time expression evaluation, Visual Studio references the currently selected project in Solution Explorer. If no project is selected in Solution Explorer, Visual Studio attempts to evaluate the function against the startup project. If the function cannot be evaluated in the current context, you will receive an error message. If you are attempting to evaluate a function in a project that is not the startup project for the solution and you receive an error, try selecting the project in Solution Explorer and attempt the evaluation again.
|
|
|
|
|
I am trying to show pie chart (asp.net VS2005) with dataset from oracle, below is the code given.
'ds' is the dataset here.
values from this dataset are in one row with multiple collumns.
so changing collumns to row with the help of datatable.
It gives error -->
"The chart ‘rds’ is in the report body but the report has no data set. Data regions are not allowed in reports without datasets"
error with line is -->
ReportViewer1.LocalReport.SetParameters(parameters);
//Code starts
ds = objdb.ByCursor("REPORTS_KURUKSHETRA.IDEA_STATISTICS", "" + "|" + "");
if (ds.Tables[0].Rows.Count > 0)
{
////FillPieChart();
DataSet nds = new DataSet();
DataTable ndt = new DataTable();
DataColumn ndc = new DataColumn("vals");
ndc.DataType = typeof(string);
ndt.Columns.Add(ndc);
for(int z =1; z < ds.Tables[0].Columns.Count; z++)
{
ndt.Rows.Add(" ");
ndt.Rows[z-1]["vals"] = ds.Tables[0].Rows[0][z].ToString();
}
ndt.AcceptChanges();
nds.Tables.Add(ndt);
ReportViewer1.LocalReport.ReportPath = "pie.rdlc";
Microsoft.Reporting.WebForms.ReportDataSource rds = new Microsoft.Reporting.WebForms.ReportDataSource();
rds.Name = "rds";
rds.Value = ndt;
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(rds);
ReportParameter prmTst = new ReportParameter("vals");
ReportParameter[] parameters = { prmTst };
ReportViewer1.LocalReport.SetParameters(parameters);
ReportViewer1.DataBind();
//ReportViewer1.LocalReport.Refresh();
}
//Code End
Please help, thanks in advance .
|
|
|
|
|
The type 'System.Web.UI.ScriptManager' is ambiguous: it could come from assembly 'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\
1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll' or from
assembly 'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll'. Please specify the assembly explicitly in the type name.
i am getting the following error when m trying to use regular expression validator in my applicaton.i m workin on asp.net 2.0
using csharp....thnks.....plz guide......
|
|
|
|
|
If you are using Master page please add the script manager control in the master page and then try.
|
|
|
|
|
i m jst using using simple form.as soon as i use to add regular expression control this error comes...
|
|
|
|
|
I think there may be problem with your web config file . please send me the conf file.
|
|
|
|
|
i have mailed u config file
|
|
|
|
|
I dont know whether it is correct..
Please change the version as 2.0.0.0 and then try
"System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
|
|
|
i hav tried its not workin....
|
|
|
|
|
i have list in which i have object of one class say emp
i want to find out all duplicate emp from list
meanse if two object with same emp.id
how can i do that
|
|
|
|
|
nikhil1234 wrote: how can i do that
Use List<> to store your employee and implement the following -
Distinct(IEqualityComparer<(Of <(T>)>))
You can use your own implementation of IEqualityComparer[^].
|
|
|
|
|
Dear Sir,
I am going to develop a program where I need live gold price.
i want international gold price per gm or any other unit.
how can i do this.
is there any web service available for live gold price.
please help me
syed abid ali
abidali_gyro@yahoo.co.in
thanks in advance
|
|
|
|
|
Did you check out the followings?
1.WebServiceX[^]
2.Xignite[^]
I guess there might be plenty if you google it. I just searched in google and got the above.
|
|
|
|
|
Hi syedabidali,
Refer the following link
http://www.goldalert.com/free-interactive-gold-charts/
|
|
|
|