Is there any way to use something like BlogEngine.NET (a blogging framework developed on the ASP.NET web forms model) in an ASP.NET MVC application? I want something where I can simply go to http://rooturl/blog and have it fire up the BlogEngine.NET site. I'm assuming that the ASP.NET MVC framework will intercept this call however and ...
I have an ASPX page that is dynamically creating a gridview from a database table. Each time the gridview is created on postback, I set the AutoGenerateDeleteButton attribute to true. However, the first time the gridview is created the delete button isn't displaying. I wrote the value of AutoGenerateDeleteButton and it is True. When ...
We were experiencing errors with one of our web methods on a test web server we have. The main error was:
"Access to the path 'E:\websites\Discovery\ProfileService\App_Data' is denied"
Looking further down the stack trace gives a little more info:
"at System.Web.DataAccess.SqlConnectionHelper.CreateMdfFile..."
"at System.Web.DataAcce...
After trying to understand why client code is not rendered in a page (injected by user control) I found this link, it turns out you must have a form tag for it to work (Page.RegisterClientScriptBlock did declare this but ClientScriptManager.RegisterClientScriptBlock which I use does not say anything regarding this).
I am using Visual stu...
I would like to run a bat script on one of the machines on the domain, from my asp.net application. Machine with the batch script is a temporary storage machine, and script synchronizes it with the permanent storage machine. So, what is the optimal way of doing this?
The thing I tried is to use PsExec to run a script on the remote machi...
i have a repeater than creates a table:
<itemtemplate>
<tr id="theTableRow" runat="server">
<td>
<asp:LinkButton runat="server"
OnClientClick="todo"
Text="Do Something" />
</td>
</tr>
</itemtemplate>
Note: the OnClientClick="todo" line.
In the final rendered code, i want the todo to...
Why would an event handler work one day, and then stop working the next day without any code changes?
I have run into the problem many times, but always have to play around and somehow the event handler magically works again. Below is an example where this happened to me again today. Do you know a quick way to fix this type of problem...
I have a Web Application project in Visual Studio 2008. (lucky you, you say? ha ha..)
It is Created from new, it's not a migrated project.
It's a file based web application project so IIS and FPSE blah are not involved.
I have the 'Delete all existing files prior to publishing' option selected from the publish dialog.
The result...
We have a multilingual site that utilizes asp.net 2.0 cultures. The current culture is set through the url rewritten as a query string. (~/es/blah.aspx is the spanish version of ~/blah.aspx - rewritten as ~/blah.aspx?lang=es)
The code that tests the culture is as follows:
System.Globalization.CultureInfo ci;
try
{
...
i want to use an asp:LinkButton, since it looks like a link, but has server-side Click handler.
But the web-server seems unable to detect if javascript is disabled on the client, and doesn't render into a mechanism that still works.
Is it possible to have a link that looks like a link, but has server-side OnClick event handler?
Answ...
Is there any way i can access the page object from within the global.asax Application_EndRequest function ?
I'm trying to set the text of a label at the end of the request but accessing the page is proving to be more difficult than I thought.
here is what i have that's currently NOT working:
protected void Application_BeginRequest(Obj...
I'm basically looking for the event that is the opposite of FormsAuthentication_OnAuthenticate. I want to remove some values from the database when a user logs out. I tried putting it into the Session_End event, but it seems that the user is already gone by the time this executes.
Update:
If I can't determine when a specific user is d...
I have an extension method on the HttpApplicationState object for getting my IoC container out of the application. This same code will also create the container if it doesn't exist.
I have 2 questions:
Is my code actually thread safe as I intend it to be
Is this considered the best practice for dealing with the application state
Cod...
First I must say that my problem happens when I'm trying to post to another form.
I have 3 controls in a form:
1. text input named "text1".
2. file input named "file1".
3. submit input.
the form itself have a post method to another page.
in the page load of the posted page I'm using Request["text1"] which gives me the text of "text1". ...
I am trying to set up a streaming WCF service using basicHttpBinding. The service is hosted in an IIS7 process.
The contract contains a simple Stream GetStream() operation.
When I connect with a simple client using a Service Reference I get the following result from the server.
Content Type multipart/related; type="application/xop+xm...
I have a class split across two files. One of these is generated, the other contains the non-generated stuff.
I want my class to inherit from a base class. Do I need to have both files inherit? Or will the class inherit from the base class if either partial class
In generated foo.vb:
Partial Public Class Foo
Inherits BaseCl...
We got strange error last days. ___doPostBack is undefined.
We are building quite advanced website, but not using postbacks much. One of place where postback used is ASP.NET Login Status control.
It is probabalystic, sometime it is rendered, sometimes - not. For IE, Chrome it works mostly fine, but from FireFox it is quite high chance ...
I have found a lot of material on the web about using the ASP.NET Membership Provider with the wsHttpBindings, but I haven't seen any reference to using it with webHttpBindings.
I am looking for a system that will work in two scenarios:
The user is logged into an asp.net website and the website is making calls to the service.
The user...
Hi there im using a single TextBox for querying differents types of chossings, for example when i select the first RadioButton (Last Name) I search by Client last name, when i choose second RadioButton (Doc. Code) I search by code and so on, please how can i manage or handle exceptions when for example if user choose "Search by Date" and...
i have a bit of aspx code that uses Eval to generate a call to a javascript function:
ASP.NET (wrapped for readability):
<asp:LinkButton runat="server"
OnClientClick='<%# Eval(
"NodeGUID",
"return DoStuff(this, \"{0}\");") %>'
Text="Do stuff" />
this generates javascript similar to:
Javascript (wrapped for r...