I know Silverlight controls can be embedded in an ASP.NET page but is it possible to do the same for a WPF control? The reason I am asking is because we have Infragistics which has a datagrid that can be flipped to have the columns on the left with the rows of data going down vertically. This is only in their WPF package though and I am trying to figure out a way to plug this in to an ASP.NET page.
I've written a web user control which I want to be able to drop into the markup for either aspx pages or other web user controls.I need my user control to be able to easily and efficiently work out if its inside another user control or an aspx page. My initial idea is to do it recursively with checks on the Parent property - continue looking up the nesting hierarchy until I find either a web form or a user control - but I'm not sure this the best way of going about this.
I have a drop down list embedded in a menu panel in my master page. This ddl fetches it's list items from my SQL Server. They are:
1. Select a type --appended during page load
2. Green type -- fetched from SQL server via a datasource
3. Red type -- fetched from SQL server via a datasource
4. User Manual -- appended during page load
For the sake of simplicity my website has 4 pages. When the 'Select a type' list item is selected - the user should be taken to a general 'Introduction' page. When the 'Green type' - the user should be taken to a 'Green' page - and etc.
I have a text box that is intended for an Email address. I am using a Regular eExppression validation control to validate the email address. When I place the following lines of code in a blank web Form, the validator works properly.
However, when I use the validation control within a CreateUserWizard control, it does not seem to fire but other validation controls (Required and Custom validators) do fire, but not the regular expression validator above for validating the address. The following is my complete web page. The two controls above appear unchanged in the code below, they are simply embedded into the wizard control mentioned.
I have created an asp.net usercontrol that should list users in a number of applications. For that purpose, the control renders a repeater (foreach application) which in turn renders a gridview (with users for that application).
The control renders fine, except the fact that columns in the gridview are not sortable. Nothing happens (no postback) when clicking the headers. Apparently, no JavaScript is rendered to perform the postback when clicking the header.
I currently have a file "abc.htm" in my Custom Server Control Project and it's Build Action is set to Embedded Resource.Now in the RenderContents(HtmlTextWriter output) method, I need to read that file and render it on the website.I am trying the following but it's to no avail:
protected override void RenderContents(HtmlTextWriter output) { var providersURL = Page.ClientScript.GetWebResourceUrl(typeof (OpenIDSel), "OpenIDSelector.Providers.htm"); var fi = new FileInfo(providersURL); // <- exception here //the remaining code is to possibly render the file }
I have an ASP.NET page where I call this.DataBind() to bind the controls. I also have various user controls embedded. One has a drop down list, the bind statement gets called for it 2x but the sender the first time is not the drop down list.
Am I using the databind incorrectly? I use databind to get the properties of my page bound to a datasource so that I can use those properties in the declarative code.
In my DropDownList, I added if (sender == dropDownList) which solved the problem
Id like for people only to access the content via default.aspx and not the dynamically generated content generateimage.aspx. Any attempt to browse here directly should be redirected to an error page
I have this .aspx page in my Visual Studio 2008 web project solution, with a media player control and a button which invokes it and starts playing a file:
[code]
line is added to the .aspx page. When the page is now loaded, and the button from before that used to work gets clicked, i get a Javascript error saying that 'Player' is not defined.
Under Visual Studio 2010, I'm developing an asp.net application. I added a folder to my project called Flash. Under Flash folder I added a swf file with its external resources to run.
The folder content: 1- ScrollingImages.swf file to lunch the flash 2- ScrollingImages.xml file that the swf file uses to read images from thumbnails folder 3-thumbnails folder which content images used by swf file. I can embed the swf file to html easily using this code:
[Code]....
But when I use the same code to embed it to asp.net page I will have a problem that the flash will run but I cannot see the images so the swf file unable to locate the xml file and the folder of the images location and they all in the same folder.Here is the code I used in the aspx.net content page.
[Code]....
I also tested it in aspx.net page and I'm getting same result no images appear. I know that the problem is related to who to embed the swf external resources (the xml file and the images folder) to the aspx.net page but I searched a lot and I could solve it.
Firstly, "Modifying" may be the wrong term, I see a few people have posted online just asking whether they can actually modify an embedded resource. What I am wanting to to, is use a resource in my assembly as a kind of template which I would do a find and replace on before registering it on the page - is this possible?
For example; say I have a few lines of jQuery as an embedded resource in my assembly and in this script I am referencing a CSS class name that can be set by the front-end programmer. Since I do not know what the CSS class will be until implementation, is there a way of going through the embedded resource and replacing, say, $myclass$ with ThisClassName.
Got a windows forms user control dll embedded in an asp page using the html form control object tag as it needs to run client side. The windows form control does something and then needs to redirect to a another aspx page passing a parameter obtained from a calculation in the windows form contro dll. Is the redirect possible from the windows form control (same session id needs to be used) since obviously you can't call response.redirect since its not part of the server side wep page.
I am having an issue where if I click on the print icon in the report viewer embedded in an application, I get the error "unable to load client print control". However, when running through report manager, this is fine. I am running SQL Server 2005 SP3 and report viewer 9.
When I run this page and click on the image I get an "Object Expected" error.However, if I place the test function into my Default.js external file it will function perfectly.
I am creating a custom server control, and I am wanting to include a JavaScript file in the dll file when the control is built. I have tried suggestions from the following websites:[URL] But after following the directions, If I use firebug to see what errors show up, the JavaScript functions that are being called all say "goNext is not defined" which leads me to believe the JavaScript file is not being added correctly.
Some information on what my control looks like
I have the JavaScript File in a folder called Script. The namespace of the project is CustomControl, and the Name of the project is MaskedDateTextbox.
From here:http://heanet.dl.sourceforge.net/project/teamlab/TeamLabinstall_EN.pdf
For a mid-size portal it will be sufficient to deploy it in its default configuration:
DB : SQLite3 Web Server : ASC embedded web server.
Suppose you'll need to deploy the portal on a computer named srv003 to the following folder: c:eamlab.(these are just example names,so when performing the operation please use
It is possible to embed an XBAP application into an IFrame, this is rather easy !!The problem however is that it renders on top of anything within the web application. For example!I have a menu in my web application which can collapse when I hover above it, but it will collapse UNDER the IFrame when it needs to collapse ON TOP of the IFrame with the XBAP Application in it. I tried messing with the z-index but this does not fix anything
Every few days when my webpage is accessed strange characters are embedded in the URL like this:[URL] I did some searches on the internet and found that if the characters begin with the letter 'S', it is the session id used when cookieless is set to true. In my case the beginning letter is 'A', and i couldn't find anything about that. This is bad because once these strange characters appear, all the submenus in my page will disappear (I had another post about his menu problem in here:[URL]
Once I restart the webpage in IIS the URL will become normal again, but it will appear again in a few days. Does anyone know what these strange characters (that begin with 'A') are? How to avoid them?
I have a class library. In one of the classes, I am adding a script reference on the page like this:
protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); if (this.Page != null) { ScriptManager sm = ScriptManager.GetCurrent(this.Page); ServiceReference reference = new ServiceReference("~/Admin/Services/ContactsService.asmx"); reference.InlineScript = true; sm.Services.Add(reference); } }
For the ServiceReference file path, is there a way to add an embedded file instead? I want to keep everything self-contained in my class library instead of dropping a file into the website folder.