AJAX :: Change Editor Active Mode Dynamically?
Mar 5, 2011i am using asp.net ajax editor control , i am giving default active mode as Preview. How can i change the active mode as design in button event.
View 1 Repliesi am using asp.net ajax editor control , i am giving default active mode as Preview. How can i change the active mode as design in button event.
View 1 RepliesHow to add TABLE/TR/TD in HTML Editor (Design Mode)
View 5 RepliesI want to limit the number of characters that a user can type in. How can I do that?
View 3 RepliesI was wondering if there was an easy way to change the output generation properties of the HTML editor.
I need to change it from the current XHTML standard (spans, etc) to legacy styles; <b>, <u>, <i>, etc.
Im having a tabcontainer in which im having one more tab container which consist of 3 tab panels.what i want that when i click the parent tab panel i want to change the child tab container's activetabindex.
[Code]....
[Code]....
Im getting activeTab NULL.
I know it possible to do this in Javascript but I not sure how to do this in C#.
I would rather not use a javascript callback function.
I am new programmer with ASP and C#.
I have two Main Tabs and in a TabContainer.I have 5 Second Level Tab Panels under Main Tabs.Two MainTabs work as mode: find and work:The default is Find Mode with First Tab visible.the user selects some field and the result is displayed in the same Panel in a GridView.When the user views the result it is displayed in the second TabPanel of the Second Level Tab which is then set to visible while other 3 tabs are still invisible.I want to go back to the Find mode and have it in the orignal state.Same thing with the Main Tabs:
When I am in work mode: the other 3 tabs are visible and the previous two Tabs are invisible.When I want to go back to Find Mode. I want to retain the what the user had selected in the 2nd level Tabs before moving to the Work panel.
I have a tabcontainer with three tabpanel. The first tab is always enabled, while the other two get enabled and disabled in the code-behind depending on some conditions.I would like to customize the header style of the second and third tab such that: - If the tabs are disabled, the header (title of the tab) font color should be gray - If the tabs are disabled, the header (title of the tab) font color should be blue. Currently, I have the following in my style sheet: `a.ajax__tab_tab{ color: blue; }`but this always sets the tab title font color to blue, regardless of whether the tab is enabled or disabled. This piece of code shows the conditions to enable or disable the tabs. Can I control for style here as well?
protected void HorizonTextBox_TextChanged(object sender, EventArgs e)
{
if (HorizonTextBox.Text != "")
{
TabPanel2.Enabled = true;
TabPanel3.Enabled = true;
WholeUpdatePanel.Update();
[Code] .....
Is there anyway to change a user password as an administrator in active directory using c# code.
View 1 RepliesI have an Editor control on my page and the user can go in use it hit save and that all works.
In another part of the page I have a simple dropdown to select a note and view it. When you push view it loads the text which was entered in via the editor control.
If the user used an order or unordered list. The text shows up but not the list part.
So if they did this:
Example
ThisAnd this
What is displaying is
Example
This
And This
Without the bullets. Same for the numbers.
I have it going to a literal control which should render the html, but it doesn't.
When i run the following code i get an error when gridview changes mode to Edit. stating that you can't change string to decimal!
To get around the occurance i want to disable code when in Edit mode or resolve another way?
GridView1_RowDataBound
For Each row As GridViewRow In GridView1.Rows
Dim cell As TableCell = row.Cells(7)
Dim invoicetotal As Decimal = CDec(cell.Text)
how to do for changing the mask edit dynamically ?
View 1 RepliesI have a gridview inside a tabcontainer.I'm programitically binding to the gridview. All works fine, data is displayed. And after databinding I'm dynamically setting the tabcontainer height to that of the gridview so that the gridview doesn't overlap the tabcontainer and look all funky.This all works fine doing this...tabcontainer1.height = gridview1.heightUntil there is no data returned, in which case I get a really small tab container.Bascially if there is no data, I want the tabcontainer1.height = 500, and if there is data to set it to the height of the gridview.I tried this (plus other variations) but can't seem to get it to work.
[Code]....
I am doing ajax pie report and  getting data from database..But i was struck to change the color of pie chart dynamically..
View 1 RepliesI have a Imagebutton in gridview that displays an image when i click.I am using jaxToolkit:ModalPopupExtender control for display the image.The problem I have is that I only want it to display an image based on another fields like width and Height.After clicking the Image button the image should display exact width and height as in ImageWidth and ImageHeight fields in table.My table structure is
Imageid bigint, ImageWidth bigint,ImageHeight bigint,Image varchar(128)
I went through the documentation and looked at the asp.net/webmatrix pages but could not find a RichTextEditor.
Is there one built into WebMatrix or can I just use the AjaxToolkit Html Editor or another 3rd party editor?
I want to change AspxGridView mode on server side. For example :
if( some clauses)
{
// Mode is : New row
}
else if (some clauses)
{
// Mode is : Edit row
}
My website session was expired within seconds. I tried every possible solution but problem was same. Now i changed my session mode to stateserver, but when i logout from website its giving error. Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode. I have mention [Serializable] on class. And some of hyper links also not working after changing the mode to stateserver.
Is there a way to change the mode of the formview control base upon a value that is retrieved from the database. Something along the lines below?
db value | formview mode
1 read-only
2 insert
3 edit
I have an ASP.NET page with a listbox whose selection mode is set to multiple by default. I would like to set its selection mode to single on a button click.
Code snippet of my attempt:
$('#testBtn').click(function(){
$('#testListBox').attr("SelectionMode","Single");
});
It is not working though. What am I doing wrong here and how to get it to work?
I need to look for an example of a web application, preferably ASP.NET but any otherweb language will do, that lets Mac and Windows users change their AD password.
Any technique, application, or source code will be great.
our Macs are not connected to AD and we also have Windows users.
I have an asp.net aspx page and on that page I have a hidden input field with and id of paneIndex. However, when I load the page, the alert shows index 1 which is correct on the first load, but if I open up pane 3 for example, the alert shows 1 still. Am I doing something wrong?
In a Custom.js file, I have the following code:
[code]....
I am looking to retreive a list of all users in a domain who have the ability to reset other users' passwords. e.g. Service Desk users have been delegated permissions to resetall passwords in the domain. Other users may have been delegated the rights on specific OUs etc.Is there any easy way of querying AD to identify any user who has the ability to reset someone else's AD password?
View 1 RepliesI want to show dynamically value in textbox which is in password mode.. but it is not being updated.. I used the following code...
get record through data adapter save it in a string variable, named password.. after this...
txtPassword.Text = password;
I have a search page, detailspage with formview and formview has multiple templates (item, edit, insert).
At the master page (I use vb as code), I have a menu with menuitems (for example "New Contact"), what I want is when I click on the New Contact menu item, I get redirected to the page with the formview on it and the mode of the formview is set to insert.
How can I do this?
My menu is as followed:
<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">