asp.net

How do I resolve "Type or namespace could not be found" compilation error?

I'm concerned that the web hosting that I'm paying for is not configured correctly. ASP.NET Web Sites which compile and run correctly on my local machine don't work once they're deployed. The issue I'm dealing with is a compilation error: CS0246, "Type or namespace could not be found (Are you missing a 'using' directive or assembly ref...

How can I allow a user to assign different site functions to different roles in an asp.net role provider?

I am debating on whether or not to write my own authentication class. It's almost done but I think it could be better to use a role provider (either custom or the default.) I know you can assign users to roles, and then display info to the user based upon the current role. But what if you want to assign permission based upon a task? For ...

Which express edition to use for ASP.NET web apps in C#?

Which Express edition is best suitable for starting ASP.NET web applications in C#? I imagine Visual Web Developer Express is designed for this, but what about Visual C# Express? ...

Uses for MachineKey in ASP.NET

What different ways are Machine Keys useful in asp.net? I think the following are correct but thought there may be more. Multiple applications can use the same cookie Multiple servers can work with the same viewstate ...

Appropriate VS Project for Multiple .Net Sites

Here's what I'm working with: Several websites Classes/data shared between them (registration systems on individual sites, and management on a central site) A workflow application that runs nightly. I need to be able to cleanly and easily share the classes between the websites and workflow component. I know this is textbook 'DLL!', ...

Need help in 3 tier entity class object code

Hello all, I am trying to access entity class but getting the error message "No overload method for CreateDoctor takse 3 argument" Here is my code please modify somebody.. DoctorProperty class: public class DoctorProperty //class for doctor table { int _Id; string _Name; string _Address; int _Phone; public int Id ...

Url Rewriting with IIS 6/7 - Rewriting Host Name {HTTP_HOST}

Hi, I need to rewrite the "Host Name" {HTTP_HOST} for an incoming request. Is it possible to do this using IIS 7 Rewrite Module? I want to rewrite http://abc.xyz.com/* to http://xyz.com/sites/abc/*. This is being done for a SharePoint site which uses the {HTTP_HOST} internally. Are there any Url Rewriters out there which let me change ...

Oracle client x32 and x64 coexistence

My client have an x64 server where he installed both x32 and x64 versions of Oracle Client. After he installed my web application and tried to run it he got "An attempt was made to load the program with an incorrect format (HRESULT 0x8007000B)" exception about Oracle.DataAccess.dll His IIS configured to 64 bit. I event asked him to ad...

detecting asp.net redirecting users to login page

i have a directory in my website that is protected from anonymous users. my web.config looks like this <location path="members"> <system.web> <authorization> <allow roles="members" /> <deny users="*" /> </authorization> </system.web> </location> if anonymous users try to access pages in the "/members" directory they will b...

ASP.net: What type of application/website is more suitable to Webform or MVC?

I have read all the post regarding the pro and con of ASP.net webform vs mvc. However, I'm wondering under what circumstance does one use webform or mvc? would it come down to what you or your team is more familiar with? ...

redirect to another URL issue in ASP.Net

Hello everyone, I have two web applications and sometimes I need user to jump from one application to another. Since they are two web applications and may reside on different domains/machines, I can not share session between them. The technical challenge for me is how to pass session information (I only need to pass userID string infor...

problem with asp.net gridview

Hello all, I have problem with gridview deleting.I have table name Doctor with Id,Name,Address,Phone.Id is auto generated field.After adding data when i am displaying in gridview then if delete any id from gridview Again then if i add any new details from the form its starting from the new number.I mean if i delete the last id no 5 then ...

List of HTML Helpers you use

I have found Html Helpers extremely useful to simplify view pages code. Apart from the ones included in the latest release of Asp.Net Mvc which one do you use? How much you can reuse them in different projects and are they linked only to html generation or did you put some custom logic inside? ...

Transfer variable between asp pages by web request

can any one explain how to transfer a variable between asp pages by web request. Web request means post method and also suggest a best method in asp for transfering variable between the asp.net pages ...

ASP.NET & AJAX threading

Referencing this question: http://stackoverflow.com/questions/435492/is-asp-net-multithreaded-how-does-it-execute-requests, would this be a correct interpretation of threading: ASP.NET has one worker process per application instance. It is multi-threaded, using its own application pool. The majority of threads are used for servicing...

ASP.NET Additional Partial Classes

I have a huge code behind file for one of my ASP.NET pages. It would be easier to maintain the code if I could break it up into multiple partial classes. However this is not well documented for ASP.NET. I've learned that the additional partial classes must be moved into the App_Code folder. It seems that I need to use Protected WithEve...

ASP.Net Entity Framework

I'm just trying the ASP.Net Entity framework its the first time I've tried to use an ORM framework so bear with me If I'm barking up the wrong tree. To simplify the problem I've got the following 2 tables Calendar CalendarID UserID Date EventName Users UserId Username I've added them both to my Entity Framework model and its establ...

asp.net custom control rendering outside of form tag

I am having an issue with a custom control rendering its contents (child controls) outside of the tag which leads to runtime errors and issues. In an attempt to simplify things as much as I can, I created the control below but it has the very same issue. I have tried inheriting from Control, WebControl and CompositeControl all resulting...

How to speed up Google adsense and analytics loading time?

This might fall under the category of "you can't", but I thought it might be prudent to at least see if there is something I can do about this. According to FireBug, the major bottleneck in my page loading times seems to be a gap between the loading of the html and the loading of Google adsense and analytics. Notice in the screenshot b...

asp.net textbox onley remembers initial value

Hi, In my Page_Load I set the text equal to a value e.g. txtNote.text="note text ex" If I change that text on my actual form to something else, then try to write my new value to a db ... the textNote.text is still "note text ex" what it was set to in the Page_Load...not what I changed it to on the form....can this be changed? Thanks, ...