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
9
votes
1 answer
T-SQL - Return custom error message and end query
I have a lengthy stored procedure in which I would like to do something like the following:
IF @SubPageDirectory IS NULL
BEGIN
RAISERROR('@SubPageDirectory cannot be NULL', 10, 1)
EXIT STORED PROCEDURE
END
Basically I wish to check whether…

Curtis
- 101,612
- 66
- 270
- 352
9
votes
1 answer
Crystal report file does not get deployed to server in ASP.NET MVC
I am using a crystal reports through crystal report viewer server side control in a webform.
I am using a webform because the crystal report viewer provides an easy way to export to PDF and to Excel.
My problem is that when I deploy to the server,…

Andrew
- 11,068
- 17
- 52
- 62
9
votes
5 answers
GridView's NewValues and OldValues empty in the OnRowUpdating event
I have the GridView below. I am binding to a custom datasource in the code behind. It gets into the "OnRowUpdating" event just fine, but there are no NewValues or OldValues. Any suggestions as to how I can get these values?

Abe Miessler
- 82,532
- 99
- 305
- 486
9
votes
3 answers
Comparing 'mobile numbers' - and/or international format
I am receiving phone numbers from a mobile device, format varies from international format or not.
Scenario (ZA formats just for the example) :
Registered numbers in database are always international format : +27827177982
Numbers I receive can vary…

Marc Uberstein
- 12,501
- 3
- 44
- 72
9
votes
4 answers
How can I use GWT together with Visual Studio to create an ASP.NET website?
How can I use GWT together with Visual Studio to create an ASP.NET website? If it is possible.

Joshscorp
- 1,832
- 4
- 22
- 42
8
votes
3 answers
When does WCF use app.config or web.config?
I am working on a WCF applicaiton. I am very confused about when to use a web.config file and app.config file in WCF client and service. can anyone help me when to use app.config and when to use web.config.

Jebli
- 2,775
- 6
- 29
- 37
8
votes
1 answer
Edit config custom section in IIS
I am working on big ASP.NET project(we using ASP.NET 3.5) which comprised of 5 different WebSites and some shared assemblies. Recently I added custom section into web.config files for each site. When I deploy all these applications, each site is…

Victor
- 985
- 2
- 28
- 53
8
votes
3 answers
Fetch data from server without extending session timeout
Are there any ways in ASP.net to fetch data from the server without extending the session timeout? This needs to be done every few minutes without user interaction until the page is closed.
Additional context, as requested:
The pages in my webapp…

Brian Beckett
- 4,742
- 6
- 33
- 52
8
votes
2 answers
Sharing session state between 2 ASP.NET applications using SQL Server
I'm working on a site that has a requirement to share session between a cms application and an online store application on the same domain eg.
mydomain.com
and
store.mydomain.com
I've made some progress with it and it works on my local build…

Dave
- 2,552
- 5
- 25
- 30
8
votes
4 answers
Getting a Return Value in C# asp.net from a stored procedure (syntax issue)
I am having issues trying to get the syntax correct for my C# 2008 asp.net code.
I need to get a return value (Select @@Identity) from my stored procedure
My C# code is:
SqlConnection conn = new SqlConnection(strConn);
string sql =…

user279521
- 4,779
- 21
- 78
- 109
8
votes
4 answers
Error message: Cannot convert type 'string' to 'string[]'
I am creating a dynamic array, and getting an error:
Error message: Cannot convert type 'string' to 'string[]'
The code is:
arrTeamMembers += tb.Text;
tb.Text contains values such as "Michael | Steve | Thomas | Jeff | Susan | Helen |"
I am trying…

user279521
- 4,779
- 21
- 78
- 109
8
votes
1 answer
Why is @MasterType directive not implied when setting @Page masterPageFIle?
The docs for @MasterType have this example.
<%@ Page masterPageFile="~/MasterPage.master"%>
<%@ MasterType virtualPath="~/MasterPage.master"%>
Why is @MasterType even needed? Couldn't the compiler automatically take the same actions based…

Samuel Neff
- 73,278
- 17
- 138
- 182
8
votes
2 answers
SelectedValue of DropDownList in Repeater
How do I set the selected item of a dropDownList inside a repeater?
The repeater is bound to the repeaterData DataTable and the dropDownList is bound to dropDownList DataTable in the code behind. I need to set the SelectedValue property of the…

dmr
- 21,811
- 37
- 100
- 138
8
votes
4 answers
SharePoint 2007 - RunWithElevatedPrivileges - Pitfalls of using this
I have a strong gut feeling that using SharePoint RunWithElevatedPrivileges should be avoided like the plague, but need to convince some others as to exactly why. Here's what I have.
Spawns a new thread with elevated privileges
Blocks other…

Chris Ballance
- 33,810
- 26
- 104
- 151
8
votes
3 answers
Performance bottleneck Url.Action - can I workaround it?
I have an application that I recently upgraded from ASP.NET MVC1 to ASP.NET MVC4 rc1.
It uses the Webforms viewengine.
It has performance issues whenever Url.Action(action,controller) is used.
I can reproduce the issue in ASP.NET MVC3.
I need 3ms…

Mathias F
- 15,906
- 22
- 89
- 159