asp.net

Convert Floated Divs/Images into single Image

Bit of a weird one here - I've created a map with various image overlays floated over the top using CSS for a web app which is built in asp.net; it looks and works fine in the browser, however the page the map appears in is sometimes converted to a Word document for editing, after conversion the map either disappears if using background ...

Sitemap Node URL not accepting Multiple querystring

In the sitemap file, I have sitemap Node URL which have more than 1 query string, like... <siteMapNode url="~/abc.aspx?m=2&c=2" title="title" description="" /> but I am getting error at '&' how to handle multiple query string? ...

How can I check if user passes a valid date in javascript?

I have a javascript function that checks for a date range. Is there any way to check if a user has input a valid date in a textbox, regardless of format? function checkEnteredDate() { var inputDate = document.getElementById('txtDate'); //if statement to check for valid date var formatDate = new Da...

Validation are dissapearing while deployment in asp.net

I have a asp.net validation in test box when i debug and run in vs2008 web developer edition is working fine. But when i display the code in the production server by copy pasting the code in web root folder its not working. I am developing the application using vs2008 web developer edition in windows 2003 server, i am deploying the cod...

Displaying webserver information without breaking security.

Simple question: I am working on a website and want to display a page with some useful information about the web server, but without providing useful information to any potential hacker. What kind of (server) information is safe to share and how do I get this information when using Visual Studio 2008? ...

Strange behavior for macro parts on umbraco site

Umbraco version: umbraco v 4.0.0 (Assembly version: 1.0.3327.20280) Asp.Net: .Net framework 2.0 Windows server 2008 with IIs7 Sometimes when viewing a page with a contained macro, the macro part of that page is completely removed, not rendered, no error no nothing only a incomplete page. Loading the same page again, it's rendered corr...

telerik asp.net controls clear client-side

Hi I'm using telerik rad controls for asp.net I have to clear the inputs with javascript; but telerik controls (radcombobox e.g.) generates a huge markup so how to clear telerik controls on a page in client-side? thnx ...

ASP.NET SqlMembership Provider Scalability

I've got an upcoming project that is going to be dealing with 70,000+ users (education). I was wondering if the ASP.NET SqlMembership Provider has been used at such large capacities? Assuming the hardware is there, is there anything special that needs to be done to make it work smoothly? We're doing all the obvious things like separat...

ASP.NET Querystrings

Hey guys... I got this code in order to build an url for the link using a querystring from the current page. The problem is.... It doens't work. Any suggestions? <asp:hyperlink ID="link1" runat="server" NavigateUrl='<%@("Equipamentos.aspx?ID_Cliente=")+Request.QueryString ("ID_Cliente").trim.tostring()%>'>Equipamentos</asp:HyperLink>...

How to capture submit form response "different domain"?

I have a case where i want to submit a form and get the response from this submit, because based on this response "at least submit complete response" i will make some other logic. What makes my case is different that this form is on a domain and i am submitting it to another domain name so can't use ajax submit due to cross script secur...

Using SelectParameters in ASP.NET gives 'Must declare variable' errors

Hi, I have an ASP SqlDataSource connected to Sybase DB query, using Select Parameters that are populated by a dropdown: Dropdown (works OK): <asp:SqlDataSource ID="dsBondIDList" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" ...

Handle MasterPage event on ContentPage

I have a button on my MasterPage and I want the ContentPage to handle the Click event of the button. Here's what I have so far: //Event in MasterPage public event EventHandler Search_Submit; //ButtonClick event in MasterPage protected void SearchButton_Click(object sender, EventArgs e) { if (Search_Submit != null) ...

checkbox array loop in c#

I am receiving long string of checked html checkbox values (Request.Form["mylist"] return Value1,Value2,Value3....) on the form post in ASP.NET 2.0 page. Now I simply want to loop these but I don't know what is the best practice to loop this array of string. I am trying to do something like this: foreach (string Item in Request.Form["...

How do I zip on the fly and stream to Response.Output in real time?

I am trying to use the following code: I get a corrupted zip file. Why? The file names seem OK. Perhaps they are not relative names, and that's the problem? private void trySharpZipLib(ArrayList filesToInclude) { // Response header Response.Clear(); Response.ClearHeaders(); Response.Cache.SetCa...

Adding to a ASP.NET user control constructor

Hello, I've created an asp.net user control and I am trying to add logic to the user control's constructor. When I added the constructor to the user control I received an error telling me there were duplicate constructors. I'm assuming asp.net is creating one for me and then creating mine separately. How do I add logic to my User contro...

Does Response.Redirect use the same session or start a new one?

I would like to be able to use the same Session variable when transferring to another app. Does Response.Redirect use the same session or start a new one? I am using c#, aspnet 3.5 ...

Is there any MVP template for Visual Studio

like the MVC Framework provided by MS to create folder structure? ...

How to set Async Page Directive Dynamically so Async Methods work

I am writing some Utility code to send off emails Async. var mailClient = new SmtpClient(smtpHost); mailClient.SendCompleted += new SendCompletedEventHandler(mailClient_SendCompleted); using (var mailMessage = new MailMessage()) { if (!((System.Web.UI.Page)HttpContext.Current.CurrentHandler).IsAsync) { // set to Async?...

Generic Lookup Table Replacement

About five years ago I started using Generic lookup Tables for applications I was developing. I know, I can hear the sighs and your fists pounding against your desks, but it has proven to cut development time dramatically. If you want a recap, and a strong voice against lookup tables, Jake Christian does a good job summarizing it here: ...

Is it possible to modify Databound content on the fly?

Sorry if the post title wasn't clear, I will try to explain a little better here. I am working with a web control that is databound to a data table. The output of the data is as such: <asp:Repeater ID="RssRepeater" Visible="false" EnableViewState="false" runat="server"> <asp:literal ID="sb_description" Text='<%# DataBinder.Eval (Co...