asp.net

Is ASP.NET MVC 1.0 Futures beta/preview code?

I understand that the "1.0" in "ASP.NET MVC 1.0 Futures" means that it is the ASP.NET MVC Futures built against the ASP.NET MVC 1.0 RTW (final/release to web). What I'd like to know is whether the Futures code is solid enough to treat as 1.0 / gold quality? We're about to jump into ASP.NET MVC for the first time and it came up that we s...

The best way to build Dynamic LINQ query.

Hi I am looking for best method for writing Dynamic LINQ query. I have a function like public IQueryable<Student> FindByAllStudents(int? id, string Name, int? CourseID, bool? IsActive) // like this way, all field values are passed { // code for compairision return db.Student; } we can also write db.Student...

What's the difference between ASP.NET DynamicData and IronSpeed?

Will the new commer (DynamicData) relplace the old one (IronSpeed)? They seem to have overlap functionality? ...

Why doesn’t url rewrite work in server

In asp.net 3.5, I'm rewriting the url http://www.dotoobeta/blogs/1108 to the following http://www.dotoobeta/blogs/blogs.aspx i am using UrlRewritingNet.UrlRewriter.dll and it work s fine in local but not work in server. i alrwdy confiuguation iis setting in server also. what is the solution pls tell me . premjit premjeet.m...

ASP.NET Doubts

How can I add two Web User Controls in the same aspx page dynamically? When I try to do that I get the following error Unable to cast object of type 'ASP.webusercontroladult_ascx' to type 'WebUserControl'. I am able to add 1 Web User control dynamically as for (int i = 0; i < 2; i++) { Control uc = (WebUserControl)Page.LoadContro...

IIS 6: Enabling Virtual Paths

Hi, I've developed a simple file browsing HTTP module which uses virtual paths (i.e. paths that do not actually exist on the disk). The app. runs fine on my IIS 7, but on Win 2003 the IIS does not forward the HTTP requests to my Web. application - instead it just returns "The page cannot be found" to the browser. How do I disable this ...

How to apply Full text search by using LINQ query?

I want full text search facility in my previous question For Example Name can be vikas patel. And we pass Name as 'pat' that it should also give the above record. Tell me aslo about date comparison like without specifying time it would give me all the similar date records. ...

Need help in page authentication

Hi all, I have set my login page with three roles,admin,employee,user.When i am log in as admin its redirecting to Admin/Default.aspx, when login as employee its redirecting to Employee/Default.aspx and when login as User its redirecting to User/Default.aspx, i mean all the functionality of these 3 roles are working fien. And suppose i h...

ASP.NET MVC Controller Action Executing 4 Times Per Request

Has anyone come across something like this before? Basically, I have an action on a controller that merely queries the database via a repository pattern, adds some data to the ViewData then returns the View. But for some reason this action is being called 4 times per request. The whole action itself is only about 10 lines long: public ...

How do I use Silverlight from ASP.NET?

How do I use a XAP file created in Silverlight in my ASP.NET application?? I mean what are all the registration and changes to be done in the pages in order for the Silverlight content to be displayed in my aspx page? ...

How can I get CURRENT USERNAME in membership asp.net 2008

Hello, I use a membership in asp.net 2008. And I build a login system with some rolls ...etc I have a database and tables and the KEY is "username", and now I want to know how can I get a username for the member who logged in ? for example: I logged in as TURKI I want to get the username TURKI really I need for help... thanks, ...

Where I can see a list of references and Web references in a ASP.NET 2.0 Web project

In 1.x, every web project had a references and web references item in the solution explorer that i can expand and remove/add/refresh. They don't have it anymore in 2.x Where did the references go? EDIT: I realized what i have is a website and not a web application project ...

How do I add a textbox dynamically in ASP.NET?

I've a following requirement for my asp.net page: User can add a textbox dynamically on a page A by clicking on link "Add a new category" hyperlink He clicks submit button on page A and gets redirected to page B. When he clicks on page A link from this page, the textboxes that he added should be persisted. Can someone help me with th...

How do I use OpenID in my new ASP.NET website?

I must be stupid, because all the articles I've seen on OpenID in ASP.NET have simply confused me on the issue. I'm pretty sure I understand the concepts involved here, I'm just a little fuzzy on how things look on the back end side of things. So a new user comes to my website and wants to create an account. Here comes the flood of qu...

TreeView with DropdownList

System.Web.UI.WebControls.TreeView shows hierarchical data in an expandable tree view with the possibility to have a checkbox next to each node. I want something similar, but I need to render a DropDownList at each node, so I can have more than two choices (checked or unchecked). Is there a way to do this with a TreeView? Or is there ...

how to set screen privilages & module privilages in asp.net

iam developing project from basic level can any one help in doing this task ...

Which method of re-use is better in this case - ascx or other

I've got an ASP.NET application that shows grades for different kinds of students. Some students have a self-paced course that doesn't include late penalties and quizzes, and others have a standard classroom course that does. So, when displaying a student's grade, I determine which category that student falls in, and then render the gra...

Asp.net, Linq Error: 'int' is a 'type' but is used like a 'variable'

hi everyone i am using asp.net and link to display a set of books from the db. n it gives me an error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0118: 'int'...

ChangePassword on a user object does not lock account if not successful

I have an ASP.Net application (on Win2K) that is using Windows authentication and impersonation. We are using the following code to change password: Dim objDE As DirectoryEntry '... objDE.Invoke("ChangePassword", txtOldPassword, txtNewPassword) This code works great, except it does not lock the account if there were multiple unsucces...

Asp.Net Membership and Roles with Different Application Names

I ran into an interesting glitch (at least a glitch on my part) yesterday when an application I was testing had a different application name specified for the membership and role provider (membership was one, role was diferent one). I'm wondering if anyone knows of a resource that give me more information on the scenario. I then ran a ...