asp.net-3.5

How to study for Microsoft exam 70-564: asp.net 3.5?

On the official page for the exam there is no mention of any books. Does anyone know when any will come available? ...

why I don't see generated IDs for server side controls?

Hello, I'm little confused here now. Let me explain: I've seen people talking about adding a button or some other control to the page in asp.net (3.5) and when the control renders it changes the Id of that control, eg. Button1 becomes Button1_somethingsomething which prevents them from using jQuery and what they end up using is somethin...

ASP.NET Base64 string corruption

I am passing an object from one asp.net page to another. I'm encoding the object as a Base64 string and passing it as a POST parameter. However, when the receiving page reads the POST value, if there is a + sign in the Base64 string, it is being replaced with a line break. For example: ...AABDEDS+DFEAED... becomes ...AABDEDS DF...

Store and Retrieve values from web.config

I built a small website and there will be only one admin, so in the admin panel I am asking for a password with a value that I do not retrieve from a database, I just hard coded it in the function in code behind, I know this is wrong though I don't know why. So is hard coding it in web.config the right thing to do? and how? ...

Encrypt data in web.config

I have the following line in my web.config <appSettings> <add key="AdminPassword" value="ASDF1234" /> </appSettings> How can I encrypt it? I tried this tutorial but it got me all confused Help?! ...

SQL Server 2008 sp1

Hi, When I try to install SQL Server 2008 sp1 on my system, the installer runs and does the prerequisites check, every thing is ok except it says my machine has a pending reboot and won't continue until this is done. I Cold Reboot the machine,run the installer and the same message comes up. So I can't install the sp1 update. Any ideas ? ...

ASP.NET Solution Migration to 3.5 .. but only for *some* of the CS Projects !

I need to migrate a .net solution from 1.1 to 3.5. The solution currently contains 2 CS projects 1) a Class Library and 2) a Web Service application. Problem: I need to migrate the solution file and the Web Service application project, however I cannot migrate the Class Library as it is shared with another solution that will not be mig...

Exposing an Enum to a WebService's client JavaScript without using it in a WebMethod?

I'm building an ASP.NET 3.5 application and would like to expose an enum I have in my WebService class without using it as a parameter in once of my WebMethods. I have a really simple example to illustrate what I want... Let's say I have the following WebService (I'll call it Agent.asmx): <System.Web.Script.Services.ScriptService()> _...

ASP.NET PageMethods and JQuery AJAX Post – How secure really is it ?

I have a following scenario – and what I am really looking is real help from real people. Suggestions / Solutions ? Please. I have an extranet web site for ex. www.foo.com (asp.net 3.5) I am using JQuery 1.3.2 to call ValidateLogin PageMethods in default.aspx page ( www.foo.com/default.aspx) The code will look like this $.ajax({ ...

Good ASP.NET books for the beach

or train, plane or couch. Most programming books are quite thick and require you to sit at a computer while you read it. Some of the thinner ones, like "Efficient C++" for example, are much better written and you can read them on the couch. I am looking for books like that on recent ASP.NET technologies. One example (though not reall...

.net Determine at run time whether my app is an exe or a web app.

I'm sure I have done this before in the past, but I've been in the docs for a bit, and can't seem to find it again. I need to be able to determine at run time in my business domain what context my application is running in. So that I may do some switching with config files, and use the proper method to determine if I am running in debu...

How can I programatically detect ASP.NET 3.5?

I am creating a diagnostic page for ASP.NET and would like to programatically detect if ASP.NET 3.5 has been installed on the server. Any ideas on how to best do this? ...

Resources for learning LINQ?

I'm looking to learn LINQ, but I'm finding that there is a lot more to it then what I initally expected. In fact, there's so much that I'm not sure where is the best place to start. I know that there's LINQ to SQL, and LINQ to Entities, and a number of other LINQ whatevers out there. Which is the best to start with? It seems that I see ...

Send mail to multiple recipients with attachment ASP.NET

I am building a simple e-mail application to send emails to a list of people with an attachment. To be able to add an attachment (from what I have found out) I need to use System.Web.Mail. Is there any limit to how many email addresses I can send to at once? ...

Any way to prevent master pages from changing element IDs?

I'm looking at adding master pages to an existing site but have found that once I do, the elements' IDs get prepended with a code (e.g. ctl00_MainPageContent_). Unforunately, this breaks existing scripts on the page that use the original, unmodified element ID. I realize that I can replace it with <%= Element.ClientID %> but it'd be a...

Installing ASP.Net Framework 3.5 on Server (From 2.0)

Hi, I want to upgrade the Windows 2003 x86 server which is running ASP.NET 2.0, to support ASP.NET 3.5 Which file / files do I need? Do I need to install 3.0 first, then 3.5, then 3.5 SP1, or will the full download of 3.5 SP1 (dotnetfx35.exe 3.5.30729.1, 231 MB) do everything? Also, I believe I have to install the following at the e...

Using Linq To Convert ListBox Items Values to int

I display the contents of a table in the database using a ListBox. Each listbox item is populated with the Text property set to a friendly name, and the Value property set to the unique ID column. The database structure might look similar to the following: CREATE TABLE GENERIC { FRIENDLY_NAME TEXT, ID INT } I tried for almost an hour ...

Implementing IPagedList<T> on my models using NHibernate

I have found when using NHibernate and creating a one to many relationship on an object that when the many grows very large it can slow down dramatically. Now I do have methods in my repository for collecting a paged IList of that type, however I would prefer to have these methods on the model as well because that is often where other de...

ASP.NET with jQuery - POST vs GET

Hi everyone! Ok, I have a very silly question to ask (which Im rather embaressed about I must admit!). Im using the nyroModal plugin for jQuery within an ASP.NET 3.5 WebForms app. Basically, let's say I have a hyperlink pointing to http://www.mysite.com/GetData.html?id=100 When the link is clicked, I want GetData.html to extract data f...

Asp.net subdomain Problem - Subdomain not recognized

Am not sure what is causing this problem but here is what i gave : The URL in the address bar is : http://test2.localhost:33967/ And it is loading the right landing page but every link in that page maps to http://localhost:33967/ ignoring the subdomain. Any Ideas ? Thanks, ...