Themes Visible At Design Time?
Sep 22, 2010This is my first experience with themes.I've created a skin file for a textbox and the defined theme is only visible at runtime.Is this the way theme works or I am missing something?
View 1 RepliesThis is my first experience with themes.I've created a skin file for a textbox and the defined theme is only visible at runtime.Is this the way theme works or I am missing something?
View 1 RepliesI installed Rad Controls. Using that controls, I designed my application pages. At design time, the design is not visible. It shows the following error:
RadTabStrip1Failed to create designer 'Telerik.Web.UI.RadTabStrip, Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4'
I am learning asp.net using Visual web developer 2008 express.
I have an image control with the html code below
<div class="Header">
<asp:Image ID="image1" runat="server"
ImageUrl="D:/Master/test.jpg" Width="500" Height="300"
AlternateText="UNRA Fort Portal Intranet"/>
</div>
In design view, the image shows but when i run the app, the image is not shown. Only the alternate text is displayed.
 The css code code as below.
.Header
{
top:10px;
left:20px;
position:absolute;
width:800px;
background-image:URL(D:/Master/test.jpg);
background-repeat:repeat-x;
}
I have a master page which contains a treeview and a linkbutton. i have used 3 different stylesheets for the same page and those are listed in dropdownlist on the same master page. on dropdownlist change() event stylesheet of the master page change, i have 1 default style sheet which will come as master page loads.
now the problem is when i changed stylesheet from dropdown list, stylesheet changes the master page , but after that when if i clicked on treeview or linkbutton the stylesheet is restored to default one.
i have written following code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
When I try to look at my masterpage/form in design view it's only partially visible. It's shifted so far to the left that i can only see the right half of it. I don't understand why. I'm using negative margins to center the form at runtime, which is working great. It appears to be shifted to left about half of it's width, which would equal the negative margin.
CSS for negative margin:
[Code]....
Is this a deficiency with the rendering in Design view? Is it a discrepancy between the way a browser would interpret the styles and the was the Design view interprets them?
i want to activate or make a link working only on a particular day of a month.Can anyone help me with this.
View 4 Repliesi need to create div on run time in such a manner as it create table at run time,(table is also in another div) .
all my rows in table like this (for example)
Code:
[code]....
let me tell u one more thing above div is sub div of many other divs .how i will access how to add runtime to design time div?
Im making a small user control, i was wondering if it was possible to make some sort of comment, that is only visible design time. For example i would like to write in the top of my control that it requires a querystring parameter named userid. This way other developers can quickly see the requirements?
View 2 RepliesI'm developing a set of custom controls, one of them are the "parent", any others must be added inside an ITemplate property of this parent. But in the page, at design time, I can see, by intellisense, the other controls at page level, and I can theorically add them everywhere. I want to emulate the behaviour of the asp:Table and the asp:TableRow, you can't directly add an asp.
View 2 RepliesI am tring to make Panel1 visible first, then in five seconds, Panel2 is visible, then in another five seconds, Panel3 is visible.
Here is my basic code for this.
[code]...
I've just started working on some test asp.net webforms projects and am having a problem with VS2010. It is not displaying any controls at design-time. For every control I'm getting message -
Error Creating Control - xxxxx
Object reference not set to an instance of an object
It is doing it on new web.application and Tailspin Spyworks demo app. If I switch a new web.app from asp.net4 to asp.net3.5, all the controls display properly.
I've tried removing and re-installing VS2010 and had no changes.
It acts like something didn't get installed.
Am I right in assuming that only after controls on Master page are merged into the control tree for the Page, can controls ( both those in Master page and in a content Page ) be initialized with their declarative values ( values set during design time)? b) If my above assumption is correct, then these controls cannot be initialized with their design-time values during Page.PreInit, since during Page.PreInit event stage we're still able to dynamically set a Master page?! So if that is the case, when are controls initialized with their declarative values? During Init event orâ€
View 1 RepliesI render some markup dynamically in a Web User Control, can I get that out in design mode, and not only runtime?
public override void RenderControl(HtmlTextWriter writer)
{
if (this.DesignMode)
writer.Write("<p>In design mode</p>");
else
base.RenderControl(writer);
}
... nothing happens when I check the design view of the control. Not if I remove the if (this.DesignMode)-condition either.
I'm using VS 2008 with the AjaxControlToolkit and at design time I am dragging some regex validators on the page.
Prior to yesterday, when I did this, the design time control allowed me to click a little arrow in the upper right hand of the control and add an extender.
Well, now that ability to add an extender at design time is gone, and I don't know what happened.
I have problem with my web form login
Â
<div>
<h1>Konsole - Login</h1>
UserID : <asp:TextBox ID="tb_uid" runat="server" autoComplete="off"></asp:TextBox>
Password :<asp:TextBox ID="tb_pass" runat="server" autoComplete="off"></asp:TextBox>
<asp:Button ID="btn_submit" runat="server" Text="SignIN" />
<br />
[code]...
design code is above and following error occured "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive)."
I am designing an ASP.NET v3.5 custom control based on CompositeControl.
However, I do NOT want to create my child controls via code, but rather as
embedded HTML tag elements within the CompositeControl in the ASPX page, such as:
[code]....
At run time, MyControl.Controls contains the two labels as expected.
At design time, MyControl.Controls is empty.
I need this information at design time for various reasons.
What am I doing wrong?
I have the user control and web page. When I place user control in the web page and in design time, it cannot view and error is "System.Web.UI.UserControl does not have a public property named 'ContentTemplate". It seems not related of error message.
View 5 RepliesIn my company we use a control that renders the <link rel="stylesheet"> tags dynamically at runtime (equivalent of scriptmanager who renders <script> tags dynamically). this control is very good, cause it select the appropriate css stylesheets depending on some criterias. The problem is that on design time for Visual Studio there is no designated CSS stylecheet since there is no <link rel="stylesheet"> tags on the page.
If I put <link rel="stylesheet"> tags on the aspx page (to indicate a design time stylesheet) this tag will be rendered to client and it causes conflicts with tags rendered by the control !
I am trying to find the best way to concatenate two strings and set the result to the text property of a label during design time.Here is what is not working:
I have Text="<%$Resources:labels, btnLinkNoText%>" and Text='<%# Bind("ProductID") %>'
I want Text="<%$Resources:labels, btnLinkNoText%>" + Text='<%# Bind("ProductID") %>'
I'm developing a custom server control and want it to end with /> rather than with </cc1:CustCtrl>. I've tried changing the ToolboxData but it didn't really do it (I can see it initially appears like that but instantly changes to the standard <cc1:CustCtrl blah blah></cc1:CustCtrl>. When i drag a button from the toolbox to the forms markup it uses the <asp:Button blah blah /> markup, how can I emulate this?
View 3 RepliesNone of my user controls display on a web form at design time. At runtime they work fine and at design time to design the user controls themselve is fine.
Is there a setting that is telling the controls not to render at design time?
I am creating custom control with tabs and also giving design time support for that control. In design time I cant accessing the child controls and also tabs. I want to change the tabs at the desing time.
View 1 Repliesi create a custom control which can hold some templates, such as Header, Body Footer, etc.
[Code]....
i tried to use smarttags to allow the user to edit each of the templates, which worked pretty well. what i could not get working was to add a template if it has not been in the control. eg. add a header-template to the control above. i tried using the RootDesigner.AddControlToDocument() function of my controldesigner. but this function gives me an error, telling me the control i'm going to add the template (i used a new HtmlGenericControl("HeaderTemplate") as new Control) to is not valid. (i can't give the exact error message, cause i use a german version of visual studio 2008) i've been searching the web for nearly half a day now, but i did'nt find a working solution for my problem.
I have created an advanced label control using web user control to cater some advanced options needed for my application. The control is working fine but there is one hitch bothering me. In normal label control when we change text or color, we can see effects during design time also but this is not functional with web user control. I mean when i change TEXT property of my label inside user control, the effect is visible on runtime not design time.
Is there any way to see effect of property changes during design time??
What is the use of abstract class design in real time projects
and how to use abstract clases and interfaces
and inheritense concepts
like big shoping portals or content managment,blogs etc