I am running my website on IIS. The default page shows this message:
Server Error in '/Enterprise/EnterpriseASP' Application.
Unable to cast object of type
'System.Web.Security.SqlMembershipProvider'
to type
'EnterpriseASPClient.Core.EnterpriseMembershipProvider'.
Description: An unhandled exception
occurred during the ex...
I'm trying to use the GRID control in the MVCContrib library with my controller. The paging control for their Grid seems to have a big limitation, it only outputs a URL as MyPage.aspx?page=2. So when I press NEXT PAGE on the control is spits out "MyPage.aspx?page=2"
My control looks like this:
public ActionResult Index(int? page)...
When I start my application I get: The ConnectionString property has not been initialized.
Web.config:
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=localhost\sqlexpress;Initial Catalog=mydatabase;User Id=myuser;Password=mypassword;" />
</connectionStrings>
The stack being:
System.Data.SqlClient.S...
I have a simple ASP.NET web form with several ReportViewer controls running in local mode. Every time the page loads, each ReportViewer loads the report definition and also regenerates the dynamic expression_host assembly. This is obviously time consuming and will not scale very well. Is there any way to have the ReportViewer cache th...
I have a page which loads children pages by using jQuery's .load function...
My children pages have buttons to perform some data exchange with the database server and most of them are doing ok.
the problem is that some buttons are inside ModalPopupExtenders (ajaxtoolkit). When I run the children page alone (outside the parent) the moda...
We've got an ASP.NET website that uses a database that we want to be able to use a connectionstring to get to. We've successfully set up a DSN for connecting to this DB, but I can't seem to discover the correct magic to go with a connectionstring.
Is there a straightforward way to translate the values from the DSN into a connectionstri...
I'm trying to iterate over the Style property of a control in ASP.NET. This is of type CssStyleCollection, which has a reference page on MSDN.
There is some sample code on that page for iterating through the collection and getting both the keys and values for each item in the collection. It looks like this:
IEnumerator keys = MyText.St...
I'm deploying an ASP.NET application to Windows Server 2003 under IIS
IIS is serving html pages fine but I get a page not found when I try and serve IIS pages
...
Hello,
I am embedding Adobe Acrobat in our c# program by inheriting AxHost and passing in the Acrobat guid("ca8a9780-280d-11cf-a24d-444553540000") to the base constructor. To load a pdf I call InvokeMember("LoadFile"). The problem I am running into is after calling "LoadFile" and the PDF loads, Acrobat takes the focus in our form. Being ...
I have a TextBox in a Panel on an aspx page.
I need to disable a RequiredFieldValidator if the textBox is not enabled.
If the Panel is disabled, and TextBox.Enabled is True, then the textbox is disabled on the page (which is fine.)
So how can I find out if the TextBox is disabled on the page if the Enabled Property is not reliable?
N...
I've got this method that returns a Linq-to-SQL query for all the rows in a 'UserStatus' table:
public IQueryable<BLL.Entity.UserStatus> GetAll()
{
var query = from e in _SelectDataContext.UserStatus
select new BLL.Entity.UserStatus
{
UserStatusId = e.UserStatusId,
En...
How to close jQuery thickbox from server side - I want to cause the thickbox (frame style) to be closed from a line in the server - when an action is done etc.
I use the thickbox to show a file upload dialog, and once the upload is complete, i wanna dismiss the thickbox from the server's code behind (just like it would do with the 'Clos...
Hello Friends
I am looking to find a way to just simply know the selected node in TreeView using javascript.
suppose there are n number of nodes in the Parent Child Relationship, then what i want to get value of the selected node in javascript so that i can manipulate and work on the values selected in javascript rather than do a full p...
I've inherited a pre-compiled website that uses javascript created in a generic handler (ashx). I need to modify the js, but I dont have the source, only the pre-compiled libraries. Currently, we're simply doing an http request on the ashx, modifying the result and then outputting it directly on the site:
<script runat="server">
p...
Hey guys,
Perhaps I'm going about this all wrong (and please tell me if I am), but I'm hitting my head against a wall with something that seems like a really simple concept.
This Render override is coming from a User Control.
protected override void Render(HtmlTextWriter writer)
{
string htmlAboutToBeRendered = writer.GetWhatHasBe...
Can anyone suggest a good control that can be used to display images (png's most likely and it will always be one type that I can dictate). The images would be available server side only so I don't have to worry about clients uploading anything. Just displaying images on a server.
The control needs to have the following functionality...
So I am stepping through my code and now I run the project again to move onto another breakpoint. However my project doesn't move on instead it crashes saying that I have exceeding the timeout limit for a webservice.
How can I increase the timeout limit for web services so I stop getting these exceptions?
...
I'm using C# and ASP.NET 2.5.
I want a simple way to generate a "file" on-the-fly (let's say a csv file for this example) and transmit it to the client without actually writing it to the server file system.
...
Note:
This question has broadened in scope from previous revisions. I have tried to simplify the issue so it can be easily reproduced by anyone.
Using Fiddler, I can replay an arbitrary request to my default page after erasing my Authorization header from the HTTP request, and I am able to get a response of 200 OK with valid data.
...
Good Day,
I have created some webforms that will allow users to fill in their data. Afterwards, the information is processed and inserted into a database with a follow up email to me afterwards letting me know who signed up.
The problem is that I use different email addresses on all of these webforms.
What I would like is some sort o...