I have an asp.net ajax CollapsiblePanelExtender control on my page. The way this control is designed, you can specify one control to open the panel and another control to close it:
<ajaxToolkit:CollapsiblePanelExtender ID="cpe" runat="Server"
TargetControlID="panelStuff"
ExpandControlID="butToggle" CollapseControlID="butToggle" Coll...
I have a asp:textbox that allows a user to enter information. When the user clicks the asp:button, it inserts the text from the textbox into my sql database, and then redirects back to the page. If the user hits refresh, the event from the button gets called again. I need to rectify this so that it no longer gets called or it doesn't rep...
I am trying to bind an ASP.NET hyperlink to the "Handle" column of my dataset like this:
<ItemTemplate>
<asp:HyperLink ID="idTracking" runat="server" NavigateUrl='<%# "javascript:SendPath(" + Eval( "Handle", "{0}") + ")" %>' Text="Test" />
</ItemTemplate>
I would like the NavigateUrl to...
I want extension of the following code for selected value in edit view.
take a case of country -> state -> city.
i have script CascadingDropDownList.js:
function bindDropDownList(e, targetDropDownList)
{
var key = this.value;
var allOptions = targetDropDownList.allOptions;
var option;
var newOption;
targetDropDownL...
I have a collection of objects returned from Subsonic and I want to change a value on them and then save them all, but if 1 save fails I don't want the other changes to persist. I was using linq to sql and using SubmitChanges().
Is there something similar in SubSonic? (I am using 2.1)
...
I've written a helper class that takes a string in the constructor and provides a lot of Get properties to return various aspects of the string. Currently the only way to set the line is through the constructor and once it is set it cannot be changed. Since this class only has one internal variable (the string) I was wondering if I shoul...
I am making multiple sub folders in my App_Code folder to organize my classes and it seems it is working fine, is there any restriction on that?
like:
App_Code
Ui
TextBoxes
Labels
...
I have followed this article on MSDN.
The template works fine but i got 2 big problems.
I can't access the controls in the template even if i decorate the template with these
[TemplateContainer(typeof(MessageContainer))]
[PersistenceMode(PersistenceMode.InnerProperty)]
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSeria...
Hi I am using Resoursce files as described here: http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx
I am setting the culture info programatically as opposed to at the top in the page declaration. Do I need to declare the culture info for each page? Is there something I can do to change the culture info for a...
This morning, I read a very good question about what the person should expect from a Sharepoint position. I have a similar question about server side engineering. What can I expect from server side engineering positions, and how is it similar and different from desktop development?
I have experience with WinForms, WPF, some light mu...
Hi how can I set culture information on a user control? I have set up the resource file but I am unable to override the InitializeCulture() as it is not available in System.Web.UI.UserControl. Can someone point me in the right direction? I want to this programatically. Thank you.
...
i get data (price of volvo cars) my xml or sql database, i have "xyz.aspx" page. How can i open pdf in a web browser. But i want to learn how can i open pdf(data from sql datatable ) xyz.aspx or data in another.aspx...
Sample: Volvos'prices pdf
...
What's the best way to reload assemblies after you do a publish to a website and or gac some assemblies.
An easy trick I've learned is to touch the web.config and it reloads the app domain.
What are the best practices related to this?
Is it possible to update a Server Activated Serviced Component without an IISRESET that is referenc...
Let's say I have a system that stores data for some complex objects in xml. These objects have a weak inheritance relationship: maybe 4 fields common to all of them and then another 20 that are unique to each type of object, say 6 to 8 different types of object.
The data that is unique to each object may itself be complex: things lik...
I'm mocking out HttpRequestBase so I can create an HtmlHelper in test code and write tests around HtmlHelper extension methods. I do this as part of the setup code:
httpRequestBase.Stub(h => h.ApplicationPath).Return("~/");
httpRequestBase.Stub(h => h.AppRelativeCurrentExecutionFilePath).Return(appPath);
httpRequestBase.Stub(h => h.Path...
Hi everyone.
I've got a ASP.NET website that is utilizing many aspects of the Enterprise Library (3.1), including the Logging Application Block. I'm using a custom TraceListener to handle all of the logging requests.
I want to add an email listener that will fire an email whenever an error occurs in the website. To be clear (and beca...
We want to redirect all request in an ASP.NET site to ~/Default.aspx to close the site. We are using IIS7. The site has paths like this that return a page:
http://test.com/operating
We are using url rewriting. We want requests similar to those to be redirected to ~/Default.aspx
http://test.com//
http://test.com/.aspx
http://test.co...
I am using ASP.net Dynamic Data scaffolding. I realize that for a table like
table1: EducationLevel (id,levelname,modby,modon)
table2: Course(id,coursename,modby,modon,belongsToEduLevel)
where belongsToEduLevel is the FK. In this case dynamic data never shows levelname in the grid instead, it shows
Operations | Modon | EducationProgr...
What's the best way to implement "Back to Search Results" in an ASP.NET application? I've been letting users do the BACK button in the browser, but they always get a prompt to resubmit the form.
Is there an effective way to work around this resubmit?
Should I cache the search criteria/url in session and redirect them when they press '...
Greetings!
I've created an APSX web form that returns a remote image based on some supplied parameters. It can be used like this:
<img src="/ImageGetter.aspx?param1=abc¶m2=123" />
ImageGetter.aspx's markup and code look similar to this:
<%@ OutputCache Duration="100000" VaryByParam="*" Location="ServerAndClient" %>
<%@ Page Lan...