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.
Questions tagged [asp.net-3.5]
1125 questions
848
votes
22 answers
How can I deserialize JSON to a simple Dictionary in ASP.NET?
I have a simple key/value list in JSON being sent back to ASP.NET via POST. Example:
{ "key1": "value1", "key2": "value2"}
I AM NOT TRYING TO DESERIALIZE INTO STRONGLY-TYPED .NET OBJECTS
I simply need a plain old Dictionary(Of String, String), or…

richardtallent
- 34,724
- 14
- 83
- 123
98
votes
11 answers
Unable to convert MySQL date/time value to System.DateTime
I get this error:
Unable to convert MySQL date/time value to System.DateTime
while I am trying to fetch the data from a MySQL database.
I have the date datatype in my MySQL database. But while retrieving it into my datatable, it get the error…

Ankit Chauhan
- 2,375
- 6
- 25
- 37
78
votes
2 answers
Create Text File Without BOM
I tried this aproach without any success
the code I'm using:
// File name
String filename = String.Format("{0:ddMMyyHHmm}", dtFileCreated);
String filePath = Path.Combine(Server.MapPath("App_Data"), filename + ".txt");
// Process
myObject…

balexandre
- 73,608
- 45
- 233
- 342
66
votes
2 answers
Forms Authentication Timeout vs Session Timeout
In my asp.net website i am using asp.net form authentication with following configuration

Hemant Kothiyal
- 4,092
- 19
- 61
- 80
45
votes
3 answers
How to make update panel in ASP.NET MVC
How do I make an update panel in the ASP.NET Model-View-Contoller (MVC) framework?

ibrahimyilmaz
- 18,331
- 13
- 61
- 80
41
votes
5 answers
How to initialize a list with constructor?
I have a type:
public class Human
{
public int Id { get; set; }
public string Address { get; set; }
public string Name { get; set; }
public List ContactNumbers { get; set; }
public Human(int id)
{
Id…

haansi
- 5,470
- 21
- 63
- 91
41
votes
7 answers
how to solve Error cannot add duplicate collection entry of type add with unique key attribute 'value' in iis 7
I created a asp.net website and published it in iis 7. I deleted the default website option in the iis 7 and created the new website in the iis 7. When i click the default document I got the error like "Error cannot add duplicate collection entry of…

satya
- 411
- 1
- 4
- 3
38
votes
6 answers
Check that email address is valid for System.Net.Mail.MailAddress
Currently, to avoid errors from being thrown up due to invalid email addresses, I do the following:
Dim mailAddress As MailAddress
Try
mailAddress = New MailAddress("testing@invalid@email.com")
Catch ex As Exception
'Invalid email
End…

Curtis
- 101,612
- 66
- 270
- 352
34
votes
1 answer
creating a user in Active Directory: A device attached to the system is not functioning
Consider this code attempting to create an Active Directory account. It's generating an exception here with a certain set of data. It's not clear right now what's causing the exception.
var user = new UserPrincipal(someValidUserContext,
…

p.campbell
- 98,673
- 67
- 256
- 322
31
votes
2 answers
How the session work in asp.net?
Please any one suggest me how the session is actually work in asp.net?
I am confuse in part of session and want to briefly knowledge of it so please guide me

coolbudy
- 311
- 1
- 3
- 3
30
votes
5 answers
Stopping onclick from firing when onclientclick is false?
Is it possible to use the onclientclick property of a button to do a clientside check. If the check returns true, then fire the onclick event. If the clientside check returns false, don't fire the onclick event.
Is that possible?
UPDATE:
These 2…

oshirowanen
- 15,297
- 82
- 198
- 350
29
votes
5 answers
Convert a string to a datetime
I am developing asp.net site using vb framework 3.5.
Im having difficulties converting string data into Date
I tried using cdate function,
I have a variable sdate which is a string variable and date is stored in it which comes from textbox as…

Ishan
- 4,008
- 32
- 90
- 153
24
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
- 10,549
- 14
- 61
- 83
24
votes
2 answers
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…

Maen
- 1,030
- 7
- 19
- 33
24
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,282
- 21
- 82
- 133