Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search


Web Forms :: Adding New Fields Into The "Behavior" EditorPart Inside An EditorZone?

EditorZone control from System.Web.UI.WebControls.WebParts.

I managed to add a new field to this control, creating a property inside my webpart (related to the editorzone) like this:

  <WebDescription("reserved for description"), _
    WebDisplayName("Final time reservation"), _
    Personalizable(PersonalizationScope.User), _[code]....

This is actually working, but the new field is automatically created onto the "PropertyGridEditorPart" Section, instead of the "Behavior" Section, where I want to place it.

I´ve been looking for some attribute that works for creating the field wherever I want, but can´t find it.

View 2 Replies (Posted: Sep 15, 2009 10:54 AM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Web Forms :: Dynamically Adding An AppearanceEditorPart To EditorZone
I am creating an application which creates pages dynamically, therefore all controls are also created this way. Initially adding a Editor part to the editorZone loads fine, as follows:


Where am I doing wrong here?

Posted: Jun 14, 2010 09:25 AM

View 1 Replies!   View Related
Strange Behavior When Using Asp:literal Inside Of Div Tag?
I'm thoroughly confused. Here is my code:

<div style="width: 100%; height: 100%; overflow: auto; background-color: White;">

When I run this I assign the value of the literal prior to display. Now when I look at the actual page, only ***? shows up and not the literal value itself. I just see the white background of the cell's div with ***? in it, yet nothing else. Yet if I view source, the literal value is populated with the requested value. Here's the source code view:

<div style="width: 100%; height: 100%; overflow: auto; background-color: White;">
<!---# START CODE -->
Proprietary code omitted
<!---# END CODE --->

Posted: Sep 14th, 2009, 08:56 AM

View 18 Replies!   View Related
Web Forms :: EditorZone - Value Dependent Droplist?
I have an editor zone which contains a  propertygrideditorpart. In this editor part I need to have 2 drop lists. the second drop lists values need to be set based on a query from the selected value of the first drop list.

Posted: Dec 08, 2009 04:29 PM

View 3 Replies!   View Related
Web Forms :: Editorpart And Personalization Data?
I have created a webpart with an editorpart that gives the user the possibilities to make some selections from 2 dropdown lists (within the editorpart) when I press the APPLY or OK button I would like the selected item from each dropdownlist persisted with the personalization data eigther personal or shared. Next time I set the webpart in editmode I would like to retrieve the persisted data from the personalization provider so I can pre select the same item from the list as when the user left. When not in editmode I need to retrieve the persisted data from within the ordinary webpart so it can be used to retrive the data to display in the webpart.

Posted: Aug 14, 2004 12:30 AM

View 13 Replies!   View Related
Web Forms :: Custom Editorpart - Createchildcontrols Called Before Applychanges?
I'm having the same issue as posted here:

I have a web user control that implements iWebEditable, and a custom editor part the implements EditorPart. In my custom editor part class, i define a text box, create the textbox in createchildcontrols() then render the textbox in RenderContents() using the following line:


 As soon as I add the line above (which displays the text box in the editor part) the functions createchildcontrols and applychanges are called in the wrong order. i click save button in the editor part to save changes to textbox, createchildcontrols() is called first, then applychanges() is called after the editorpart and the webpart (custom control) are rendered requiring me to refresh the page (which is not the desired functionality ;-] ). As soon as I comment out the line above in RenderContents() the functions are called in the correct order: appychanges() first, then createchildcontrols().

Posted: Jan 18, 2010 02:02 PM

View 2 Replies!   View Related
Forms Data Controls :: Gridview Adding Fields?
are below all 3 points the same?


<asp:button ....>

</boundfield> [code].....

Posted: Feb 24, 2011 03:45 AM

View 10 Replies!   View Related
Forms Data Controls :: Adding Calculated Fields To A Databound Control?
I need a form that displays three columns drawn directly from a database (no problems here) as well as two fields that require some complex calculations.  Not only am I lost as to how to incorporate the calculations into the control, I don't know exactly how to write the calculations. I am working in Visual Web Developer 2008 with Vb.NET.

The first of the two fields should take the sum of all payments made by a given customer and divide it by a DailyMembershipRate, returning a DaysPaid variable. It should take this variable and a CustomerSince field for that particular customer and calculate a PaidThrough field.

The second of the two columns similarly requires the DaysPaid variable described above. It should subtract the CustomerSince field from the current date and return the value in days, giving a MembershipDays variable. Finally, it should subtract MembershipDays from the DaysPaid variable, again returning a value in days, and then multiply this by the DailyRate value for a Credit/Deficit field.

I realize this is a lot, but I haven't been able to find any documentation either online or in VWD or ASP.NET texts on this topic. I could really use some fellow user input.

Posted: Oct 14, 2010 09:12 PM

View 4 Replies!   View Related
Web Forms :: Inside Of Templated Fields With In A Details View?
I have two drop down lists that are being populated from a database.  When I use them the choices go up instead of down.  They are inside of templated fields with in a details view.  Does anyone know how to correct this? 

Posted: Dec 06, 2009 08:06 PM

View 2 Replies!   View Related
Web Forms :: Master Pages And Adding Dynamic Text Fields To A Page From The Database
I am adding text fields to a page from the database. I set the .ID to match the record ID from the database. Of course becasue the text field is on the masterpage, when I grab the .ClientID, it is ctl00 contentMain$ctl00. what I don't get is where is my ID?  If I set it to say AB how do I find the textbox by AB? I thought it should have AB in the ID somewhere. ID is nothing which I don't get either. I'm looping through the controls in a placeholder like this

For Each row In dtData.Rows()
Dim c As Control
For Each c In phTextRequired.Controls
If c.UniqueID = row("CustomFieldID").ToString() Then

Again though what is in the row() is say AB but the id is way off from that. 

Posted: Jun 28, 2010 09:10 PM

View 4 Replies!   View Related
Forms Data Controls :: Disable Fields Inside A Formview?

The above code works if there are controls directly inside a update panel. But what if I want to disable a button or a tex box that is inside an Edit template of a formview.. that is in a panel. 


Posted: Feb 25, 2011 03:19 PM

View 9 Replies!   View Related
How To Update Zone And ZoneIndex In An EditorPart
I created a custom EditorPart, and I want to set the Zone and ZoneIndex on the WebPartToEdit in the ApplyChanges method. However, these particular properties are read-only, so I can't set them. The LayoutEditor contains these properties, so it should be possible to update them. How can I set the Zone and ZoneIndex on a WebPart?

Posted: Mar 30 10 at 18:01

View 1 Replies!   View Related
ADO.NET :: Adding 2 Additional Fields To SQLBulkCopy?
I'm successfully using SqlBulkCopy to import spreadsheet data. 

I am trying to add 2 additional fields,'UserID' and the specific 'employerID' whom they're logged in as. 

Both these ID's are on the page.  However how do I tag them on to my column mappings statement?

These ID's aren't on the spreadsheet but I need to know whose imported the data and from where

The columnMappings structure:


Posted: Mar 09, 2011 07:32 AM

View 5 Replies!   View Related
Architecture :: Adding Data Fields On The Fly?
I have a web app that is tracking basic medical provider demographica information (name, address, phone). If our client requests us to include gender and DOB as the fields tracked, can this be done on the fly without compiling and publishing my web app?

Posted: Feb 10, 2010 04:41 PM

View 2 Replies!   View Related
Forms Data Controls :: GridView Delete Command Fires Error When Using Template Fields Inside
I have visual 2010 with net 3.5 web app. I was implementing EntityFramework in my project and added a gridview to a entity source control. It worked ok, with select, update, and delete buttons enabled on the grid. But then, i needed to add a template field bound to a Foreign table, so my users select value from a list instead of writing the code. After that, my app fires error when i delete. I tried everything, inclue dakeyNames, write code on my RowDeleting, RowDeleted, RowCommand, but error persists.

Now, i can delete the row, but it then i get the error  Object reference not set to an instance of an object If i implemente delete code on RowCommand i get the error: Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries.

Posted: Mar 06, 2011 06:56 PM

View 1 Replies!   View Related
Custom CreateUserWizard Adding 2 Fields At The Same Time?
I am attempting to customise the CreateUserWizard by following it in my book, but when I come to reference them in code behind I get an error saying 'FieldName is not declared' for each field i'm adding, they are present in the page with the correct ID's, am I doing something wrong?I am only trying to add a firstName and lastName field to the bottom of the CreateUserWizard and remove the need to a security question.

Posted: Feb 23 at 12:50

View 1 Replies!   View Related
Adding New Fields To Create User Wizard?
i m trying to add new field named mobile in my create user wizard control for that in my web.config i add

enabled ="true">properties>add
name ="Mobile"
type ="string"/>properties>profile>

in my create user wizard using edit template i add one textbox named 'txtmobile'

nd in my cs i write

ProfileCommon p = (ProfileCommon)ProfileCommon.Create(CreateUserWizard2.UserName,
TextBox txtM = ((TextBox)CreateUserWizard2.CreateUserStep.ContentTemplateContainer.FindControl("txtMobile"));
p.Mobile = txtM.Text;
//p.Mobile = ((TextBox)CreateUserWizard2.CreateUserStep.ContentTemplateContainer.FindControl("txtMobile")).Text;

but it throws the error of 'object reference' nd also let me know how to store that field in db?

Posted: Dec 09, 2010 05:45 AM

View 1 Replies!   View Related
Security :: Adding Fields To The Register User?
I'm using VS 2010 and have a default Register User page. I want to add a few more fields to the default user name, passwor, email.These fields need to be saved to a different table than the apsnet_Users table. I figured I could do this in the CreatedUser event but don't know how to access the text box controls I added - for example First name, last name and so on.

Posted: Jul 16, 2010 02:52 PM

View 2 Replies!   View Related
Adding Fields After User Presses A Button?
I'm just starting out with ASP.NET and I'm not sure how to go about the following:users have to input a part number into a text field. Sometimes they only have to input 1 part number, sometimes 50. I want to have 1 text field where they input the first part number, and if they have another one, they press a "more" button. Then, a new text field appears right beneath the first one. IF they have more part numbers, they just press the more button again... Is there a way to do this? If so, can someone give me any tips or hints on how to approach this?  

Posted: Jun 29, 2010 08:41 PM

View 3 Replies!   View Related
Security :: Adding Data Fields To The Aspnet_membership?
I added new profile in the webconfig file. Also added extra fields in CreateUserWizard.

Web config:

<authentication mode="Forms" />
<compilation debug="true" targetFramework="4.0" />
<pages  theme="Theme1"  />
<profile enabled="true">
<add name="Country" type="string"/>

Cs code:

public void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
Profile.Country = Text1.Text;
//also tried doing:
ProfileCommon p = (ProfileCommon)ProfileCommon.Create(CreateUserWizard1.UserName, true);
p.Country = Text1.Text;

The Profile/ProfileCommon gives me an error "missing assembly/Profile doesn't exsit"

Posted: Jan 26, 2011 05:58 PM

View 1 Replies!   View Related
C# - Adding Additional Fields To The Login Feature?
I have a application that i am creating in i need to be able to update a new column in the table users which is set up automatic with a project. I am trying to add a address line to the code

This is code that i have so far

TextBox address1TextBox =
TextBox userNameTextBox =

how i would even update this column in the user table that i have.

how i could update the address line1 table in the database that comes with a visual studio 2010 project.

Posted: Mar 21 at 16:26

View 1 Replies!   View Related
Javascript - .NET TextBox TextChanged Event Not Firing In Custom EditorPart
This is a classic sort of question, I suppose, but it seems that most people are interested in having the textbox cause a postback. I'm not. I just want the event to fire when a postback occurs.

I have created a webpart with a custom editorpart. The editorpart renders with a textbox and a button. Clicking the button causes a dialog to open. When the dialog is closed, it sets the value of the textbox via javascript and then does __doPostBack using the ClientID of the editorpart.

The postback happens, but the TextChanged event never fires, and I'm not sure if it's a problem with the way __doPostBack is invoked, or if it's because of the way I'm setting up the event handler, or something else. Here's what I think is the relevant portion of the code from the editorpart:

protected override void CreateChildControls()
_txtListUrl = new TextBox();

_txtListUrl.ID = "targetSPList";[code].....

Posted: Jun 4 10 at 15:39

View 1 Replies!   View Related
C# - Dynamically Adding Text Fields On C# 2008 Page?
My C# web app requires the user to enter automobile information. The user can add information for one auto, or more (max 20).

My page has these text fields: Car Number, Car Make, Car Year, Mileage, VIN I have a button that allows the user to "Add More Cars" is to allow the user to add more than one car.

When the user clicks "Add More Cars", how can I dynamically display the text boxes, and keep track of how many cars the user has added (in order to load them to an array and write to database)

Posted: Feb 24 10 at 16:23

View 3 Replies!   View Related
DataSource Controls :: Adding 2 Fields Together And Inserting Into A Database?
I have an SQL datasource that successfully enters customer details into a table. What it includes is the persons address. First of all we add the persons address, then we add the persons name to that address in a seperate physical procedure. i.e. on a different form.

 What I need to do is try and stop users entering the same address twice. The way I have thought of doing this is by making a string field called AddressIdentity and have this contain the door number and the postcode of the address with all the spaces stripped out. Then when adding the address, it checks if this exists before adding it. However I cannot work out how to put the 2 fields together without using the codebehind file, which I don't mind doing if I need to, but I'm sure its avoidable.

Here is my code - I have only included the relevant parts:

InsertCommand="INSERT INTO [tbl_shop_client_addresses] ([FlatNo], [Address1], [Address2], [Town], [County], [Postcode],
[Country], [Telephone], [DoorNo]) VALUES (@FlatNo, @Address1, @Address2, @Town, @County, @Postcode, @Country, @Telephone, @DoorNo)"

So how do I do it? I was trying:

InsertCommand="INSERT INTO [tbl_shop_client_addresses] ([FlatNo], [Address1], [Address2], [Town], [County], [Postcode],
[Country], [Telephone], [DoorNo], [AddressIdentity]) VALUES (@FlatNo, @Address1, @Address2, @Town, @County, @Postcode, @Country, @Telephone, @DoorNo, @Postcode + @DoorNo)"

but of course AddressIdentity is a string. Do I use ' ' marks with an & sign? Or can't I do this?? Maybe I need to use the codebehind anyway to see if the field exists before inserting it?

Posted: Jul 06, 2010 08:06 AM

View 2 Replies!   View Related
DataSource Controls :: Adding An Id Field Based On Other Fields
ive a DB in access with a single table and no primary key, actually i dont need a primary key but i can consider a date field plus another to make an index. however i want to add a counter field based on every change of date field, for instance ill have many records of 20/May and all must have the same id then when the date is different, the next group of records with that new date must show 2 etc.. is it a quick way to update my database?

Posted: May 16, 2010 08:48 AM

View 6 Replies!   View Related
Adding Fields In Crytal Report Select Expert?
i am uisng 2.0 built in crystal report .i already have the connection made  and some fileds already on the report. i need to add few more fields to the the existing set of fields from database in the server explorer i have the field that i need but i am not able to drag drop on the crystal do i add the field from datatable to crystal report

Posted: Jul 14, 2010 06:21 AM

View 4 Replies!   View Related
Web Forms :: Adding An Image Inside A Listitem?
I'd like to have an image instead of text as a radiolistitem, something like the following example: 


This works, however I'd like to know if there's a way to perform this in code or do I need to create a custom control? Currently I'm just doing: .Items.Add(New ListItem("#1", 1))

Posted: Feb 09, 2009 03:51 AM

View 3 Replies!   View Related
Security :: Adding Additional Fields To Custom Membership Provider
i have been playing around with the membership provider model for the last week and have it got it working with a basic table schema. The trouble i have is that i wish to add an additional field (eg First Name) but am not sure how i can do this. Here's what i have so far:

public override MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)
MembershipUser user = new MembershipUser(Name, username, providerUserKey, email, passwordQuestion, null, isApproved, false, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now);
db.AddParameter("@UID", username);
db.AddParameter("@PWD", password);
db.AddParameter("@EMAIL", email);
db.AddParameter("@ISACTIVE", (isApproved == true ? "Y" : "N"));
int i = db.ExecuteNonQuery(sql);
if (i > 0)
status = MembershipCreateStatus.Success;
return user;
status = MembershipCreateStatus.ProviderError;
return null;

public override void UpdateUser(MembershipUser user)
string sql = "UPDATE USERS SET
db.AddParameter("@EMAIL", user.Email);
db.AddParameter("@ISACTIVE", (user.IsApproved ? "Y" : "N"));
db.AddParameter("@UID", user.UserName);
int i = db.ExecuteNonQuery(sql);

public override MembershipUser GetUser(string username, bool userIsOnline)
MembershipUser user = null;
db.AddParameter("@UID", username);
SqlDataReader reader = (SqlDataReader)db.ExecuteReader(sql);
while (reader.Read())
user = new MembershipUser(Name, reader.GetString(reader.GetOrdinal("username")), null, reader.GetString(reader.GetOrdinal("email")), null, null, (reader.GetString(reader.GetOrdinal("isactive")) == "Y" ? true : false), false, DateTime.MinValue, DateTime.MinValue,
DateTime.MinValue, DateTime.MinValue, DateTime.MinValue);
return user;

The trouble i have is that the CreateUser method expects a fixed number of arguments so if i add a new field/attribute to my table then how do i add to this method to do the insert.  There is a similar problem with the GetUser and UpdateUser methods as they both inherit from the MembershipUser class.

I have been googling all day without success.  One solution i thought was just to ignore these methods and create my own ones but then i don't benefit from some of the pre built server controls.

Posted: Oct 01, 2006 05:45 PM

View 6 Replies!   View Related
Adding Multiple Fields Dynamically By Clicking Button Or Link
my requirement is i want to add education details having three fields

1) name of school 
2)name of city

some persons will studied only in one school . some in 2 . aome in 3. how to add dynamically .and after that i want to show the data to admin .if there is 2 means i want to display 2 school informa

Posted: Mar 23, 2011 12:52 PM

View 4 Replies!   View Related
C# - Adding Additional Input Fields Dynamically (similar To SO Careers)?
Similar to the "add more experience" functionality in [URL], I want to provide a "Add another location" link which should display an additional row of a set of 4 dropdowns (country, state, city, region). I'm actually using the CascadingDropDown jQuery Plugin for ASP.NET MVC [URL] for my location dropdown functionality, but I need to give the user the ability to add multiple locations. What would be the easiest way to handle this in ASP.NET MVC and jQuery?

Posted: Jan 12 at 13:36

View 4 Replies!   View Related
DataSource Controls :: Adding Data Fields To The Aspnet_membership Table?
I'm wanting to add a few additional fields about a new user using the CreateUserWizard option like company name, address, etc. I've added the text box's and the corresponding code in the stored procedures but for some reason, I cant get the new data to pass into the DB. Is this the proper way to do this?

Posted: Jul 09, 2006 05:22 AM

View 4 Replies!   View Related
Web Forms :: Adding AnimationExtender Inside A Server Control?
so I avoid creating Server Controls like the plague, but I need one.

I have a Render method that creates a lot of divs. I use an animation extender to show and hide the divs within the server control.

But when adding the animation extender it tells me the control used for TargetControlID doesn't exist. How can I get the code for the animations to insert after the control has been rendered? 

RenderContents method


Posted: May 06, 2010 02:40 PM

View 1 Replies!   View Related
How To Display A Progress Bar And Make All The Fields Inside The Page
I have a page where i am clicking the button it will take the datas to next page mean time i need to display a progress bar and make all the fields inside the page as read only nothing can be edited. till the datas goes to next page it shld show the progress bar with page as non editable. without using ajax.

Posted: Jan 09, 2009 12:31 PM

View 7 Replies!   View Related
Web Forms :: Adding Dynamic Fields And Dynamic RequiredFieldValidators?
So am adding fields in the code behind and now want to add required field validators.   Kicker, I think comes into play becasue all this is in a master page.  So even though I may set the id of the textbox to say tb4, it's no longer tb4.  So when I add the required field validator and tell it the control to validate is tb4, I get the yellow screen of death telling me thtat tb4 does not exist... cause it's the long huge master page ID.  What do I do?

Posted: Jul 28, 2010 04:09 PM

View 13 Replies!   View Related
Using Createuserwizard Control Adding Additional Fields To Create A User Registration Form
I want to create a user registration form, I used the CreateUserWizard control, and i intend to add more filed with the wizard interface, the fields were  firstname,lastname, telephone all these with the textBox control and sex-male or female with a radioButton control, and upload photo with the FileUpload control. 

After a successfull submit to the sql database, i should be able to retrieve all this informtion inluding the photo uploaded in another aspx page  using any of the data control in y toolbox and resizein the photo to be 100/100 pixel size. pls could you write out the code (step by step details) to follow to implement all this in my 3.5 c# website. I have already created a table in my database, using userId as my ForeignKey.

Posted: Mar 17, 2010 07:52 AM

View 1 Replies!   View Related
Want To Insert Fields Inside Unbound ASP:Table Cells With Visual Web Dev Express?
I can't see how to do that with Visual Web Dev Express. So do  I have to do it manually that is inserting this code below dozens of time ?


Posted: Feb 01, 2009 09:57 AM

View 3 Replies!   View Related
MVC :: How To Validate HTML Input Fields Using JQuery Inside Ajax.BeginForm?
How to validate HTML input fields using jQuery inside Ajax.BeginForm?


Posted: Jan 24, 2010 09:20 PM

View 1 Replies!   View Related
AJAX :: Hidden Fields In Gridview Inside An Update Panel Not Refreshed?
I have a user control which has a gridview with hidden fields in some of the template columns. The grid columns are created and bound by code dynamically in each postback and not in design mode. The gridview is placed in an update panel. In my aspx page where i use the user control , there is a dropdown which fires postback and based on the selected value of the dropdown the grid data gets filtered. The dropdown in aspx is not part of any update panel.

After the postback of dropdown, the grid data gets filtered and the grid is rebound with fresh values. The values in the controls like label, button or link button are bound correctly. But the values in the hidden fields are not refreshed and always points to the values of the rows that was generated before the postback of the page (initial page load).

Posted: Jun 22, 2010 05:28 AM

View 3 Replies!   View Related
Forms Data Controls :: Adding LinkButton's EventHandler Inside GridView Not Working
I'm having some trouble adding the linkbutton's Click eventhandler inside gridview's cells. Here is what I have:


I can see the linkbuttons inside gridview, and the linkbuttons are clickable. However, I don't think the click event handler is working. tempLB_Click method is not called when I click the buttonlinks. Am I missing something? Btw, I'm working on the sharepoint webpart, so no asp aspx page is available.

Posted: Nov 11, 2009 07:17 PM

View 12 Replies!   View Related
Web Forms :: How To Programmatically Set Template Fields Label Value Two One Of Two Fields Returned In A Sqldata...
 I have a sql data souce that returns several columns of data, and they are displayed in a DetailsView on a pretty simple page.  I'm stuggling with one field though for the details view. 

It's a template field, and if ClientType=1 (this value is determined else where on the page), then the label in the template field should have Text='<%# Bind("ClientName") %>', but if the ClientType = 0, then the label in the template field should have Text='<%# Bind("ClientTemporaryName") %>'

How do I tell the details view to set the text for ClientName to one or the other? 


Posted: Feb 08, 2011 07:53 PM

View 3 Replies!   View Related
Copyright © 2005-08, All rights reserved