I think I know the answer, but is it possible to have the global.asax Application_Error event modify a textbox on the original page and not move the client to a different page? something like:
Exception exp = Server.GetLastError().GetBaseException();
System.Data.SqlClient.SqlException sqlex;
if (exp is System.Data.SqlClient.Sql...
Can somebody tell me why Jquery is erroring out at this point?
<script type="text/javascript" language="javascript">
var myLayout;
// a var is required because this page utilizes:
// myLayout.allowOverflow() method
$(document).ready(function() {
myLayout = $('body').layout({
// e...
When I'm adding a new strongly-typed view to an ASP.NET MVC project, I can select between different view content templates (Create Details, Edit, List). I have read these are templates based on the Visual Studio T4 code generation engine.
How can I author and configure my own templates and let them appear in the available templates when...
I have a web service with some data that I need to pass across sessions. I was thinking of using the application object.
1) Is this a good idea?
2) Some of the data will grow old and I'd like to purge
it out so that the application object doesn't constantly
grow. What is the best way to do this?
Thanks
...
I have a specific Content Page (with an existing Master Page) that pretty much just has basic text wrapped with some <p>, <ul>/<li>, <h3>, <h4>, <blockquote> tags...like a blog post.
Is this ok to hardcode all of this html into my content page? Is there a better way (design-wise) to put text into an ASP.NET web page?
...
Hello,
We are considering/evaluating EF for a new ASP.NET project.
Please tell if you are using, or have used, EF v1 on a project ?
Please also tell how was your experience with EF in web or desktop application ?
Thank You.
...
Hi,
I've created a Web Service that I need to use in my .ascx page. I can't just add this:
<asp:ScriptManager ID="OWUScripts" runat="server">
<Services>
<asp:ServiceReference Path="~/OWUDashboard.asmx" />
</Services>
</asp:ScriptManager>
Because then I have multiple ScriptManagers on the page. So I did a little resear...
I have an apache server runing on win 2003.
i configure the mod_aspdotnet like
this guide link text
to enable asp.net web app
and all ok. just for one web app...!
is there any way to configure more the one app?
thanks.
...
Is it possible to make one master page simply include another master page?
I have three master pages, which have converged in content, and I want to make 2 of them point to the third, so that the content is not replicated, but leaving them in so that they can change easily in the future if they have to.
...
I'm updating one object, and trying to update any child objects along with it.
Basically I'm handling the OnUpdating event of a LinqDataSource.
In the DataContext class I have the ObjectUpdate function (where right now I've just got a breakpoint so I can see the values...)
In the LinqDataSource.OnUpdating event e.NewObject.Child i...
I have a gridview that uses an imagebutton as an update button. When the user edits a row I would like the user to be able to update the row by pressing Enter. The problem I'm having is that though the RowCommand event is fired, the CommandName is still "Edit" instead of "Update
so my update code never gets executed. What I've done is...
Hello,
I’ve noticed that on several occasions that MSDN uses “wrong” terminology when referring to events and their event handlers. For example:
The ProfileAutoSaving event is raised at the end of page execution if the ProfileManager.AutomaticSaveEnabled property is true. You can access the ProfileAutoSaving event of the ProfileMo...
Here's my situtation. I have a Repeater bound to a List, which is rendering Table rows. I'm using <%# DataBinder.Eval(Container.DataItem, "SomeStringProperty")%> to display my data. The problem is that when the SomeStringProperty is null, string.Empty, or " " (some whitespace), the border for my TD is not getting rendered. Its as i...
Hello,
1) I assume profile data is automatically retrieved only for current user, while profile data for other users must be retrieved manually?
2)
I’m not sure what the following quote is trying to convey:
If you define a profile in web.config file that doesn’t exist in the serialized profile information, the ProfileModule w...
I have an ASP.NET gridview that has dataentry textboxes in the footer row. After the user adds a row, I reset focus to the first textbox in the codebehind using something like Textbox1.focus() in the gridview update handler. The problem is that although it looks like the textbox gets focus (the cursor is flashing in the textbox) you can'...
Let's say I am building a bunch of UserControls in an ASP.Net Web application, and that all those user controls inherit from a custom base class that I have created, which in turn inherits from System.Web.UI.UserControl.
Now let's say that I (via my custom base class) want the contents of each user control to be automatically wrapped in...
I must say that so far, I've probably just been darn lucky in that I've never come across the problems associated with a web site running in medium trust. I've only ever developed intranet apps or happened to have use a hosting company that runs in full trust. But the host I've been asked to use for a recent project runs at medium trust ...
I am hoping to implement search in my asp.net website. I have been searching the web, but I am not sure which way to go. Here is what I am looking for:
ability to search the text in static pages on my site
exclude pages or folders that I don't want to search
code must be in vb.net or c#
must be something I can quickly implement
.net 2....
I am an ASP.NET/C# developer by trade but am looking to take on some PHP/MySQL work on the side. Can anyone recommend some good resources for me? Websites and books would be appreciated.
I looked at this question but didn't find the answers particularly helpful. More specifically, I'm looking for PHP equivalents of what I have been usin...
I created a C# web project with MSVS 9 and thats all i know about my configurations.
In my browser i can access any aspx files i have in my project. However when i use http://localhost:3288/img/test.png i see nothing. The working directory is ./root, the png file is in ./root/img/test.png How do i have ASP.NET display my images and ever...