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
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ᴏʀʏ
  • 105,112
  • 20
  • 162
  • 194
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,292
  • 2
  • 13
  • 26
16
votes
10 answers

Returning a single row

I'm trying to return a single row from a database: using (connection = new SqlConnection(ConfigurationManager.AppSettings["connection"])) { using (command = new SqlCommand(@"select top 1 col_1, col_2 from table1", connection)) { …
oshirowanen
  • 15,297
  • 82
  • 198
  • 350
15
votes
3 answers

The type or namespace name UpdatePanel does not exist in the namespace System.Web.UI

I'm working on a website built by another developer that targets ASP.NET 3.5. I'm trying to add an update panel around a bit of code, but whenever I attempt to do so I get the error posted in the title. I've tried including the ajaxcontroltoolkit…
Kyle
  • 680
  • 1
  • 7
  • 16
15
votes
7 answers

log4net - Appenders not working in IIS7.5

I am able to write to a log file using log4net and Cassini/IIS dev server, but when I use IIS7.5, I can't write out to a file. Initially, I got a security exception, so I added requirePermission="false" and the exception went away but no file was…
Steve
  • 5,802
  • 12
  • 54
  • 76
15
votes
3 answers

How do I convert a Bitmap to byte[]?

Basically I am inserting an image using the listviews inserting event, trying to resize an image from the fileupload control, and then save it in a SQL database using LINQ. I found some code to create a new bitmap of the content in the fileupload…
the-undefined
  • 753
  • 1
  • 6
  • 18
15
votes
5 answers

Which is a better method for storing images - folder or SQL Server as binary?

I am planning the development of a photo gallery application for a client. I am developing the app in asp.net 3.5 and would like to develop it so that I can re-use the application across multiple platforms using various front-ends. Basically, I am…
TGuimond
  • 5,475
  • 6
  • 41
  • 51
14
votes
6 answers

Can I negate the value in an attribute that uses an "Eval"?

I'd like to set a button's enabled state to be the negation of a value. So given this code:
KevDog
  • 5,763
  • 9
  • 42
  • 73
14
votes
3 answers

CS0103: The name 'Encoding' does not exist in the current context

I have a webapplication running on framework 3.5 and is installed on multiple clients, working perfectly. Except this one client... where all webservices that the application provide fail with the following error message: Compilation Error …
Sergio
  • 8,125
  • 10
  • 46
  • 77
14
votes
4 answers

Is it possible to speed this method up?

I have a method that uses loops through 7,753+ objects and Gets the value of each property for each object. Each object has 14 properties. private void InitializeData(IList objects, PropertyInfo[] props, List dataPs, List
Xaisoft
  • 45,655
  • 87
  • 279
  • 432
14
votes
6 answers

sql server express connection string

Is there a difference between sql server connection string and the express vesion?!
jDeveloper
  • 2,096
  • 2
  • 21
  • 27
13
votes
4 answers

How to call a webservice programmatically in asp.net

How to call webservice programmatically in asp.net without using add web reference? My webservice url keeps on changing. Hence i need to capture the url at runtime and display the results. Please advice.
DJ.
  • 131
  • 1
  • 1
  • 3
13
votes
6 answers

ASP.net DropDownList with no selected item

I have a ASP DropDownList with items added to it. All what I want is to make the selection after the page loaded empty so there is no a selected item. How can I do that?
Eyla
  • 5,751
  • 20
  • 71
  • 116
12
votes
3 answers

Why does my SqlCacheDependency HasChanged come back false but almost immediately after changes to true?

I cannot figure out why the HasChanged value of my SqlCacheDependency object is coming back originally from the command execution as false, but somewhere almost immediately after it comes back from the database, the value changes to true. …
The Evil Greebo
  • 7,013
  • 3
  • 28
  • 55
12
votes
6 answers

how to get URL path on local host and on server?

Plase guide me how to get URL path excluding page name on localhost and server. for example for the page Active.aspx local path that I want to get is here in bold. *http://localhost:1532/WebFolder/*Active.aspx and on server I want to get this bold…
user576510
  • 5,777
  • 20
  • 81
  • 144
1 2
3
74 75