asp.net

ASP.NET make a panel visible on click of hyperlink (whilst also cuasing postback for page navigation)

I may be asking the impossible but let me set out my problem: I have a menu in a MasterPage which uses images and mouseover mouseout events for design purposes. On one of the menu options I need to display a set of sub menus options on the click of the parent menu item. The menu item itself also needs to navigate to a specified url. I...

Static event does not update UI

I am using c# and asp.net webforms and I have an event handler on the code behind of an aspx page that handles a static event of a DisplayToUI Class. The code i have works like this:- 1) Default.aspx code behind calls the method WebserviceGateway.request() 2) WebserviceGateway.request() makes a method call to the webservice and also m...

save client page selected value in database

Hi I got a different problem here here i'm loading client page (ex: yahoo.com) in my page using iframesource as yahoo.com Now i want to selecte some specific lines in yahoo.com and i want to store it in my database. Can somebody help me to do this Thank you, Nagu ...

RegularExpressionValidator for multiple emails.

I'm validating a textbox for valid email with this: <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtMailCustom" Text="Invalid address" ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9] {1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" runat="server" /> No...

Zoom Down in EXCEL from an ASP.NET application

Can anybody tell me how to set the zoom factor on an Excel sheet via a ASP.NET application. I believe the Excel Sheet object has a PageSetup.Zoom property which does not seem to be working. When I generate a report in Excel programatically through ASP.NET I get the zoom factor of all sheets in the workbook as 100%. Here is a code sampl...

Why should I use int instead of a byte or short in C#

I have found a few threads in regards to this issue. Most people appear to favor using int in their c# code accross the board even if a byte or smallint would handle the data unless it is a mobile app. I don't understand why. Doesn't it make more sense to define your C# datatype as the same datatype that would be in your data storage sol...

How to get alerts at client side

I want to set an alert service for my website users for there tasks. These alerts are like Messenger alerts. My web site is in asp.net C#. Here is the scenario I want to set for alerts: I retrieve the alert messages for users through a webservice and I want utility which displays alerts for users at client site. Can anyone help me t...

Possible reasons for stylesheets not to be applied?

Hi, We're developing this ASP.NET web app with multiple users on different browsers. One of the users complains that the pages look funny, and after looking at the screen shot he sent, it looks like the css is not applied. According to the bug report, the user is using IE7 (but I suspect it could be IE8). I develop in Firefox, and usi...

What causes a page to render slow?

I am puzzled. I looked at the trace of a pagecall that was "slow" to load according to my boss, causing the page to partially load, and then "jump" to the memorized scroll-place on a postback. I found out eventually, using my trace, that my whole loading, from Begin PreInit to End Render, took 1.94 seconds, 1.5 of which are spent betwee...

Customized bulleted list items in ASP.NET

Hi, I am just a beginner in ASP.NET. My question is simple, I wanna add list items dynamically from the code behind file and I want each item to have a text and couple of images as hyperlinks. The HTML sample should be like, <ul> <li>do foo &nbsp;<a href="#"><img src="some_image.png" /></a></li> <li>do bar &nbsp;<a href="#"><img sr...

How to pass Session from one Application to another?

I am having 2 applications Suppose A and B. I am having a webpage in Application A where i am Setting the Session and in Application B i want to retrieve that session.How can i do that with out using DB? ...

Why doesn't type inference (var) work with the ASP.NET GridView.Rows property?

In this code fragment foreach (var row in grid.Rows) { } the type of row is inferred as Object instead of GridViewRow. I have to explicitly declare the type to work with a GridViewRow: foreach (GridViewRow row in grid.Rows) { } GridView.Rows returns a GridViewRowCollection and GetEnumerator on the collection "Returns an enumerator ...

What are the side-effects of using "invalid" attributes on an asp control?

For a <select> control, we can use the onchange attribute to run some javascript when the option value changes. Intellisense would lead me to believe that the asp:ListBox control does not hold this attribute (as you'll get underlining in visual studio telling you that this is invalid). However, this works. <asp:ListBox ID="roleList...

Credit Card - Card on file services?

Does anyone have any experience with card on file services for credit cards, that handle the storage of credit card information for ongoing purchases? We are looking for a solution that can be integrated with a custom ASP.NET app via a web service or similar but removes the storage of the info from our side of the equation in order to r...

Upload an entire folder's files with jquery.MultiFile.js instead of having to select each file individually

I have jquery multi-file working as shown in link text. However, what I really need is to be able to select a folder, then every file contained in the selected folder to be listed, at which the user could then remove any unwanted files before hitting 'upload.' Has anyone done this with jquery multi-file upload? Would it be difficult to ...

Left Align a label or any control in code

I've created another header row for a gridview programmatically. In this row I have a few controls including a label that I want to align all the way to the left of the cell. The one cell has a columnspan of 7 so it runs across the entire gridview. how do i align that label programmatically?? Dim cell As New TableCell Dim lblfilter ...

Using Amazon EC2 to host Asp.net application

I’m currently developing an application that will be heavy on images, that I hope to host “in the cloud” It’s a c# / asp.net application. So i'm considering using Amazon S3 for storing the images. That bit’s fine. However, i'm considering using EC2 to host the application on. The application uses SQL server (only on a fairly basic l...

Visual Studio 2008 does not add control to designer file when adding it into a Telerik RadGrid EditFormTemplate

I am using a RadGrid to display data gathered from various xml files. I have defined an EditFormTemplate where additional data can be seen/edited. Now whenever I add controls into this template, the designer doesn't add the necessary control to the designer.cs codebehind file. Why? Edit: Most specifically, I have a asp:DropDownList that...

.axd files generate a 404 error

Why do all of my .axd files generate a 404 error when on our production server? ...

Generate A-Z from ASP.NET SiteMap

I wish to generate an A-Z from a SiteMap... I do not use the Web.SiteMap directly, rather a StaticSiteMapProvider, based on this blog post by Simon Harriyott: Adding dynamic nodes to ASP.NET site maps at runtime by deriving from StaticSiteMapProvider How can I go about doing this? Edit: I want an A-Z list, by link title. Could be star...