Web Forms :: Can Implement The Personalizable Attribute On A Text Box In A User Control Without Using Web Parts

Jan 26, 2010

I have a web user control that contains 2 text boxes. i would like to be able to have their values persisted using the personalizable attribute, but dont want to use my user control as a web part. Can i implement the personalizable attribute on a text box in a user control without using web parts?

View 3 Replies


Similar Messages:

WebBrowsable Vs Personalizable In Web Parts

Dec 6, 2010

What is the difference between the attributes WebBrowsable and Personalizable in a Sharepoint 2010 web part?

e.g.[Personalizable(), WebBrowsable]
public string IconURL { get; set; }
vs
[WebBrowsable]
public string IconURL { get; set; }

MSDN gives the impression that personalizable is per user, whereas webbrowseable is for all users - however it doesn't explicitly mention this and I would like to get this sorted in my head.E.g. can I set a user specific property on personalizable and web-part wide on webbrowsable?

View 3 Replies

Forms Data Controls :: Set Attribute In Custom User Control And Keep Getting Zero?

Jul 30, 2010

[Code]....

I am having a problem setting the SystemObjectRecordID attribute of my custom control inside a repeater. Currently, the value winds up as zero in the database. Things I have checked:

1) The datatype of the DB column (bigint) and the datatype of AlertId (long) and the datatype of the getter/setter SystemObjectRecordID variable (long) match.

2) If I set '<%# ((Alert)Container.DataItem).AlertId %>' to the Text attribute of a label I get the expected results. So, it has something to do with my custom control and specifically how data isbound to the SystemObjectRecordID attribute.

Now, going to the server, below is what I have for databinding (The page is Default.aspx.cs and the namespace is Company.ProjectWeb.Profiles):

[Code]....

Currently I am trying to pass the value received from a literal (because I know that the values are received as expected here) to the SystemObjectRecordId object. Still isn't working. I am still getting a value of zero when I set a breakpoint and look at the value of SystemObjectRecordId in the codebehind of my control:

[Code]....

View 10 Replies

Web Forms :: Web Parts And Anonymous User And Authenticated User Is Displayed Differently?

Mar 21, 2011

the Web Part for anonymous user and authenticated user is displayed differently. I faced this problem twise. First time when used Silverlight control in the Web Part and second time when used devexpress control in the Web Part. In both cases problem was with displaying for anonymous user. Silverlight control didn't display. Devexpress control lost it's styles. Both controls had properties that pointed to files. Silverlight control property pointed to the XAP file, and Devexpress control property pointed to the CSS file. It seems to me, that for anonymous user the Web Part cannot find this path or doesn't allow to link to other files.

View 1 Replies

Web Forms :: Attribute 'Master' Not Valid Attribute Of Element 'Control'

Feb 1, 2011

I created a simple Master Page in Visual Studio 2008:

<%@
Master
Language="VB"
CodeFile="MasterPage.master.vb"
Inherits="MasterPage" %>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"

and got green underlined 'Master' with two warning messages: 1.Validation (ASP.NET): This attribute name must be followed byan equal (=) sign and a value. If the value is in quotation marks, the quotation marks must match. 2. Validation (ASP.NET): Attribute 'Master' is not a valid attribute of element 'Control'.How I can get rid of the messages?

View 3 Replies

User Control Attribute Value Not Available In Code Behind?

Jun 2, 2010

I've created my user control. In the page I've written my markup as follows:

<uc1:myUserControl id="myUserControl1" Enabled="true" runat="server" />

I cannot get the value Enabled="true" in the code behind during page load.

View 3 Replies

Set User Control Style Attribute In Code Behind?

Jan 28, 2011

how can i set style attribute in code behind c#?

View 2 Replies

How To Change Html Elements Attribute At Run Time In Web User Control

Aug 17, 2010

I have a web user control menu of page. Now I want HOME (which is an hyperlink text) in menu to be Bold at the time default.aspx Loaded (Load event)! How can I do that If any one can provide code! I am using VB .Net at back.

View 2 Replies

How To Make An Attribute On A Custom User / Server Control Be Mandatory

Feb 24, 2011

If certain attributes on built-in ASP.NET controls aren't specified, then an exception will be thrown.

How do I do this on my custom user/server control?

View 2 Replies

Web Forms :: Web Parts / Want To Store User Setting In XML File ?

Oct 27, 2010

iam creating a customized dashboard using web parts and i am new in web parts..i wanna a way to store user setting in XML file .. how can i achieve that ?

View 4 Replies

Web Forms :: Using Web Parts For User Defined Questionnaire Generator?

Mar 27, 2010

need to let users to generate online questionnaires that could be answered by other users. I was wondering if this could be done using the WebParts.I have a custom application with already set up database. I do not use any form of Membership Provider (I have a custom made form of user authentication, I did not want to be bounded by the rigid frame of the ASP Membership). As far as I know Web Parts uses db (called SharePoint ?) to store the state etc. so this might be the first problem because I do not want to modify my DB just for the sake of WebParts (I assume it would require a whole lot of changes).So I was wondering if it would be possible to use Web Parts only as a form of "ASP code generator" e.g. I could create the questionnarie using WebParts and then export the result somehow (?) to print an ascx/aspx file or code.If this can not be done, can anybody tell me if there are any components that would be useful here? Some sort of toolkit where one could create asp code online? (with textboxes, checkboxes etc.).

View 2 Replies

Web Forms :: Lading Web Parts Dynamically And User Profile Change?

Sep 2, 2010

I am using web parts using asp.net c# 2.0 with Ajax 1.0.

I am dynamically creating and loading web parts in my code behind. Some of these web parts are pure html others are user controls. Its all working well but with one annoying issue.

When I add a new web part / remove one ( from my web part collection) this change is not reflected in the portal. Say when you add a new web part you would expect it to see in the catalog. But its not there. When I remove a web part from my collection it still appears in the portal.

However, If I delete the user's setting in the aspnet_PersonalizationPerUser table then the change is visible!

View 1 Replies

C# - How To Implement Caching For The Whole Page Except User Control

Sep 25, 2010

I have aspx page with a user control. I want to implement caching for the entire page except the user control.

View 2 Replies

Custom Server Controls :: Category Attribute Of User Control Property Does Not Work Correctly In Categories Tab

Aug 19, 2010

I have a User Control (ascx) and a property which a want to display in my categories tab in Visual Studio in the category named "Styles".

[Code]....

And here is the problem: Actually I do not need a get, because I only have to set the property (write only property). But when I omit the get, the property is displayed in the "Misc" category in the categories tab in Visual Studio. Only when I code the get as well, then the property is displayed correctly in the "Styles" category in the categories tab in Visual Studio.

Does anybody know why? How can I display the category correctly only with set?

View 2 Replies

User Controls :: Implement Custom User Login With Roles Without Using Login Control

May 7, 2015

What if, I'm not using the LOGIN CONTROL but rather creating a Custom Control for Login. Is it possible to have user roles and a site map that redirects to its own destination when the user login?

View 1 Replies

VS 2008 - How To Build A User Control With A Datalist And Implement Paging In It

Aug 11, 2010

I want to build a User Control with a Datalist and implement paging in it.

View 9 Replies

Web Forms :: Set Text Attribute Of Treenode?

Sep 10, 2010

I would like to set text attribute of a treenode. But I want to do this in HTML. I tried it:

<asp:TreeNode
Text="<% =session['var'] %>"
SelectAction="Expand"/>

but it does not work.

View 4 Replies

SQL Server :: How To Get The Personalizable Datablob

Aug 11, 2010

How do I get the current page's personalizable dataBlob for saving?

I cant seem to find the SqlPersonalizationProvider class code online.

View 1 Replies

Web Forms :: Validating Text Box Inside User Control?

Jan 18, 2011

I have created the user control and it has got one table with few rows in it. One row has got a text box with custom validaor and other row will have check boxes dynamically added through server side.

On the main page, i am loading that user control about 10-15 times depending upon the values from the database.

Is there any way of setting the properties of user control validator on the main page? Text box will only be validated if any check box is checked in the user control.

I am also not able to find the usercontrols through the main page.

View 9 Replies

Web Forms :: Crop And Split Image Into Parts And Then Save Parts Of Image In C#

Mar 22, 2013

How to Divide image in two parts like I have an image which width x Height = 16 x 32.

And I want to split image in two images 16x 16 and 16x 16.

How can i do it?

View 1 Replies

Web Forms :: Databind To Label Text Attribute Using TableAdaptor?

May 25, 2010

I've created a dataset using a tableAdaptor in the code-behind as follows

[Code]....

which works great for the FormView in the aspx page.I would now like to use this datasource (or create something similar) to bind one of the column values to a label's Text attribute.Totally stuck here -- i understand i cant explicity bind to a Label as I could a dataview, etc, but i should be able to set the label1.text value using a datasource from the code-behind.

View 1 Replies

Hiding User Interface Parts In WSS 3.0 Webpart?

Feb 28, 2010

I have a webpart with asp.net control within.I would like to hide some parts of that control, some asp:net panels etc. regarding one of the TextBox's value. The issue is that I don't know to change the visibility of asp:panel wrapper without any postback, and how to refresh page to see the changes on the UI.I was trying to implement TextChanged event but it dosen't work.

View 2 Replies

Can Let A User Fill In Profile Parts When Registering

Dec 7, 2010

I am trying to let a user fill in profile options when they are registering. I am using the providers that come with asp.net by default.

Example: User fills in this registration form:

Username

Email

Age <- This is what I have tried to add in.

Password

Confirm Password

I got the age to show up by doing the following.

1) Adding the following code to Web.config

<properties>
<add name="Word" type="String" />
<add name="Age" type="Int32" defaultValue="0" />
</properties>

2) Adding the following code to my register.aspx view

<div class="editor-label">
<%: Html.LabelFor(m => Profile.Age) %>
</div>
<div class="editor-field">
<%: Html.TextBoxFor(m => Profile.Age)%>
<%: Html.ValidationMessageFor(m => Profile.Age)%>
</div>

I went to run it, I filled out the form and clicked register. I got this:

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. and Line 127: _provider.CreateUser(userName, password, email, null, null, true, null, out status);

View 1 Replies

Web Forms :: Getting Linkbutton Text Value From Link Button In User Control?

Nov 9, 2010

i have a link button thats text value is populated from a dataset value retrieved from a database. When the user clicks on this link button I want to somehow capture the text value. The trick is the linkbutton is within a usercontrol, and I want to do the processing from the user controls parent. I am able to get the ID of the clicked linkbutton with the use of Request.Form["__EVENTTARGET"];, however i need the text value, in this case its a job number.

I may be able to do this via javascript with the OnClientClick;

OnClientClick='<%# DataBinder.Eval(Container.DataItem,"JobNo","test({0})")%>'

When I do this I get a javascript error saying "M10725"(which is my job number being clicked) is ndefined. I dont know what this means. Do I somehow have to give the linkbutton being click a value?

View 3 Replies

Web Forms :: User Control Does Not Let Me Assign Values Into Text Boxes?

Dec 14, 2010

(using c# and .NET 2008):

I have a main web page and added a user control inside it. The user control has some textboxes. The problem I have is when I populate the textboxes with the data that is in the DB, they do not show the values. The strange thing is If I change the property of textboxes ReadOnly to TRUE, they show the values. The problem is that I need them to be ReadOnly=FALSE.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved