asp.net

Basics for creating a Wiki-like web application?

Hi folks, I need to implement wiki-like functionality within a website. Problem is that I am not fully aware of what it might require and therefore predict a long set of refactoring till I actually nail a good version. I tried looking for some guidelines, but haven't found much. Any ideas? Help would be wonderful ...

ASP.net webforms parameters in url

I have an asp.net page that contain a form that search the page. Is there any solution so that I can have the search text in the url? I want to give the posibility to my clients to copy/paste the search results url. ...

Why does my ASP.Net site running under IIS7 take so long to load after a period of inactivity?

An ASP.NET webpage will take maybe 10 seconds or so the first time the page is loaded, which is understandable since stuff is getting JIT'ed and app domains being loaded, etc. The next requests take only half a second or so. However, if no one hits the site for a few hours, the first request after such a period of inactivity will take ...

.skin vs .css from asp.net

What is the main difference between .skin and .css in asp.net? .skin is new enhancement of IDE. I have been working with .css. What is available in .skin that is not to .css thanks, saj ...

ASP.NET How to determine if authenticated user can access a page or directory?

I need to check if an authenticated user is authorized to access a directory. I have done this before with a base class library method, I just cannot remember what class it's part of or what it's name was. I think the method was a static method and the class may have had the word Utility in it's name, but I just can't remember or find ...

How much do you let Sitecore (or other CMSs) manage?

I have been wondering how much content you should typically allow a CMS to manage, in particular reference to user-generated content. I am thinking specifically of Sitecore, since I have an upcoming project that will be written with it, but this could apply to any CMS really. Say you had a typical e-commerce site, with products for sale...

Filtering GridView with AJAX (ASP.NET/C#)

Hi all, I'm looking to allow users to filter a GridView (with its contents coming from a datasource) by typing in text, and the GridView should refresh without a postback to display only rows where a certain column matches the text. I think I know to do this by causing a postback, thus a reselect from the datasource, but is there an AJA...

WCF Service failing every 23 hours with "The request channel timed out while waiting for a reply after 00:01:00"

Hi guys. We have a WCF service self-hosted in a Windows Service. Right now we're experiencing a really strange behavior with it, which is that every 23 hours, approximately, the service raises an exception for every call made to it with the following error: Server was unable to process request. ---> The request channel timed out whil...

ItemCommand not firing on first click in Repeater or GridView

This has been driving me crazy for 2 days now - hope someone has seen this before. I have this issue where the first click of a control within a repeater or grid view fails to fire the ItemCommand event, all subsequent clicks work. The controls are being loaded into a placeholder on Base.aspx like so private void LoadUserControl() ...

ASP.NET master page logo renders last and takes a while to load

My asp.net web app uses a master page which contains an 8k jpg of the company logo. Whenever I load a page or do a refresh, all of the non-master page html renders first, then the master page logo is shown, pushing all the html down a few lines. It's very annoying. Is there anything I can do to prevent that from happening? ...

Page cannot be null

I am using a ScriptManager in my aspx page and when I run on the submit button within the page I am receiving a "Page cannot be null" error message. I have looked around but cannot find anything that deals with this. I am writing in C# using VS2008 with the latest .NET framework, and the ScriptManager is for two Infragistics controls f...

create user wizard causes error on sharepoint site

I've built a new sharepoint site page using the example I found here: http://blogs.msdn.com/b/kaevans/archive/2010/06/28/creating-a-sharepoint-site-page-with-code-behind-using-visual-studio-2010.aspx The purpose of the page is to add a new user to the aspnet membership database that serves as the authentication provider for my sharepoin...

linkbutton oncommand issue

I am using 2 linkbuttons inside seperate dataitem server controls on my asp.net web page <asp:LinkButton ID="Item1" runat="server" CommandName="first" OnCommand="Item1_Onclick" CommandArgument="<%# Container.DataItem %`>" Text="<%# Container.DataItem %`>" > </asp:LinkButton`> and <asp:LinkButton ID="Item2" runa...

Can I use SharePoint to authenticate users on a separately hosted website?

The behaviour I would like is for a user to be able to visit a custom built website and if they are already authenticated against sharepoint for the custom website to know who they are and give them various rights. If they are not recognised by sharepoint then I would like them to login to sharepoint and be directed back to the custom we...

error when adding a control to a user control

I'm trying to add a control in within a user control: LinkButton l = new LinkButton(); l.Text = "Test"; l.OnClientClick = "TestClick"; l.ID = "TestID"; l.Page = Page; Page.Controls.Add(l); I get this error when the page loads: An unhandled exception was generated during the execution...

Viewstate lost on postback for .net Sitecore page

Hello, I'm getting some strange behaviour with viewstate being lost on postback for a .net application using Sitecore. I'm assuming it might be some config variable somewhere but I'm new to Sitecore and don't really know where to start looking. UPDATE: Sitecore has now gotten back to us with an answer. We had recently added the dtSea...

jQuery Form Problem

Hello. I have developed a form using jQuery, HTML and a C# and ASPX back-end. It works fine on Firefox and other Web browsers but if fails on Internet Explorer and don't know why. I have tryied everything. The URL is Web Form Any ideas?? Thanks!! ...

Update ASp.net gridvidew without postback without update panel!

Hi. Is there any solution to update asp.net gridview without postback and withput update panel? or update partial page without update panel? for example with jquery. thanks ...

Is there a way to examine WebResponse without affecting the underlying response stream in .NET?

After a call to initial HttpWebResponse.GetResponseStream() and reading through the stream, that stream is done for and cannot be reused. I have a situation where I need to examine the content of the response and if it is of a certain data, get another page and then pass the new response down the line. Otherwise, pass down the original...

OnClick callback thinks it's a javascript function?

I'm trying to use the OnClick callback to call a C# function, however javascript throws an error saying the function is undefined (even though it is in the C# code). This only happens if I add the control via Controls.Add in the page_load of the C# call behind section. In other words if I do this (in the Page_Load function): L...