asp.net

Integration of Asp.Net website and Workflow Foundation

I'm building a web application which has some processing of user requests involved. A user submits request for something, it goes through few steps and channels and its status changes through some predefined statuses, in the organization before being approved or rejected. During processing the ball may roll back to the user's court for s...

ASP.NET validation

I have a little problem with the validation in one form the form is composed by two taqs. There is a "Save" button in each tap (is the same control for both) and saves the form info. there are validation controls in one tab but not in the second. When we try to save the info from the second tab, and the info has not been filled in the fi...

Multiple Update Panels -- Doubt

Hai, I am using 1 main update panel which contains Search criteria and a Search button. In side this main update panel I am using 4 update panels. These four update panels fetching search results from different 4 SQL quires. Currently I did this. But my question is, currently the page will come to display after fetching all all 4 update...

With VS2008 + ASP.NET, is there a way to perform a clever "Publish" ?

By clever, I mean NOT TO upload once again the files that has been already uploaded (with the same dates, size or checksum...). It would be great, because the Publish method takes a lot of time! ...

How to get the Accordion in ASP.Net Ajax Toolkit to resize?

Hi, Does anyone have any ideas how to get the Accordion control in the ASP.Net Ajax Control Toolkit to automatically resize so that it fills the DIV element it is contained in, and will react to that element being resized? Thanks! Martin ...

ASP.NET Version control

How do i set the version on a asp.net project? as the properties dont contain any thing... there is no project file in the folder where the webpage is. ...

ASP.NET repeater alternate row highlighting without full blown <alternatingitemtemplate/>

I'm trying to accomplish simply adding a css class to a div on alternate rows in my <itemtemplate/> without going to the overhead of including a full blown <alternatingitemtemplate/> which will force me to keep a lot of markup in sync in the future. I've seen a solution such as http://blog.net-tutorials.com/2009/04/02/how-to-alternate-r...

Applying style using javascript dosent work always

Hi, I am applying style to div using javascript it appears well at the first time but when I click an image to open a virtual window the applied css goes away. How can I apply style using script that stays forever. **There is no way left for me to apply any style at design time because I am using ready made user control and I get ID f...

Send Email on GMail SMTP under medium trust

Hi I need to send an email from my app, which will be running under medium trust. My current email sending code that works fine under full trust throws SecurityException under medium trust [SecurityException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77...

how to Validate Client Side with jquery and Server side at same time ?

hi, i really love the jquery validation plugins, look neat stylish and accessible, but as you know JavaScript can be turned off and boom your user can enter what ever he wants, therefore you should validate on server too, so what is the best approach here ? do double validation one with jquery and one on server side or is there a better...

Replacement for window.sessionStorage in Javascript?

I have an application with a launch page that needs to determine what is already opened, so it does not reopen things that are opened already in another new tab. In Firefox, I was able to make this work, by using window.sessionStorage to store the titles of pages that are open, and then use window.opener with the following code to remove...

Should I use an auto-generated Primary Key if I'm just doing a lookup table?

I have a table which has two varchar(Max) columns Column 1 Column 2 ----------------------- URLRewitten OriginalURL its part of my url re-writing for an asp.net webforms site. when a url comes in I do a check to see if its in the table if it is i use the OriginalURL. My question is, if all I'm doing is querying the table for ...

Looking for examples of simple web-based form designers...

I have a requirement to implement a "simple" web-based form designer that allows "simple" users to create their own web-based forms. I've come across these things in rich clients, such as Outlook and Acrobat, but my requirements are much simpler and must be web-based. Pretty layout, custom validation, complex fields and types are simpl...

Setting a css class to HtmlInputCheckBox in C#

Hello, I am creating an HtmlInputCheckBox in C# and I am trying to set a css for it, but I cannot. Can anyone give me a sample code? For example, the one below is not working. HtmlInputCheckBox FieldCtrl = new HtmlInputCheckBox(); FieldCtrl.ID = "CheckBox1"; FieldCtrl.Style = "CheckBox"; ...

ASP.Net OutputCache: User Controls That Are Cached

Is there a way to obtain a list of User Controls (an/or instances of user contols) that have been cached? The Cache object's collection doesn't seem to include OutputCached items. Thank you. ...

Time out period not elapsed, but still timing out (see code)?

OK I keep getting this error after about 3-4 minutes of churning: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the e...

ActionFilter to share archived order data and current order data

Just wondering if anyone has used an actionfilter to make it possible to share the view for a specific type between archived info and current info? Example: public class Order { protected IList<int> _products; public Order(IList<int> products) { _products = products ?? new List<int>(); } public virtual void...

Reading a binary file and using Response.BinaryWrite()

I have an app that needs to read a PDF file from the file system and then write it out to the user. The PDF is 183KB and seems to work perfectly. When I use the code at the bottom the browser gets a file 224KB and I get a message from Acrobat Reader saying the file is damaged and cannot be repaired. Here is my code (I've also tried us...

What is the JavaScript equivalent of C# Server.URLEncode?

What is the JavaScript equivalent of C# Server.URLEncode? ...

.net cookies, do I have to send to browser?

Hi, After I create or modify a httpcookie, do I have to do add it to the response.cookies collection? (if yes, only if its a new cookie or even if I am modifying one) ...