asp.net

Access html control from server side.

Hi, How can i access html control from code behind in asp.net. I do not want to use "runat=server" as it is causing problems. I have made an empty html table and from my code behind, I want to add <td> to it. Please help. Thanks, Prachi ...

Showing/Hiding div CollapsePanel after ClientScript.RegisterClientScriptBlock

This question is an extension to http://stackoverflow.com/questions/920384/showing-hiding-div. As stated, I found a workaround to prevent a Collapse panel from flashing upon load. My solution was this: In header: function showDivs() { divMenuContent.style.visibility = 'visible'; divMenuCont...

Could not load file or assembly System.EnterpriseServices

I'm trying to read up on asp.net mvc, I have never used asp.net before but are familiar with regular c# development. Freshly installed, fully patched Windows XP Home. Freshly installed updated to SP1 Visual Studio 2008 Pro. Started a new project, selected "ASP.NET MVC Web Application", target framework is 3.5 I hit F5 and I get: "C...

Response.Write outdated?

I recently had a techical test for a job interview where I did a Response.Write(). I was told that this was "old fashioned" and that there are better ways of doing this now. The interviewer wouldn't elaborate, so I'm keen to know what he was referring to. Anyone have any ideas? ...

Generating MHTML from HTML

I'm looking for a way of generating mhtml from a page in my asp.net web app. I've seen this website and played with the code but i don't really want to use interop.cdo and interop.adodb. http://www.codeproject.com/KB/aspnet/aspnethtml2mht.aspx Other than generating all the mhtml myself i'm a bit stumped.... Anyone got any clever ideas?...

Tooltip on a silverlight component using html

Is there any way one can get tooltip on a Silverlight Control just like an image has "Alt" text in ?? ...

Any tool similar to ants profiler and free?

I want to test an asp.net web application. What are the best free graphical tools out there? While something similar to the Ants would be really good, it would be nice to have a tool that even includes information on data sent over the wire. something like Ants + Fiddler. I hope Im not asking for too much :) Thanks. ...

Response.redirect on Popup to go to Main page..

I have a pop up, that opens when i select a link in parent form. If some exception occurs in page load catch of pop up window, then the error should go to parent page, not the pop up page. if exception is not occured in the pop up window, it will load pop up only with the contents. Error message is coming from one asp page., please help....

Unable to attach to asp.net worker process as it is not in the process list

I have been succesfully debugging my asp.net site using the Visual Studio 2008 virtual server however all of a sudden it has started timing out when connecting to the debugger with the following message: "Unable to start debugging on the web server. The web server did not respond in a timely manner. This may be because another debugger ...

ASP.NET control events exception handling

Suppose I have a button in an aspx page that performs a save of the form data to the database. In the associated event handler, before sending the updates, I read something from a webservice, operation that might result in an exception. In case of an error I want to have an adequate message displayed on the page, and all the data in the ...

Stop asp.net image control automatically UrlEncoding the ImageUrl parameter

By default the asp.net image control trys to be helpful and automatically encodes anything set to the ImageUrl property, so: imgSomething.ImageUrl = "Generator.aspx?x=1&y=2&z=3"; Becomes "Generator.aspx?x=1&amp;y=2&amp;z=3" The problem is I want to pass Base64 encoded parameters, which I need to manually Server.UrlEncode because ea...

ObjectDataSource Insert throws an Error (using Business Objects)

Hello, Quick overview Trying to insert a Business Object using ObjectDataSource (on a GridView) Get the following Error ObjectDataSource 'ObjectDataSource1' has no values to insert. Check that the 'values' dictionary contains values. Project SetUp Person - simple dummy Business Object (Name and Age) PersonBinder - Holds the metho...

What is the best way to Version an ASP.NET 2.0 Web Service?

I am maintaining a SOAP web service (ASP.NET version 2.0) and I have to make some changes that will modify the return values of particular methods. What is the generally accepted method of doing this without breaking existing implementations. My initial thoughts are that the following would all be possible. a) Provide new version sp...

Injecting html code and responding to post events using ISAPI

Hello. I want to inject the code on each page for arbitrary web application. Lets imagine i want to add rank input for a page that can be toggled on/off using web.config only, without changing the source code. I know I can inject and change html using Filter, but I am unsure if I can respond to the post. Lets imagine user voted and af...

Is the Microsoft AntiXSS library useful and do I need it if I'm using server controls?

I've downloaded and looked at the Microsoft AntiXSS library, but I'm not 100% sure I need to use it for server controls (asp:textbox, etc). Everything is fine when I use it with a standard html control (input, etc). It looks like the output is encoded twice when I use the antixss lib on the server controls. I'm currently only using the...

Resources distribution to IIS processes and standard windows applications

We have a server machine with very good configuration on our LAN 4 GB of RAM 1 TB HDD Quad Processor We can have 2 types of application running on the server ASP.NET web application running under the IIS supervision Standard windows application running with administraive account. My question is how the resources are distributed b...

when insert length of lob data to be replicated exceeds configured maximum 65536

Hi, I am trying to insert value for the column of datatype image in sql server. I am getting the following error {"Length of LOB data (70823) to be replicated exceeds configured maximum 65536. The statement has been terminated."} . The data length is less than 2 MB. What is the problem? Thanks, P.Gopalakrishnan. ...

How to Map Paths in ASP.NET Non-Form Class File

I've been using the following code in my Web form code-behind classes. I want to use it in my regular .cs files: for example, when making database calls. But when I try to use it outside of a Web form I get the following error when attempting to map with base.Request.ApplicationPath: 'object' does not contain a definition for 'Request'. ...

How do you access in-memory services from web applications?

Say I need to design an in-memory service because of a very high load read/write system. I want to dump the results of the objects every 2 minutes. How would I access the in-memory objects/data from within a web application? (I was thinking a Windows service would be running in the background handling the in-memory service etc.) I want...

Authenticated HttpWebRequest with redirection, persisting credentials?

My ASP.NET 2.0 app creates a HTTPWebRequest to a site within a company's intranet, which uses NTLM authentication. The credentials passed are for a service account, which is authenticated on the domain successfully (the security log confirms this) Some abbreviated code follows.. HttpWebRequest req = WebRequest.Create(queryUrl) as HttpW...