asp.net

Dotnetnuke development environment and deployment.

My company is redesigning our intranet site and decided to go with DotNetNuke as the solution to implement. Now for the past year I've been trying to drive changes here about keeping development, testing, and production environments separate. I also want all changes that are relevant to the site to go into SVN, this includes data that de...

Could not load the assembly 'App_Web_kh7-x3ka'. Make sure that it is compiled before accessing the page.

I am can't seem to figure out what I am doing wrong here. I publish my website to my server and when I try to run it I get the following exception: Could not load the assembly 'App_Web_kh7-x3ka'. Make sure that it is compiled before accessing the page. Has anyone else ever encountered this? ...

Windows Authentication and Network Service account as a db_owner

There is a number of commercial products out there, that give you a windows based installers for configuring your app and the back end SQL Server DB. Typically it will ask if you want to connect to the DB with Windows or SQL Server authentication. Most of them make a recommendation to use Windows Auth and then configure your DB with the ...

Can a ScriptReference be added to Master Page CompositeScript using markup?

I'd like to use the ScriptManager and CompositeScript components in my master page to include site-wide javascript, but add to that list in my "Web Content Form". I'm sure that can be done in the code-behind, but optimally I'd like to do it in markup. Can this sort of thing be done? In: MasterPage.master <asp:ScriptManager ID="ScriptMa...

Is there a recommended, suggested, or conventional structure for .NET and/or ASP.NET projects?

I'm thinking about starting work on a fairly large scale .NET or ASP.NET project (I haven't decided yet, but it is likely that, eventually, it will be accessible from both a desktop application written in .NET as well as an ASP.NET web application). However, I'm not sure if there's a conventional way to structure the project. The projec...

Dyanamically added control not doing postback

I am overriding a Grid, adding some customer features. One of the features is a drop-down to adjust page size. I am extending the grid using a customer server control, which works great for what I've done so far. Now, however I am having a bit of trouble getting the dynamically added control to do a postback. The javascript to initia...

Best way to pass an array from JavaScript to C#?

I need to pass an array from JavaScript to a page method in C#. I have tried using a parameter in the C# method of IList and also a string[] array. Both ways throw an exception "cannot convert an object of type system.string to xxx", where xxx is the parameter type in the C# method. I am passing the object from jQuery as a json object, a...

IsInRole problem

Hi everybody, I'm working for the first time with Forms Authentication, I'm using an example from the web to learn, I included in my web.config <authentication mode="Forms"> <forms name="MYWEBAPP.ASPXAUTH" loginUrl="Login.aspx" protection="All" path="/"/> </authentication> <authorization> <deny users="?"/> </authorization> The...

Browser displaying "Page Not Found" message when error is thrown in an ASP .NET page

When i navigate to an ASP.NET page, the browser displays a "Page Not Found" message. The page exists and is in a virtual directory, I am able to browse it on the IIS on my local development machine. What could be causing this problem on the server? When i replace one of the class libraries that iam using, with an older version it works...

When extending a asp.net web control, at which event should additional web controls be injected?

I'm trying to avoid a composite control or using and ASCX by extending an existing control. However, I'm having trouble with getting the controls added to the inherited control and keep their view-state/post-back integrity. Whenever I add the controls during pre-render, the controls show up, but the post-back throws a viewstate exception...

Redirecting to EXEs with Query String Params and IE6/7

Greetings! I'm scratching my head, wondering why when I do the following: Response.Redirect(@"http://www.example.com/file.exe?id=12345"); Both IE6 and IE7 will download the file as "file" (with no extension), but Firefox, Opera, Google Chrome and Safari have no problems at all downloading the file as "file.exe". Any idea what IE6/7'...

Line Break in TextBox or Html Area

Hi, What is the way of seperating Line-Breaks and Space in MultiLine Textbox or Html Text are while inserting database(Asp.Net).Forexample what should i do if i want to insert Hello World to database with line breaks?And Also While displaying what should i do too?i dont want to use Editor for it. Thanks for ur Help ...

list of useful websites that teach ASP.NET

What are the most useful websites to learn ASP.NET with? What blogs do you read it to enhance your technical knowledge of ASP.NET? What forums are useful to you? First I will answered this Question. [Website] ASP.NET [Website] 4GuysFromRolla [BLOG] ScottGu Blog [BLOG] Omar Alzaber Blog I have a lot of links but maybe you have...

How to create two-row Header for ASP.NET GridView

My data is such that I want to display values for the Employee and the Supervisor for a particular record. Instead of describing it, I'll show you a rough example: Employee Supervisor Name    Last Activity    Count    Name    Last Activity    Count    How can I create this for a GridView? I essentially want 2 rows for the headin...

Where is the copy local option?

I'm trying to add dll references to an ASP.NET 3.5 project(Web Forms not MVC), and all of the references I'm adding keep showing up as auto updating. I right clicked on the dll in the bin folder to specify copy local, but the option isn't there. I went back to one of 2.0 projects, and I have plenty of dll's that aren't auto updating, b...

Read a file from database

I have stored a txt file as string in a database coulum. Now on one of my aspx page I have a link...I want to open a txt file when the user clicks on this link. How can i read a file from database. I know how to do this using streamreader for a file stored on the disk. Thanks ...

RegisterClientScriptBlock within AJAX method call

I am trying to RegisterClientScriptBlock in a method that is only called via an AJAX call. It doesn't appear to actually register the script on the page and I'm guessing this is because it's not actually reloading the entire page. Is there any way to register javascript on a page from within an ajax method call? protected void MyMeth...

ASP.NET C#, need to press a button twice to make something happen.

I got a web application, the problem is that the text in the label will not update on the first click, I need to click the button twice, I debugged to code, and I found out that the label does not recive the data until after the second click, Here is my code: System.Data.SqlClient.SqlCommand command = new System.Data.SqlClient.SqlComma...

How do you repopulate a form in ASP.NET MVC that contains a DropDownList?

How do you repopulate a form in ASP.NET MVC that contains a DropDownList? ...

Installing a ASP.NET application

Ok, this has got to be a super simple problem. I just can't seem to find the answer anywhere. First - I'm not a web developer of any kind, I'm an old school c programmer - so don't flame me for what's probably something quite trivial :) I need to write a small proof-of-concept web app using ASP.NET. My first attempt here is to create...