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.

1126 questions
23
votes
3 answers

How to make per- http Request cache in ASP.NET 3.5

We using ASP.NET 3.5 (Controls-based approach) and need to have storage specific for one http request only. Thread-specific cache with keys from session id won't work because threads are supposed to be pooled and therefore I have a chance to have…
Artem
  • 7,034
  • 15
  • 55
  • 87
22
votes
5 answers

Reading system.net/mailSettings/smtp from Web.config in Medium trust environment

I have some inherited code which stores SMTP server, username, password in the system.net/mailSettings/smtp section of the Web.config. It used to read them like so: Configuration c =…
Carson63000
  • 4,116
  • 2
  • 21
  • 37
22
votes
3 answers

Get item count of a list<> using Linq

I want to query a List<> and find out how MANY items match the selection criteria. using LINQ and c# /.net 3.5. How would I modify the query to return an int count. var specialBook = from n in StoreDisplayTypeList where…
Geeth
  • 5,096
  • 20
  • 75
  • 129
21
votes
12 answers

LINQ to SQL -- Can't modify return type of stored procedure

When I drag a particular stored procedure into the VS 2008 dbml designer, it shows up with Return Type set to "none", and it's read only so I can't change it. The designer code shows it as returning an int, and if I change that manually, it just…
Kyle Ryan
  • 3,731
  • 5
  • 20
  • 20
21
votes
7 answers

The Just-In-Time debugger was launched without necessary security permission

We are working on vs 2010 windows 7, 32 bit and the project is running under target framework 3.5. Now we are implementing credit card process in the website project in signup page. It's running fine when running from VS IDE, but after publishing to…
praveenb
  • 9,891
  • 14
  • 55
  • 79
21
votes
2 answers

How to catch HttpRequestValidationException in production

I have this piece of code to handle the HttpRequestValidationException in my global.asax.cs file. protected void Application_Error(object sender, EventArgs e) { var context = HttpContext.Current; var exception =…
bruno
  • 1,780
  • 1
  • 21
  • 36
20
votes
2 answers

Can I split system.serviceModel into a separate .config file?

I want to separate my system.serviceModel section of the web.config into a separate file to facilitate some environment settings. My efforts have been fruitless. When I attempt it using this method. The wcf code throws an exception: "The type…
Mr Bell
  • 8,864
  • 18
  • 77
  • 124
20
votes
4 answers

Asp.net checkbox and html data attribute

In asp.net, if you use a custom attribute, usually it is rendered as-is. Considering this markup (note: attributes such as id, name and for were removed in all examples as their generated id/names are verbose):
Ortiga
  • 7,687
  • 5
  • 37
  • 64
19
votes
3 answers

ASP.NET MVC Master Pages

What's the difference between the ASP.NET Master Page, and the MVC Master Page? And the AJAX Master Page for that matter?
Ash
  • 21,088
  • 34
  • 100
  • 145
19
votes
1 answer

Is there a way to render Partial Views in WebForms?

I'm touching an old WebForms project but I'm long gone from it and I'm now to used to MVC. I'm trying to refractor the project and come up with a simple issue that is making me crazy... What would be the best way to include an .aspx file within…
balexandre
  • 69,002
  • 44
  • 219
  • 321
18
votes
3 answers

Making user login persistant with ASP .Net Membership

I have a website that is built in ASP.NET 3.5 & SQL Server 2005, using the sql membership provider, and presumably forms authentication. Since security needs on my site are very low, I would like to authenticate once, and then keep the log in…
17
votes
7 answers

Showing number in 2 decimal places in GridView

I have one GridView in a .aspx page, and am showing dynamic data in this grid, setting AutoGenerateColumns="True". Depending upon which of the options the user selects in a combo box, I am binding different DataTables to the GridView. For example,…
gofor.net
  • 3,850
  • 10
  • 37
  • 64
17
votes
4 answers

What Causes "Internal connection fatal errors"

I've got a number of ASP.Net websites (.Net v3.5) running on a server with a SQL 2000 database backend. For several months, I've been receiving seemingly random InvalidOperationExceptions with the message "Internal connection fatal error". Sometimes…
Chad Gilbert
  • 34,769
  • 3
  • 85
  • 96
16
votes
5 answers

jQuery success callback called with empty response when WCF method throws an Exception

I'm tearing my hair out over this one, so bear with me (it's a long post). Basic Info ASP.NET 3.5 with WCF service in ASP.NET compatibility mode Using jQuery with this service proxy for AJAX requests Custom IErrorHandler and IServiceBehavior…
Cᴏʀʏ
  • 97,417
  • 19
  • 158
  • 183
16
votes
3 answers

ASP.Net textbox onblur event

I have a textbox, whose values I need to validate (if value of textbox is 50, then display message in lblShowMsg) when the user tabs out of the textbox (onBlur event). I can't seem to get the syntax right. I have this code on my pageload…
LearningCSharp
  • 1,272
  • 2
  • 13
  • 25
1
2
3
75 76