asp.net

Error: Could not download silverlight application. Check web server settings

Developing a silverlight page in already existing web application for previewing video files. When I create a asp.net application locally and add silverlight application on the solution it works perfectly. But while I am trying to include into already existing project it throws this error. I have not deployed into the IIS. this happens w...

How to call the event of usercontrol in page of aspx.

I have created the usercontrol. There is event : public event System.EventHandler MemberSelectionChanged; I have called this event in aspx page like this(given below). It working fine. Is there any other way to call the user control event in aspx page. this.ucMemberList.MemberSelectionChanged += new EventHandler(MemberList_MemberSe...

Customize ValidationSummary

Hi, I found this question Customize ValidationSummary in ASP.NET MVC 2. I want to create something like this in ASP.NET. What is the right Property or Method to override in ValidationSummary class when the error summary displays? I'm doing something like public class CustomValidationSummary : ValidationSummary { // What metho...

how to access .skin file from aspx page.

Hi all i have a .skin file inside my app.themes folder. To access .css file from asp page we have to give link. but i couldn't find any thing on asp header to give link for .skin file.. i got the following error.. A SkinID has been specified but the page is not configured to use a page theme or stylesheet theme. This is acceptab...

In MS Exchange 2003, how do I find out which user deleted an item in a shared calendar?

We have multiple AD users sharing a calendar in MS Exchange 2003. All have read/write access to the calendar. If a calendar appiintment gets deleted, I need to know if there is a way of finding out who deleted it? Any help would be greatly appreciated. Thanks ...

Set image size in powerpoint using open xml

Hi Im am generating a ppt-file using this tutorial here Step 4 describes how to swap out the image placeholder. My images has different dimensions, which makes some images look a little bit too funny. Is there any way to resize the placeholder so it can keep the dimensions? Thanks/ Edit: Ok, a better explanation: users can upload im...

Content Page and Master Page events

Hi guys, I have had this problem for a while now and no matter what i cannot seem to resolve it. I have a master page and a content page. The content page simply contains a button <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <asp:Conten...

Don't want ASP.net escape my string from database

I have a field with product name abc&reg; product1 If I get the data from the database and databind it to the dropdownlist. It becomes <option value="2">abc &amp;reg; product1</option> I don't want ASP.net to escape the &reg; to %amp;reg. What should I do? ...

How to use System.Web.UI.Page.DecryptString(String s) ?

Hi all, I saw with Reflector a very interesting method in System.Web.UI.Page : DecryptString(String s). But it is a "internal static method", so how can I use it ? (I dont find it in msdn doc) Thanks a lot ! ...

Debugging the Javascript in my asp.net website

Hi, My webpage contains : I did a break points on the Tools.JS , but while debugging I didn't found my JS in Script Documents (Run Time mode) , and i remarked the exclamation message on my BP saying that this break point willn't be take in mind cause the JS document i...

How can I change a cookie value from a WebMethod ?

Hi, I have this: [WebMethod] public static void SetTheme(string theme) { Guid studentIdentifier = SessionData.LoggedInUser.Identifier; Student student = (Student)ItemFactory.GetItem(studentIdentifier); student.Theme = theme; } And I want to change the cookie that is also named "theme", at the end of this WebMethod. Ho...

Migrate website / application from IE6 to IE7 / IE8

At the moment I have to migrate a web-application (ASP.NET 2.0 with Masterpages) from IE6 to IE7/IE8. Where can I find hints and guidelines for this topic? The webapplication looks fine in IE6 but completely awful in IE7 and IE8. In IE8 I cannot see the compatibility button. ...

asp controls acting strange

Hi! Im making a site on wich i need to make a search. So i made it like this (check picture) as you can see the asp dropdown lists arent in line with the div (blue box) and they have no css on them... All this happens in FF, in internet explorer the textbox is lowered and the dropdowns are at the correct height... What could be wrong? h...

Split DetailsView Dynamically in asp.net

Hi, I Want to split a detailsview in runtime;for example when its number of rows are more than 10.my detailsview's row dynamically make in runtime so detailsview have not any fields in definition in asp page(such as template fields and etc). I googled it and I guess I have to change render method of detailsview but I don't know how to do...

Alternative for static method in interface - enforce implementing class-level methods in asp.net custom controls

I have a hierarchy in my website project as below: [CustomControl1 - folder] - CustomControl1.ascx - CustomControl1.css - CustomControl1.js I load css and js files dynamicaly based on which controls are used on particular page. I am doing it by using following code: protected void Page_Load(object sender, EventArgs e) { CustomCon...

Setting LinkButton's OnClick event to method in codebehind

I'm constructing a LinkButton from my codebehind, and I need to assign the onclick to a method, and pass a parameter with it too. I have this so far: LinkButton lnkdel = new LinkButton(); lnkdel.Text = "Delete"; The method I want to pass it to looks like this: protected void delline(string id) { } ...

Changing MS SQL Collation To Store Different Types Of Characters

Hi everyone, I am working on a website where the content has to be displayed in English, Polish, Slovak and Czech. Currently, everytime a special character used in the non-english languages (such as Á or â), it displays as just a normal A or a. I've traced the problem down to the database. Currently the collation is "Latin1_General_CI_A...

how to change mouse pointer on mouseover a division to hand?

how can i change the default arrow pointer style to hand when client move the pointer to a particular division? ...

ASP.net login control design

I've tried looking for this but can't find anything: <asp:Login id="Login1" runat="server" TitleText="" CreateUserText="<br />Register a new account" CreateUserUrl="register.aspx" PasswordRecoveryText = "Forgotten password?" PasswordRecoveryUrl="getPass.aspx" UserNameLabelText="User...

How to automatically remove unused (expired) items from session?

I need functionality that will allow to discard objects from session if they are not used in specified amount of time. It is simmilar to Cache timeout functionality. Is there any session provider (possibly free) or pattern that achives that? ...