asp.net

Add New Row to GridView without DataBind

Hello all, I have a GridView that allows editing the values in every column, in every row, all the time. The user enters in all their changes, clicks Save once and all changes are commited. The user must also be able to click the New button, have a new row appear in the GridView (yep, it has to show up in the actual GridView), enter w...

Best "process" to change over plain HTML pages to ASP .NET aspx pages?

I have some pages on my site that are plain HTML pages, but I want to add some ASP .NET type functionality to these pages. My concern is that if I simple rename the .html page to .aspx that I will break links, and lose SEO, and so on. I would think there is a "best practice" for how to handle this situation. ...

Any way to use ASP.NET AJAX when my server does not and can not have the ASP.NET AJAX extensions Installed?

Title says it all, but I have a server with .Net 2.0 sp1 installed and have no ability to install the AJAX extensions on the server. Is there anyway I could work around this to incorporate ASP.NET AJAX functionality? ...

How to ignore route in asp.net forms url routing

I am using the .NET 3.5 SP1 framework and I've implemented URL routing in my application. I was getting javascript errors: Error: ASP.NET Ajax client-side framework failed to load. Resource interpreted as script but transferred with MIME type text/html. ReferenceError: Can't find variable: Sys Which I believe is because my routing is...

Should I support 'mysite.com' and 'www.mysite.com'? OpenID Problems?

I implemented OpenID support for an ASP.Net 2.0 web application and everything seems to be working fine on my local machine. I am using DotNetOpenId library. Before I redirect to the third party website I store the orginal OpenID in the session to use when the user is authenticated (standard practice I believe). However I have a habit ...

How can I create an activeX in C# control and reference it in a ASP.NET site?

How do I make an activeX control in a C# library project and then reference it in another ASP.NET wet site project? ...

Best practices for control permissions?

Hey all, I need some advice on this... We have certain permissions setup in the database for certain levels of control a user can have over the application. Disabled, ReadOnly and Edit. My question is: Are there more generic/better ways to handle permissions applied to a form element on the page than writing a security method/check pe...

ASP.NET 2.0 Asynchronous User Control Not Working

I'm trying to get a user control working asynchronously, yet no matter what I do it continues to work synchronously. I've stripped it down to its bare minimum as a test web application. This would be the user control: <%@ Control Language="C#" %> <script runat="server"> SqlConnection m_oConnection; SqlCommand m_oCommand; ...

Tips from ASP.NET MVC and lessons for ASP.NET WebForms developers

What are some helpful things that ASP.NET MVC developers could suggest that would help us ASP.NET WebForms developers to write better code/web apps? I'm a WebForms guy but with all the new hype around MVC I'd value some comments on helpful tips, tricks and strategies that might be able to be used in a webforms app. ...

designing a distributed (over many servers) error logging feature, WCF or ?

Hi, I am designing a error logging feature so our servers (each donig different things) can have a central data store for logging errors. Would it be a good idea to have the various applications writing to the error log file using a WCF service, or is that a bad idea? they can do it just by ADO.NET to the database, which I think is th...

How can I share a session across multiple subdomains?

I have an application where, in the course of using the application, a user might click from virginia.usa.com to newyork.usa.com Since I'd rather not create a new session each time a user crosses from one subdomain to another, what's a good way to share session info across multiple subdomains? ...

How to trace a ASP.NET Security Exception

How can I figure out what is actually causing the following error? The page is the same as other pages but for some reason only this page is having this error. It also only happens on the ISP (GoDaddy) who has a trust level of Medium and I can't set a breakpoint and try to catch it. Server Error in '/' Application. Security Exception D...

Design Modular Web Wizards using .Net 2.0 Wizard Control

We have a bunch of different applications that basically do the same thing written using the Wizard Control for .Net 2.0. At this point there are roughly 10 or so of those applications. The steps are pretty simple: User selects option from a drop downs -> Next page has more options more narrowed -> User sees confirmation page -> Rep...

Encoding Mess!! ASP.net,WCF,Linq-SQL..phew!

Hi Guys, I have been pushing to finish off this project since 1 week and have been stuck with one problem that god knows how I missed. We have a sql server database that has 2 tables (of concern here). Table 1 (id,langCode,englishText,translatedTextInUnicode{nvarchar(MAX)}) Table 2 (id,langCode,englishText,translatedTextInUtf-8{...

How to create conditional content within a databound Repeater

Hi All, I'm setting up a User Control driven by a XML configuration. It is easier to explain by example. Take a look at the following configuration snippet: <node> <text lbl="Text:"/> <checkbox lbl="Check me:" checked="true"/> </node> What I'm trying to achieve to translate that snippet into a single text box and a checkbox contr...

Ajax dropdown limit to list

pretty much what the title says. I am using an Ajax Drop Down as illustrated here: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/DropDown/DropDown.aspx using linkbuttons ... is there a way to limit to list? Thank you. Edit: I think it was VB 6 maybe that you could select "LimitToList" in a drop down. Meaning the user can only...

Authentication system for ASP.NET web applications?

Hi! I have some question: How to make a role based web application? Such as in forum sites, there is many user types, admin, moderator etc... is the roles of these user types stored in database or web.config? And when a user login to our site, how to control this users roles? In short I want to learn about authorization and authenticati...

How to publish our Webservices

I have created an web service I need to publish this service. I need to host and authenticated users need to access my services using ASP.net 2.0 ...

Best way to learn Ext JS for use with ASP.NET?

I have very basic knowledge of Javascript and now I am looking forward to learn Ext JS and implement in in my ASP.NET application. If anyone can guide me on how to start and which book I should follow, I'd be thankful. ...

ASP.NET [HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]

I am getting the following error while loading a page. [HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.] No idea what to do ? Can anyone help me ? ...