I have a page which is using the AJAX Control Toolkit HTML Editor. I have it configured with only the Bold, Italics and Underline buttons. Once the user saves the information, it's stored in a database table. No problems.
I need to change the resulting code so the HTML code can be correctly interepted by a Crystal Reports report. CR doesn't understand the <span> options being created by the HTML editor. So for example, I need to change the
<span style="font-weight: bold">Bold</span> code created by the HTML Editor so it's entered into the database as <b>Bold</b> instead.
I can attempt this in the code behind, but I then also need to replace the </span> with a </b>. This causes an issue because if there are multiple options (e.g. bolded word within an underlined line), then the proper tags won't be closed as they should.
I have been asked to support a legacy app and I can't get access to the code behind files. I need to add a new feature that gets a list of items from the database on page_load, what way would adding an "in-page" page_load affect the compiled page_load?
When someone requests a web form, I want to use Javascript to see what browser they use, and then point to the correct css files with Javascript. What is the simplest way to do that.
For example, in my header of the html form, I have a link that says:
So I have a fairly simple web site which allows an Administrator to edit some data in a database which is displayed on some web pages.
The main navigation on the site is shown in the code snippet below. The Admin link goes to a Login.aspx which allows the Administrator to log in - once authenticated they get sent to the data edit page.
So my question is, how could I dynamically add a link to the data edit page in the <ul> list below once the user is authenticated ?
This would allow the authenticated user to see links to the secure pages in the main navigation bar.
where each entry has some HTML text and an associated Name and ID.
What I want to do in ASP.net C# is to list each of these entries on a page in such a way that the HTML text should be displayed exactly how it is meant to be (e.g. <b>test</b> should show 'test' in bold) and each entry should be editable. When the Edit button is clicked on an entry, the HTML text should be replaced by a textbox with the text inside it so that you can edit it and save it.
For example:
FOOTER --EditButton--
TEXT test
Now I am not sure on what is the best way to do this. Should I use a repeater with an ItemTemplate for each entry? If I use a repeater, and an edit button is clicked, how do I know which edit button is clicked and how do I know which textbox to display the text etc?
im wondering if its possible to add a asp button to the code below, the code below adds an image and text from my database to a dynamic div on my asp page:
using System.Data.Odbc; using System.IO; public partial class UserProfileWall : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e)
I'm working on a new website, written in VB.Net using ASP.NET MVC2, there is a need to call "legacy" VB6 code for various complex bits of business logic. The VB6 is a framework consisting of many dlls and is very stateful, we are pretty much emulating how the framework is used in our client application, ie the application runs (lots of state setup), a user logs on (even more state) and then loads a file (even more state).
I've been provided with a "web service interface framework" to get this up and running for use in the web app, this "web framework" hides the legacy code behind a thin layer running under IIS. The idea being that thread pooling provided by IIS will reduce memory use etc etc. I can't help but believe that the guy who provided this has missed the point, since each instance is so stateful there is no way that a thread pool can work, since once a user logs on using one particular object from the pool, no other object will be capable of servicing that client (since it wont have the state)! Also, adding a web service interface and associated SOAP marshalling is a huge overhead compared to calling the objects directly.
The only way I can think of doing this is either a single legacy interface instance which is used by all clients and blocked by each call until it completes, or a thread per client with each legacy interface object being created in a new thread and living for the life of the client.
None of these is ideal but with the amount of code in question and the prolonged migration programme to .net (2+ years and still stateful) I can't think of an alternative. We run the original client app in a citrix environment for some customers so I expect that it could also run ok with thread per client given a beefy enough server and that the overheads of the framework itself should be lower than when the client app is involved.
I am using the TextBoxWatermark extender ASP.NET AJAX extender this works great, but i still want to have the comfort for my users, that the textbox remembers their entries e.g.:
Login=> TextBox with UserName
- if two people are using the same computer, they don't want to type UserName each time again instead click in the box and choose their UserName or start typing and their UserName is than suggested.
It seems to be a standard funktion that a TextBox remembers the entries you did. Unforantly when using the watermark extender on a textbox it simply does not work anymore.
Is there a way to enable this ā€˛feature" again?
When looking at the example of the TextBoxWatermark ASP.NET AJAX extender: [URL] it is not working their as well.
I am writing my first AJAX enabled page. Basically I am trying to expand out the lines of a Purchase Order (PO) using our company database. What I want to do is have a button that will that will call on a javascript to update a div field with a table for the PO lines of that PO and at the same time change the function that is called by the button to a function that will collapse the list. How would i do this?
I have a GridView inside of an UpdatePanel and the buttons for edit and delete into a templatefield
For the delete button, I also have a modalPopup extender and a confirmButtonExtender, due to the problem of the pannels flashing momentarily (and that is very ugly) I have created a css class with display:none
for the delete button I have created a javascript function called changeVisibility(id) to change the visibility
Here ir some code:
[Code]....
The problem is that when I execute the page, imagebutton onclientclick appears like this:
onClick=""
why is asp.net not processing correctly that, and, if you know another way to hide the panels before they flash on startup,
I have a textbox which I need to enter html code into (like < strong> or < em> for example).The trouble is this is causing an error writing this back to the database. A potentially dangerous Request.Form value was detected from the client (tbVOther="< strong>testIs there a way around this without turning off the request validation setting?
In order to add pie chart into my website, but i want to remove black border and add % sign to the numbers showing graph and also want to set colours in pie chart based on my website theme.
depending on the No. of the photos the code will be duplicated in the loop
Then I will display the result of the loop in label or in a textarea to let the user copy it any where
The problem is that while compiling my code it considers the HTML code as a part of the behind file and gives errors on the single quote, the double quote and on the parentheses
Trying to integrate with a legacy WSE web service, getting the below error while authenticating via that internal service. It's pointing to a line in web.config(</securityTokenManager> as in the below snippet of web.config file), but I dont see any issue in web.config. Copied the same build to other machine(Win2003) and it's working fine, I am seeing an error in Win XP. I checked for the related assemblies(the one mentioned under securityTokenManager), it's all there.
I am using a third party service that does an async callback to a URL I provide to them. So I tell them to use [URL] This must obviously map to an Incoming() method on my StatusController.
However, what I don't have control over is the format of the parameters they call my URL with. E.g. They will do a callback such as: [URL] I want to map this to the parameters of my action method: Incoming(string param1, string param2, int param3)