asp.net

How to Reference ConnectionString in ASP.NET?

Hi there, I have a web project and a separate project for a class which contains a constant and I am thinking of adding a connection string. What is the best way for storing this? Thanks ...

How to encapsulate list that has class property?

How to encapsulate below codes (i need refoctoring) public class mycollection { private DateTime tarih; private int sira; private int visitingcount; public DateTime TARIH { get { return tarih; } set { tarih = value; } } public int SIRA { get { return sira; } set { sira = value; } } pu...

ASP.NET manuplating Excel sheet

I need to manuplate an excel sheet workbook (add sheets/ add data/ hide columns / protect cells with password / change fields contents/ etc etc) should I use the COM objects provided by microsoft (but then i think they have few problems being used in asp.NET) or is there a good (commurcial or free) library / plug in to be used for doin...

ASP.NET CheckBox state and PostBack

I have a simple task - to change page link on checkbox state change - but I'm new to ASP.NET and have some trouble. I can do the same using HtmlControl and JavaScript: <script type="text/javascript" language="javascript"> function checkbox_onChanged(checked) { if (checked) { document.location = '?type=request_in&show=all'; ...

403 on new web application

Hi I've just installed IIS on my machine and tried to create a simple default page site. On the creation of the project the VS said that it could not configure the server and I sould do it manually. I opened IIS and "created" the site and gave it a name I also changed the security tab to allow anonymous access, and the asp.net version t...

How can I stack an unknown number of ASP.NET Repeaters?

Hello all. I am building a pop-out menu, and the client wants it to be able to pop out continously based on a heirarchy. For example, the first pane is a list of options. When they are hovered over, another pane should pop up next to it with the next level of options, and so on until the last level of options is reached. I can handle ...

Recurrent events and Outlook export

I have a calendar on my website and i need to add recurrent events and outlook export. What is the best way to handle recurrent events? (mssql + C#) How can I export multiple events to outlook 2003? Thanks. ...

Open Source Feedback Tool in C#?

Hi Guys, Just wondering whether anyone knows of any good open source tools similar to a Digg or StackOverflow but where issues can be voted up / feedback left etc ? So essentially a feedback / support tool for users ? Prefer it in ASP.NET MVC but any ASP.NET will do ? Thanks ...

ASP.NET jQuery Ajax posting forms

Hi, I can't seem to get the jQuery.ajax() function posting back any of my asp.net generated form controls. I've put a break point on the server side and there aren't any values. Is there a way around this or do I have to build up a list of what I want sent back? Another question slightly off topic, but it seems that although jQuery i...

MVC App works in IIS 7, does not work in Cassini (IIS 7, too)

hi, i have a mixed app (asp.net webforms, later mvc added) and it runs in iis 7 on vista but does not run on cassini on the same box and with the exact same files in the webroot. actually, webforms work as expected but all mvc routes are 404. what can i do to diagnose this issue? ...

ASP .NET c# retrieve total non-paged memory usage remotely

Hello, I'm working on a simple ASP .NET health checker and I've run into a few obstacles. 1) I need to be able to get the full non-paged memory usage from a remote machine (on same network). I've tried using System.Diganostics.Process.NonpagedSystemMemorySize64 however I've come to realize that the kernel's nonpaged usage is going to b...

ASP.NET requests queued, can I identify what these requests are?

It seems helpful to find out what kind of requests currently in the queue when the queue blocked. Are there any ways for me to know the infomation of them? e.g. request url, client ip, cookie, body... ...

VB.NET Repeater Simple Data Binding Without Datasource

Hi, Im a ASP.NET beginner. I previously asked how to do some databinding to a repeater without a datasourse. Here. http://stackoverflow.com/questions/926619/vb-net-repeater-simple-data-binding-without-datasource here is the solution someone got for me Dim repeatTimes((TotalAdInsured)) As Integer myRepeater.DataSource = repeatTimes...

ASP.NET Change Dropdown Control ID Inside Repeater Item Dynamically

hi, Can someone tell me how I can get this to work. I want to distinguish dropdown controls inside a repeater control. I understand now about the lifecyle and how the buffer is already writen, but what are my alternatives? Here is what happens Code File Dim repeatTimes((TotalAdInsured - 1)) As Integer myRepeater.DataSource = ...

Many appdomains for a web application in under iis7

Hi, I have a monorail web application running on iis7. It appears like two concurrent requests are handled on two different appdomains! As far as I know, each application should have one appdomain and multiple httpapplications to handle requests... Is there something I am missing? (configuration perhaps?) ...

What's the best way to create a onlinehelp from a word document

I have a 47-page word document containing information about all the functions on a website including screenshots etc. The document is created using styles in word and has a table of content. What would be the best way to convert this document into a nice online help? I want the users to be able to search the text and browse the informa...

ASP.NET Find DropDown Value Inside Repeater Control

ok, ive had a few questions on this subject, i hope Im clearer this time. I want to find the values from a number of dropdown controls inside a repeater control. I eventually want to build a multidimensional array, so I can loop through each item and add them to a database table. <asp:Repeater ID="myRepeater" runat="server"> <ItemTempl...

How do I save an Image from an url?

How do I take an image from an url and save it locally? http://someurl.com/imagename.jpg -> c:\apppath\imgfolder ASP.NET C# I am not very good with IO stuff, hope someone can help me out :) ...

ASP.NET Find DropDown Value Inside Repeater Control Part II

Hi, ive had a few questions on this subject, still having problems. I want to find the values from a number of dropdown and textbox controls inside a repeater control. db.ConnectionString = SystemConnString db.Open() Dim selectedAdTitle As String = "" Dim enteredAdFullName As String = "" cmd.Parameters.Add(New SqlPara...

What's with the line break variations in C# and ASP.NET? (\r\n vs.\n)

I've been writing code for ASP.NET since the start, and today I encountered something I've never seen before. Typically I've looked for line breaks in C# (when posted in ASP.NET from a textarea, for example) by expecting "\r\n". Now I'm using the MVC framework, and the text coming over the wire from a textarea simply has "\n" for line br...