I’m trying to do dynamic switching of the master page in SharePoint 2007 publishing site.
I’m following this example which uses a HTTP Module
http://ranaictiu-technicalblog.blogspot.com/2009/10/sharepoint-dynamically-change-master.html
Here is my code
public class SwitchMasterPage : IHttpModule
{
public void Dispose()
{
...
I've written a small ASP.NET 3.5 application to allow users to update selected account attributes on their own.
Everything works fine when I use Basic Authentication, but because the dialog that is presented is less than ideal, I'd like to use forms authentication to give the users more instruction on how to log in.
My problem is that ...
Hi,
I am trying to create a zip file and save it using DotNetZip library.
But for some reason i get a "Access to the path is denied" error when i try to save it. Code4 is below
Dim zipFile As New ZipFile()
zipFile.CompressionLevel = Ionic.Zlib.CompressionLevel.BestCompression
zipFile.AddFile(filePath)
Dim tempFilePath As String = "abc...
I have created a HttpHandler to be used with SWFUpload to upload images to the server. This upload is done in an administration backend so users need to be authenticated to upload images.
Initially I made the whole administration area deny annonymous users but because of the way SWFUpload appears to work it wouldn't work correctly with...
This is a followup question to the one here
Here's briefly what I am trying to do. The File server creates a text file to indicate an end of the process. On a webpage on the Web Server, I loop every x seconds and make an ajax request to find out if the test file exists (ajax request to http://fileserver/files/UserFile.txt)
I've tried t...
I have an ASP.NET 4.0 application with some simple user controls. The user controls work fine on the design surface (VS.NET 2010), but when they're loaded during application execution, nothing shows up.
Futhermore, the various child controls of the user controls are null when referenced inside the code behind for the user control.
The ...
I am working on a portal where the homepage has multiple webparts on the page. Each can be minimized & restored.
The issue here is, once any one of the webparts are minimized and if user clicks on another webpart to minimize that one, the first webpart is now automatically restored. Also, if you navigate to another page and come back,...
I have an Asp.Net Ajax autocomplete TextBox.
I wont to add a prefix to test in text box before them posted to the server.
Any ideas?
...
Hello,
I have ObjectDataSource and GridView on one of the pages of my asp.net web project.
To initialize ObjectDataSource i use Init event:
protected void ObjectDataSource1_Init(object sender, EventArgs e)
{
ObjectDataSource1.EnablePaging = true;
ObjectDataSource1.TypeName = "CustomerDataSource";
...
Hi,
In my site, I have used IIS7's URL rewrite module to redirect URLs like http://mysite.com/File.aspx?Name=SomeName into http://mysite.com/SomeName.
It appears that IIS7 has created a corresponding rule check, so that any URL of the sort http://mysite.com/SomeURL is redirected to File.aspx. This is fine in most cases, when the URL is...
can i have some general advice on converting a classic asp site to asp.net? i've never worked with classic asp before and have only worked with asp.net 2.0 for the past 6 months or so, so this is completely new to me.
i noticed that this site i'm wokring on uses a few 'include' files. i know i should probably take the code from the incl...
In regards to my this question, I got this following answer to add this to the web config file. And it also resolved the issue i was facing. But now my question is that is there any kind of security threat? if yes, how severe it could be? what kind of threat it could be? Do you suggest something else here.
<configuration>
<system.we...
I'm looking for some component (preferably freeware) what will provide me the ability to take an image of the USA and have a user click a state. The image of the state will then display, giving the ability to click either a region, or a county, and drill down further. A user would then be able to select one or more counties. I'm also t...
I'd like to use the jquery calendar control to populate a date into an asp.net textbox.
When the user selects a date I want the date populated in the textbox to be only Saturday dates. So if the day they select is not a Saturday I want the date of the next Saturday after the date the selected.
How can this be done?
...
What is the correct way to pick up a querystring variable that is passed to the page that the Silverlight Control is being hosted on?
...
Using .net 4.0 , IIS 7.4 Windows Server 2008 R2
I have an asp.net application that sits between WCF web services and routes the requests according to some rules.
The iis error page setting is set to 'Detailed errors for local requests and custom ....'
the asp.net routing service calls the WCF service using HttWebRequest object.
I am ...
Hi all,
Trying to set up the Login control as a User control, but none of the controls exist in the current context? I also tried adding to a master page with the same error showing up.
None of my code below is recognised? What's going on here please? I've rebuilt the solution many times.
if (Membership.ValidateUser(this.UserName.Text...
I have a web server running IIS 6 which has .NET 2,3.5, and 4 installed. Everytime I install a .NET 4.0 web appication the ASP IIS Registration tool is ran which is clearing out some important registry entries for EnableExtionlessUrls. We have reinstall the .NET 4.0 framework but are still having the same problem. Has anyone else expe...
Hi I want to insert flash object in my Asp.net page.I just googled it but found results to create specific object in the page script.Is there any additional UI component available with Simple Drag and drop interface for flash file.
...
We are experiencing some strange behaviour on one of our ASP.NET web servers (Windows 2003 64-bit). After some activity, two third-party controls are unable to run correctly. One is log4net (it does not write error messages out) and the other is a menu control (it displays eval message instead of picking up its license). The one commo...