How To Update Zone And ZoneIndex In An EditorPart
Mar 30, 2010
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?
View 1 Replies
Similar Messages:
Mar 31, 2010
I am having a .net project that builds the web based installer. I was using visual studio 2005 environment and the project is targetted to .Net 2.0 framework earlier. I don't see any issues with installing the product that was builted from above environment.
Recently i migrated to Vs2008 and .Net 3.5 framework and the i was facing the following issue. During the installation the web browser( opened in IE 6.0) is getting opened in INTERNET Zone which applied higher security settings including disabling of all Java scripts.The browser was not responding any click events( next or back or cancel).Copying the URL to the new IE doesn't have this issue. I am not sure whether it is an environment issue or not.
View 1 Replies
Sep 27, 2010
When in the Catalog Zone, I select a Web Part and a zone in which to put it and then click Add. I need to know immediately which zone has been selected in which to place the selected Web Part.
My Catalog Zone is declaratively a class called CatalogPart1 which inherits the CatalogPart class:
[code]....
But I cannot work out how to use this event to get the Zone that has been selected.
How do I get the Zone that has been selected?
View 3 Replies
Jan 18, 2010
I'm having the same issue as posted here:
http://forums.asp.net/p/1157529/1904541.aspx#1904541
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:
_txtTitle.RenderControl(writer);
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().
View 2 Replies
Jun 4, 2010
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].....
View 1 Replies
May 17, 2010
I get the browser time zone in ASP.NET or do I have to rely on JS operations to retrieve the information
View 3 Replies
Apr 20, 2010
I read an article on the www.4guysfromrolla.com which tells to store gatetime in getutcdate() in the database.and while displaying use javascript
[Code]....
But one came to my find that if i want to show something time critical data on page load,then how would i call javascript before page load,
View 1 Replies
Mar 2, 2011
Is there any way to restrict a web part to a certain zone? I know I can restrict it by using the AllowZoneChange flag, but is it possible to make sure the web part can only be added to certain zones? I have some web parts which are only viable in a wide column (zones), so I want to make sure that no one tries to add the web parts to narrow columns (zones). Is there any way of accomplishing this?
View 1 Replies
Mar 18, 2010
How can I add an URL to the trusted site? It seems that there are stored in the registry, but where exactly?
The .net programm will run locally on each client.
Edit clarification: I want to do this programmaticly running C# code.
View 5 Replies
Feb 15, 2011
I have a page that has 5 zones, by default have also defined the layout.
Now I need to restrict the user to have only one web part control in a zone at a time. Is that possible? Currenty we can add more than one control in the same zone.
View 2 Replies
Mar 9, 2011
I need to convert time to "UTC+03:30 Time Zone" in my web application here is UTC date : DateTime dt = DateTime.UtcNow; Is there any function to convert UTC to my time zone or not ? I don't want to involve myself writing a new function in my application if there is a function in ASP.NET. The application might be hosted in different server in the world and that's exactly why I have used UTC date. I need a function to add 3:30 to the current UTC time.
View 3 Replies
May 1, 2010
I'm working on an asp.net mvc application. Each user have his own time zone.Right now, I'm using "TimeZoneInfo.GetSystemTimeZones" to generate a drop down list in order for the user to select a timezone and this is what I store in my db
They are like that:
Morocco Standard Time (00:00:00)
UTC (00:00:00)
GMT Standard Time (00:00:00)
...
I know that php use a different timezone set, they are "region timezone", for example:
Europe/Paris
Europe/London
...
My question is: is there a way to play with the region timezone (like php) in an .NET application? The only way I can think of is to bind each php region timezone to the .net timezone.Also, the "TimeZoneInfo.GetSystemTimeZones" list all of the timezone on the machine. Is the list different between windows server, windows vista, windows xp?
View 3 Replies
Jun 28, 2010
Do any of you guys have experience using Active Directory and the Intranet Zone to silent authentication with a local web site? I've done it in the past with 1.1 and 2.0 .NET, but this 3.5 site I have written doesn't seem to be working for some reason.In the past, how I have done it is:
In web.config, set:
<authentication mode="Windows"/>
In IIS 6, under directory security, check Integrated Windows authentication and Digets authentication for Windows domain servers, and set the realm to my domain, and uncheck Enable Anonymous access.The I add the Host Header for the site to the corporate Intranet Zone in Internet Explorer under trusted sites using Active Directory.And that's basically it. I've done it on plenty of intranet sites before, but with this 3.5 application I am still being propped to login. Anybody see any steps I missed?
View 12 Replies
Jan 31, 2010
specify method to remove web Part Zone names.
View 3 Replies
Jan 14, 2010
I want to hide the dropdown in PageCatalogPart, which lists the Available Zones.I want to programmatically add the closed webpart to the Zones and not allow the user to select zone.
View 2 Replies
Mar 4, 2011
I'm using a UI that works with webpartzones, I created a class that implement ITemplate , zones are created but drag and drop is allowed just inside the container zone(webpart).
View 2 Replies
May 7, 2015
How to set default time zone in ASP.Net Application?
View 1 Replies
Jan 21, 2010
I have different roles like Administrator ,Accountant, Clerk,Enforcment When user open Catalog Zone to add parts to Web part Zone i want only those parts should apper on the screen for which user selected Group,like if user selected Enforcement Group then Parts of that group should only appear in the Catalog Zone.
I want Catalog Zone cantains to be depend on which Group user was selected.
View 2 Replies
Oct 3, 2010
I have created 4 WebPartZones in my aspx page.
I need to add usercontrols dynamically to ZoneTemplate of each WebPartZone by reading a config file.
How can i dynamically add controls to Zonetemplate of each webpart at runtime
View 3 Replies
Feb 23, 2011
My Application hosted at server in time zone which differs from mine. All date in database is not correct for my time zone. How can I set my time zone for Application or how I can convert date to my time zone on output
View 1 Replies
Jan 12, 2010
I m trying to load a new tab which should load WebUserControl2.ascx on button_clickbut I m coming across this eror: A Zone can only be added to the Page in or before the Page_Init event.I have a webpart in WebUserControl2.ascx which should load FeaturedControl.ascx.Well, i m getting the error when i click on button at :
Private Sub LoadTab2()
Dim uc2 As UserControl = CType(LoadControl("WebUserControl2.ascx"), UserControl)
tp2.HeaderText = "Tab2"
tc1.Tabs.Add(tp2)
tp2.Controls.Add(uc2)
End Sub
Where, tc is tabcontainer, tp is tab panel.
View 5 Replies
Nov 23, 2010
writing a code for adding a dynamical user control to the static web part zone.
I need to add, <uc5:FckEditorModule ID="FckEditorModule1" runat="server" /> dynamical to the webpart zonetemplate.
View 3 Replies
Oct 15, 2010
I have a web app hosted with GoDaddy (so the web server is in Arizona - Mountain Time). My users are mostly in Central Time Zone, but I could have some from other time zones. I have a web page with a databound dropDownList using TimeZoneInfo, and I want to set the selected value of this dropDownList to whatever timeZone the user is in. Here's my code currently:
protected void Page_Load(object sender, EventArgs e)
{
DropDownListTimeZone.DataSource = TimeZoneInfo.GetSystemTimeZones();
DropDownListTimeZone.DataBind();[code]....
It's ok, but I want it to be smarter for those users who aren't in CST. I was hoping there is some way to grab the user's TimeZoneInfo from something like Page.Request.??
View 2 Replies
Aug 31, 2013
I'm having a little issue, currently my code, first it saves to DB then send an email in both codes it saves and send the current date and time. I use the following function to get the current date Now() . The problem is when it saves to DB, it saves the current time and date using the timezone of DB server location and the email send the date and time and appear in my wanted timezone (easter time zone). I was wondering if it's possible to make the also save to DB with the correct time zone without using any javascript.
View 2 Replies
Feb 11, 2011
by default closed webparts are listed in catelog zone vertically
for example,
[checkbox] [webpart 1]
[checkbox] [webpart 2]
[checkbox] [webpart 3]
any one guide me which property is used to list them horizontally?
i want them like
[checkbox] [webpart 1] [checkbox] [webpart 2] [checkbox] [webpart 3]
View 3 Replies