asp.net

xml-like properties in a user control declaration

Hello I've created a user control that takes content from an XML file and renders the content on the page. Fairly straight-forward stuff. However it's come up that I may need to replace portions of the content based on id with other manual content. My idea is to expose a repeatable property within the user control's declaration like t...

Freeze GridView Header in ASP.NET ?

I have gridview with 15 and above columns, I need to freeze the header of the gridview using the following css : .container { overflow: auto; } /* Keep the header cells positioned as we scroll */ .container table th { position: relative; } /* For alignment...

How to fix HTML from WCF-webservice in AJAX Client Side-templates

I have a problem with my templates, when I return HTML, it's encoded by default, and I cannot find a way to "fix" it. I want to replace NewLines (\u000a) with a straight <br />, but I always end up with &amp;lt;br&amp;gt; I've tried to fix it with this function: function cleanNewLines(text) { return $("<div>" + text.replace(/\u000a...

Async postback doesn't cause document.ready to be executed

I've had to implement some changes to a user control that's used in a couple of pages. The user control contains some JQuery to handle a paging task (displays 3 months of data and hides 9 at a time). When the control is loaded, it will automatically display the current quarter and executes this code in $(document).ready(). The problem ...

Sign into website with Gmail account-Dotnetopenauth

Hello guys, I'm trying to test a simple asp.net app using DotNetOpenAuth DLL. Does anyone has a simple code example code,link? Best Regards, ...

Pass through XML from another website

I am trying to pass through some XML from an external website. What is the best way of doing this, through c# webpage or asp.MVC? ...

Custom Role Provider not working

Hi there I've set up a very basic custom role provider from my ASP.net application. This doesnt seem to be working as the "GetRolesForUser" method is never being called when a page is requested that should be protected. Class: public class SimpleRoleProvider : RoleProvider { public override string[] GetRolesForUser(string userna...

Include url inside url

I want to use the following format of my url: http://localhost/{url}/{options}/{hash} But since the url will be very strange with a url inside a url, how would I encode that? I was thinking of encoding it in hex, since url encoding in .net gave me some strange result that didn't work inside a url. But I don't really know what would ...

How to add a ComboBox to an asp.net unbound GridView

I wonder how I can add a ComboBox column to an unbound GridView through code at runtime. ...

Asp.net beginner ques: Need help regarding using some class library

my code: protected void Page_Load(object sender, EventArgs e) { String userHost = Request.UserHostName } this is fetching the IP address alright but now I want to know the country of the visitor and USE that country name to redirect the visitor to some webpage accordingly I came across this lib but have no clue h...

In Sync Framework serverProxy.GetScopeDescription() fails during running the WebSharingAppDemo-CEProviderEndToEnd sample

I am running the WebSharingAppDemo-CEProviderEndToEnd saPLE WITH sqlExpress 2005 Beta as server and havin the SQl Express as Client. The Programs runs well till it reaches to SynchronizationHelper.cs class where it checks CheckIfProviderNeedsSchema(remoteProvider as SqlSyncProviderProxy); from there it tries to retrieve the scope descr...

Building a single entry point to a WCF service: need unified approach to return objects and collections

Subject says it all: I'm creating a secure and generic wrapper to access a WCF service transparently. A little background: what I have done is that I've created similar business classes definition both on server and client. The server-side contains the actual logic while the client side contains only method definitions. Additionally, t...

RegisterClientScriptBlock confusion

My master web page contain JS code to override standard alerts with custom jQuery dialog boxes. <script type="text/javascript" language="javascript"> window.alert=function(alertMessage) { $.msgbox(alertMessage, {type: "info"}); } </script> In default.aspx web page onLoad method I am tr...

web.config app.config and connection stringq linq

Hi, I have solution which has webSite and Core projects. In Core I have all model using LINQ. I there use app.Config to set paths to database in connection string used by my model. Then I use this in my website. Now I would like to have possibility that after deploying website on the iis to change that connections strings. Before Lin...

set different pictures according to radio button checked status

hi i want to set different pictures according to radio button checked status. but i don't want to do this programmatic. i want use some how like css or theme look, i want to design an online test , and i used 4 radio button inside a datalist, now i want when user select on of the radiobuttons the picture of it changes automatically. ple...

Asp.net health monitoring all http requests

HI, If I want to have log of all requests made within a web site including any http bad requests, is this possible? For e.g I want to be able to see if every http request from the site including any for images that don't exist etc. All the things an IIS log has. Is this possible with HTTP Module or something like the ASP.net Health monit...

No more Intellisense for ASP tags visual studio 2010

Hi there, I'm not getting intellisense for asp tags anymore in websites or web applications. There is a check mark for the following: Tools->Options->Text Editor->C#->General->Auto list members Tools->Options->Text Editor->C#->General->Parameter information Tools->Options->Text Editor->C#->Intellisense->Show completion list after a c...

Web.config properties become broken while using WebDeploy and Config Transforms on IIS 7.5

I'm developing an ASP.net application on my local IIS, where it works fine. I've set up a Windows 2008 Web Server R2 as a virtual machine in my network, installed the .net framework, all IIS features (server version do match) etc. My apps run fine except for this issue: I have several Settings that are created by the Settings Property o...

MVC 2 Validation and Summaries

Hi, I am starting on MVC 2, and I was wondering how the validation summaries work? I thought that it would something similar to the ASP.NET web forms validation summary control. First of all, I am doing simple validation, which of these .js files are required? <script src="<%= Url.Content("~/Scripts/MicrosoftAjax.js") %>" type="text/...

How long will c# & asp.net 2 be supported?

I've just been asked what are Microsoft's committments in terms of supporting the .net framework we use in some of our systems. Specifically c# 2 and asp.net 2, can anyone point me to a document with this information available. (If it included 3.5 that would be useful.) ...