I'm currently using Microsoft Code Contracts in an ASP.NET MVC application without any issues but I can not seem to get it quite running in a basic ASP.NET Web site. I'm not entirely sure it was made to work with this type of project (although it shouldn't matter) so I wanted to bring it up to everyone.
I can compile the contracts just ...
I am writing a custom HTTP handler to provide an edit form for a grid using existing user controls. Basically, my handler creates the page, form, header, and other controls necessary to be able to render the existing user controls properly and at the end of ProcessRequest, I use Server.Execute to execute the page that was dynamically cr...
I have an ASP.NET app that permits Word 2007 document uploads. Once they are uploaded I'd like to parse out the document text and also any comments made by reviewers. I'd like to be able to get the comments and the commenter initials/name.
Are there free libaries to do this? I prefer not to automate Word as this process needs to be some...
My local copy works fine, then I publish the website and I get this error.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'Theme' is no...
I want to spit out a JS variable array like so from my custom control:
var myArray = [5410, 8362, 6638, 6758, 7795]
caveat is that I want it to also be unique to this control as this control will spit out more JavaScript that will utilize myArray. So I envision something like:
var [control'sID]myArray = [5410, 8362, 6638, 6758, 7795]...
I have multiple subdirectories in my solution that have default.aspx pages in them, so when I use the url:
http://www.mysite.com/products/
where products is a subdirectory stated above, it shows the contents of the default.aspx page located within the directory.
Whenever an initial postback occurs on the page the url changes to:
http...
so i'm looking for a way to allow users the ability to manage static files in their own directories on my webserver without giving them ftp access. I've seen controls like the one here that does what i want, however i'd like to weigh a few options. any recommendations?
...
Hi guys
I am having a problem with converting video files to .flv files. I am using ffmpeg.exe tool to achieve this. Here on my local server when I use ffmpeg.exe tool with c# code everything is working good. But when I deploy the same code with ffmpeg tool on to my hosting server, where as .exe files are not allowed to execute, the cod...
Hi everybody,
I have this problem ..
I have one "Login" linkbutton and one "UserList" linkbutton on one masterpage. When the user is logged in, and he clicks "UserList" linkbutton, the UserList Page which has the masterpage mentioned above, opens.(This i have achieved).
but if the user is not logged in and he clicks "UserList", the "L...
I have an ASP.NET application. I want to redirect to the secure port for the site, but the site may not necessarily be using the default of 443. Is there some environment variable or API call I can make to determine the currently configured SSL port for a site?
Thanks!
...
I'm creating a user control and I want to have a templated section on it called ContentTemplate similar to how the UpdatePanel has a ContentTemplate tag. When you use the UpdatePanel and you place controls inside of the ContentTemplate section you can access all of the controls in the ContentTemplate without having to do a FindControl() ...
I'm trying to deploy an aap using Crystal reports, asp.net 3.5 developing in Vs2008.
On my dev boxes, I have CrystalDecisions.Shared 11.5.3300 and 11.5.3700.
the only reference I can add in is to verison 11.5.3300, but the only version deployed on my QA server is 11.5.3700.
I keep getting the following error:
System.IO.FileNotFoundEx...
Is it possible get the last visited pages by user using C# / ASP.NET (without using javascript)
...
Hi,
If I have an html input "<input id="score1" type="text" value=""/>" and want to initialize it on the c# page load, but I don't want to use asp controls.How do I do it?
Thanks
...
I've got a customer who wants to pass in a large string to one of our web services, beyond what it is really intended for, and it seems to be truncating data somewhere along the line. Is there a maximum size for strings in web service calls?
It would be nice to say, "this isn't technically possible" rather than argue merits of limiting...
Hi,
I have an application that runs on an English-US ASP.NET server (English installation of windows server and .NET Framework).
I set the globalization settings to :
<globalization culture="auto" uiCulture="auto" responseEncoding="utf-8"/>
which works fine for most of the application. However, I have to deal with money transactions ...
Is there a way to modify the current Session() variable using jQuery? If it involves deconstructing the ViewState then I'm not really interested. Just curious if there was some easy way to do it.
Thanks!
...
I have a table that looks like this in a usercontrol. Then the usercontrol is used on the masterpage.
<table>
<tr>
<td width="80%" style="background-image: url(/images/Header_right.gif); background-repeat: repeat-x;">
</td>
</tr>
</table>
If the aspx page is in the root directory of the site it works. But if the aspx page...
No idea why but when I place my custom control in my .aspx page, it's rendering the ID out also. So Consequently, I'm writing out some JavaScript to the page also and right in the middle I get this name of my control so it's messing up my JavaScript.
So in my .aspx I have:
<pm:Car ID="ProductCar" runat="server"/>
And here's what sta...
How can I automatically kill a query that runs for more than 60 seconds?
The queries are called from a VB ASPX page to an Oracle database.
I don't mind putting the limit in the database itself or in the calling aspx code.
FYI: I use a asp:GridView bound to a 'asp:SqlDataSource` for querying the database.
FYI: A connectionString for S...