asp.net

Why does my table have no content in ASP.NET?

I have built a table in a class GetData.cs public Table BuildTable() { Table tButtons = new Table(); TableRow tRow = new TableRow(); TableCell tCell = new TableCell(); long lColumn = 0; long lPreviousColumn = 0; long lRow = 0; long lPreviousRow = 0; long lLanguage = 0; long lPreviousLanguage=0; ...

Enterprise Library Strong Naming Guidance Package

Dear GOD! For the life of me I can not find the Enterprise Library Strong Naming Guidance Package download for Enterprise Library 4.1 I need this to sign the assemblies to add them to the GAC. Does anybody know where I can find it? I can't find it anywhere on the www.codeplex.com/entlib or www.codeplex.com/entlibcontrib websites. HE...

Sql Server 2005 - Time Out in Asp.net c#

Hello Friends, I am using Asp.Net c# and Sql Server 2005. I am using Masterpage and content page. when i debug my code that time it's give error :: Window Internet Explorer SYS.WEBFORMS.PAGEREQUESTMANAGER TIMEOUTEXCEPTION: THE SERVER REQUEST TIMED OUT. Any body please help me out ? Thanks ...

Visual Studio Debugger. ASP.NET ImageButton Click events not firing.

Hello, When clicking button in debug mode, the page reloads but the break points inside of the click event are never reached. However, breakpoints in the page_load work just fine. Basically, it's as if code inside of the button's click event is not being executed. I checked the site into source control and another developer tried it ...

Session and app pool: an ASP.NET app that stores and displays images

I have a .NET app that allows users to upload images to a directory within the webapp and then view them. The problem is that the session gets lost when I upload or delete an image in the webapp directory. It seems that the app pool is getting recycled when I add images, and not just config or cs files. I have seen this technique used i...

ASP.Net FileUpload Control with Regex Validator postback problem

I'm trying to use a .Net FileUpload control along with a Regex Validator to limit filename to JPG, GIF, or PNG extensions. After postback, the filename is gone from the control (as expected), but this seems to cause the validator to fire and display its error text. Can anyone suggest a fix, or a better way? Thank you! ...

ASP.Net MVC Json Result: Parameters passed to controller method issue

I'm having a problem getting a controller method that returns a JsonResult to accept parameters passed via the JQuery getJSON method. The code I’m working on works fine when the second parameter ("data") of the getJSON method call is null. But when I attempt to pass in a value there, it seems as if the controller method never even gets ...

What type of performance should I expect out of web services?

What type of performance should I expect out of web services? I have an application that is averaging between 2 an 7 call per second on a simple GetServerTime() method. This method only returns a date from the server. I am using WCF and making the call over SSL. I know this question is really relative but I am just looking for some ball...

C# - How can I cut a string at its end to fit in a div?

Hi everyone! I'm making a list of recent news. So, it will show something like this: - Take a look at the new Volks... - John Doe is looking for a jo... - Microsoft is launching the n... So, the list above only shows me the title of the news and the length of each news is limited in 25 characters. But, this is not working well... for...

How do I force expiration of an ASP.Net session when a user leaves the site?

We have a scenario in which we like to detect when the user has left our site and immediately expire their .Net session. We're using Forms Authentication. We're not talking about a session timeout, which we already have. We would like to know when a user has browsed away from our site, either via a link, by typing in an address or follow...

How to track IIS server performance

I have a reoccurring issue where a customer calls up and complains that the web site is too slow. Specifically, if they are inactive for a short period of time, then go back to the site, there will be a minute-two minute delay before the user sees a response. (the standard browser is Firefox in this case) I have Perfmon up and running,...

problem with asp.net on visual studio .net 2003

I want to run ASP.NET on VS 2003 but it raises an error which says: "Visual studio has detected that web server is running asp.net version 1.0.The web application you are creating or opening can be configured to be compliant with asp.net 1.0. However, the web application will not be able to use the new features from asp.net 1.1." When I...

Filling the text area with the text when a button is clicked

In ASP.net, I need the code to fill the text area (in the form) when a button is clicked. Can you help me through by showing a simple .aspx code containing the script tag? In trying to solve this, I get the following error: This .aspx document does not contain the definition of addText() function My .ASPX code is below. <%@ Page Lan...

Configuration Error

I am getting following error while running my application which is asp.net. Server Error in '/ASPMassShop' Application. "Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configur...

Asp.net Grid View

In my Grid View ,When a button is clicked,i want to insert that row in to database and at the same time make the row invisible in the Grid View. I can insert in to database but can't make the inserted row invisible. Dim PayID As Integer = (e.CommandArgument) Dim EmpID As Integer = (e.CommandArgument) Dim EID As I...

Protect folder from external requests

Hi, Im working with asp.net 2.0, and i have a folder into my application path ~/Data/ with some .mdb files. I would like to protect this folder from external request like http://www.whatever.com/Data/whatever.mdb But i would need to give any permission to my application, cause im using OleDBConnections agains the ~/Data/ Path. What ...

SharePoint 2007 Remote File Access Denied CAS

I have code running in an ascx within PageLayout within SharePoint 2007 that accesses files on a remote server i.e. File.Create("\servername\sharename\folder\file.txt"). The code runs within a SharePoint web application that has CAS trust set to Full in the web.config. The File.Create throws the following exception:- System.Unauthoriz...

How can I get data from dynamic generated controls in ASP .NET MVC?

I want to generate a couple of checkboxes on an ASP .NET MVC page. How can I retrieve their data in a controller after posting the page? ...

ASPX parser/precompiler that generates temporary files

Is there a way to change ASPX file soure before it is precompiled into temporary files. i.e. to remove empty spaces and new lines. ...

Changing values in Web.config with a Batch file or in .NET code

Hi I have a web.config file on my computer. There are alot of things i need to change and add in the file. (I am actually working with my SharePoint web.config file) Can i do this with a Batch file, if so how would i do it. Or how would i do it using VB.NET or C# code? Any ideas guys? Edit: i need to create a program to alter a web....