Questions tagged [asp.net-3.5]

asp.net-3.5 is the 3.5 version of web development framework asp.net, part of .Net. It features: ASP.NET AJAX as a part of the runtime, new LINQ data capabilities, improved support for CSS.

1125 questions
12
votes
9 answers

None of my "code behind" code is being called

I have just created an ASP.NET C# project and a virtual directory for it in IIS in (as far as I know) the normal way, but I am seeing very strange behavior that I have never seen before. It seems that none of my C# methods are ever being called. I…
finnw
  • 47,861
  • 24
  • 143
  • 221
12
votes
3 answers

Can ASP.NET MVC 3 run inside a ASP.NET 3.5 web site?

I would like to know if it is at all possible to get an MVC3 solution wrapped in a CWAB (Composite Web Application Block) solution built in 3.5? I'm aware that in IIS, 2.0/3.5 and 4.0 sites can run next to each other (but in different application…
Wizard of Oz
  • 175
  • 1
  • 1
  • 9
11
votes
2 answers

ASP.NET gurus - small issue when setting app domain name for sharing SQL session in scale-out scenario

We have scaled-out some portions of our ASP.NET app to run on one server, and other portions to run on another server (& under a subdomain). The two servers share (SQL Server) Session. We used this MS article to create a tiny HTTP Module to sync app…
Dave Clausen
  • 1,302
  • 1
  • 12
  • 23
11
votes
4 answers

Linq: Get a list of all tables within DataContext

I have a DataContext (Linq to Sql) with over 100 tables, is it possible to get a list of all those tables and lets say print them to the console? This might be a silly question. Thanks.
Sergey
  • 3,214
  • 5
  • 34
  • 47
11
votes
2 answers

Binding a List to a Listview in asp.net 3.5

How do I bind a List to a in ASP.NET 3.5
Sash
  • 3,525
  • 3
  • 19
  • 17
11
votes
3 answers

Why can't I use WCF DataContract and ISerializable on the same class?

I have a class that I need to be able to serialize to a SQLServer session variable and be available over a WCF Service. I have declared it as follows namespace MyNM { [Serializable] [DataContract(Name = "Foo", Namespace =…
Dave
  • 2,552
  • 5
  • 25
  • 30
11
votes
5 answers

Help with C# HttpWebRequest URI losing its encoding

Having a problem with HttpWebRequest decoding my encoded URL. var requestUrl = "https://www.google.com/webmasters/tools/feeds/http%3A%2F%2Fwww%2example%2Ecom%2F/crawlissues/"; var request = (HttpWebRequest)WebRequest.Create(requestUrl); When…
user275939
11
votes
1 answer

Get values of all checkboxes in repeater

When the user clicks a "Save Changes" button, I need to get the values of all the checkboxes inside a repeater. If I can't get the values, the ID is also ok. Master page code:
10
votes
4 answers

Forcing ASP.Net to use TCP/IP to connect to SQL Server instead of named pipes

How can I force my ASP.Net application to connect to a SQL Server using TCP/IP, not Named Pipes? I read somewhere putting "tcp:" in front of the server name in the connectionstring should do the trick, but it does not seem to change…
Kjensen
  • 12,447
  • 36
  • 109
  • 171
10
votes
1 answer

ASP.NET Server Control - How to add AssemblyInfo file

I've noticed on a few tutorials online that when a new ASP.NET Server Control is added, it automatically includes Properties folder (containing AssemblyInfo.cs) and a References folder. This works fine for me when creating a C# Server Control, but…
Curtis
  • 101,612
  • 66
  • 270
  • 352
10
votes
2 answers

Multiple Calls to the same Web Service Blocking?

We have a page that makes a request to a 3'rd party web service. When under heavy load this response time extends significantly, however the 3'rd party reports back that there times for processing remains constant. There timings show that from the…
jquery auth
  • 1,267
  • 1
  • 14
  • 24
10
votes
5 answers

Making a short URL similar to TinyURL.com

I'm building a new web app that has a requirement to generate an internal short URL to be used in the future for users to easily get back to a specific page which has a very long URL. My initial thoughts are to store a number in a database and…
ShawnCBerg
  • 594
  • 2
  • 7
  • 27
10
votes
2 answers

What's the best way to minify the ASP.NET generated Javascript?

What's the best way to minify the ASP.NET generated Javascript, such as the ones served by webresource.axd, in ASP.NET 3.5 at runtime? I tried using the MbCompression module but it's not working with those resources.
craigmoliver
  • 6,499
  • 12
  • 49
  • 90
9
votes
5 answers

Validation of viewstate MAC failed when on page for 20+ minutes

If you open a web page on one of the websites hosted on our server, leave it for 20 minutes and then submit a form, a Validation of viewstate MAC failed. error occurs. What possible reasons could there be for this?
Curtis
  • 101,612
  • 66
  • 270
  • 352
9
votes
5 answers

How to change the Header Text of Gridview after Databound?

I have a gridview I bound a DataTable with that Gridview Its dynamic so no hardcode Text in desin. I tried to change it after Databound and in PreRender of gridview but no Success. Actually there are Underscores('_') in text and I want to Replace it…
Azhar
  • 20,500
  • 38
  • 146
  • 211