Currently I am trying to modify a css style attribute for a div based on the information I get from a database table in the code behind of my aspx page. In simplified form the following is essentially what I am trying to do but I get errors.
Here is my code:
ASPX:
<div id="testSpace" runat="server">
Test
</div>
CODE BEHIND:
testSp...
(EDIT: Made it a community wiki as it is more suited to a collaborative format)
There are a plethora of ways to access SQL Server and other databases from .Net. All have their pros and cons and it will never be a simple question of which is "best" - the answer will always be "it depends".
However, I am looking for a comparison at a...
I'm planning a ASP.NET project for which I'm going to use AJAX. I'm researching all the available technologies for doing so in the .NET world.
I need a solution that is well documented and stable.
The current solutions I've found are:
1. ASP.NET AJAX UpdatePanel
2. ASP.NET AJAX with Web Services + JQuery
3. JQuery + Http Handlers
In the...
This is not a question - posting it here for reference:
When consuming a WebService, I got the following error:
Request format is unrecognized for URL unexpectedly ending in /myMethodName
...
I am working on an ASP.NET 1.1 project where the requirement is to create a matrix table where the number of rows and the number of columns are determined by two separate datasets and can vary. Once the matrix is created the page has several buttons that do postbacks that need the data and any modifications made to a cell in the matrix t...
Hi,
I'm using Infragistics controls in my web application(ASP.net)... and I'm using Ultra web grid in that too.... my application works well in IE and Mozilla . but in safari I'm getting the following error::(which is very vague and fuzzy) ... CAN U PLZ HELP ME in this?? wat's this error ?
Does it have to do with compatibility problem??...
I used to run web applications all the time on my laptop, no problems, I am using VWD 2008 Express, i have the latest framework, Windows Vista Home Basic...etc..
Now, when ever i try to run a website, or even chose to Show a Page in Browser from Within VWD, the browser (both IE and Firefox) keeps looking for www.localhost.com...
I tried...
I have to port a smaller windows forms application (product configurator) to an asp.net app which will be used on a large company's website, demand should be moderate because it's for a specialized product line.
I don't have access to a database and using XML is a requirement from their web developers.
There are roughly 30 different p...
I'm creating a PDF file on the fly using ITextSharp and ASP.NET 1.1. My process is as follows -
Create file on server
Redirect browser to newly created PDF
file so it is displayed to user
What I'd like to do is delete the PDF from the server as soon it is displayed in the users browser. The PDF file is large so it is not an option t...
I am using asp.net and my users need to upload private pictures to my server. This pictures cannot in anyway get spread so I need to protect them in some way. What is the easiest way to protect them from public use so only the authorized user can reach them?
Thanks!
...
I've been told that ASP.NET is multithreaded by default in IIS. How is this threading achieved?
Does the server farm send different requests to different cores?
Does a single request make use of multiple cores?
More importantly, are there any advantages to adding threads to ASP.NET code if the threading is done higher up in IIS?
...
Dear All,
I just wanted to know how to tamper cookie(just for knowledge purpose :-)).I have created one application and tried to tamper the cookie but its not working.
Code:
protected void Button1_Click(object sender, EventArgs e)
{
if (Request.Cookies["myCookie"] != null)
{
Response.Redirect("Default2.as...
Hi
I need some way to check the size of a download without having to download the entire file. I am using C# and the System.Net.WebClient to do the downloads.The check needs to run in a asp.net webservice.
Thanks
...
Hi All
I have a web app where users can upload files. The files are physically stored by IIS in a virtual folder that is mapped to an external storage device.
A record about each uploaded file is stored in the database. The database record contains information about whether the file is still "active" (hasn't been deleted by the user), a...
I have a simple but script and css fashioned ASP.NET MVC Application, within the VS2008 Development server everything goes well, but when I bring it to IIS7 I experiment some ugly script and images issues.. Scripts are not found by relative paths (this expecially in the default routed page) and images too.
After some research and googli...
HI all,
I'm modifying j2me application into mobile web application. In J2me, there is one concept called persistent store. Is there any thing like that in ASP.net.
If so, please let me know...
Thanks!!
...
Hi all,
I'm using the .SiteMap file and Sitemap control to create a sitemap on a page. The title of the page in the Web.sitemap is: "Out & About".
When the page renders, the ampersand is shown as an & (Out & About) in the source, this obviously then causes validation errors.
Any ideas how I can force good ol' .net sitemap to encode t...
Are there webhosting plans for MS ASP.NET MVC (we are attending the official release, I know..)?
...
What would be the best way to store a tree like the one below in app.config and how would I deserialize this information from it?
Tree
|-node1-
| |-name - value
| |-name - value
| | ......
|-node2-
| |-name - value
| |-name - value
| | ......
|-node3-
| |-name - value
| |-name - value
| ...
The folder structure we have is something like this:
ParentFolder
HostPage1.aspx
UserControlsFolder
UserControl.ascx
AnotherFolder
HostPage2.aspx
UserControl.ascx is used in both HostPage1.aspx AND HostPage2.aspx
I am including an external JS file in the ASCX and the path needs to be relative to the Page. Since I...