|
thank you so much for your help ,but i want like the one in the link exactly.
regards.
al hajjaj
|
|
|
|
|
Yajjoj wrote: but i want like the one in the link exactly.
If you need exactly like that one. you need to developed your own or try to customize the code that I have provided to you. OR serach in google for better solution.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
i try to customize the ajax slid, but i couldn't.
i think this one is not in ajax
al hajjaj
|
|
|
|
|
|
THANK YOU SO MUCH MY FREIND BUT I AM NOT LOOKING FOR AccordianControl in ajax extender I AM LOOKING FOR SLIDE SHOW (NUMBER OF PICS AND THEY AUTOMATIC CHANGE IN SPESIFY TIME)
al hajjaj
|
|
|
|
|
There is some Default.css file I linked to my web project.
The styles are applied normally and look as they should, but when I add new style to css file or change existing one (.button-css), they only take place in design view, but not when the page is being run.
However the styles defined in head section (.button-local) are applied as they should during design and run time.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GenderAge._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Default page</title>
<link href="App_Themes/Default/Default.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.button-local
{
height:24px;
margin:0px;
padding:0px 0px 0px 0px;
margin:0px 0px 0px 0px;
font-size:15px;
font-family:Verdana, Arial, Helvetica, sans-serif;
color:#FF00FF;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>normal button<asp:Button ID="Button1" runat="server" CssClass="button-local"
Text="Button1" />
</div>
<div>wierd button<asp:Button ID="Button2" runat="server" CssClass="button-css"
Text="Button2" />
</div>
</form>
</body>
</html>
Чесноков
|
|
|
|
|
Did you check the page by adding .button-local to your Default.css?
|
|
|
|
|
Yes.
The problem turned out to be that the changes are applied and the result is seen in VS design view and if the project gets published and you open the page in IE.
But the styles become lost when you run the page from VS.
Чесноков
|
|
|
|
|
I think it's something related to theme. If you have both theme and CSS then theme wins.
Anyway, try two things -
1. Remove the CSS file entry from you ASPX form. Then check if it works or not.
2. Next remove your css file from Theme folder to any other 'css' folder. Then check if it's being applied.
Obviously, it would have been better if you work with Theme and skin[^].
Checkout if this helps you at all.
|
|
|
|
|
Removing the CSS works.
I tried themes instead also.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WierdCss._Default" StylesheetTheme="Default" EnableTheming="True" %>
e.g. in css file I created body class. it works in design view and VS2008 debugging. but after I add next class entry, it works in design view, but no longer in VS2008 ASP.NET dev server???
I remove the css file, and theme. I attach it again, all the same.
It seems it catches the snapshot of the css file once it was attached. And next any changes to it or additions of classes are no longer displayed in ASP.NET dev server.
Чесноков
|
|
|
|
|
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.
|
|
|
|