Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net > october 2007

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

How to get the type of a control
Posted by shapper at 10/31/2007 10:59:19 PM
Hello, I created 3 custom controls: A, B and C. Given a control how can I get its type and check if it is of type A, B or C? Thanks, Miguel ...more >>


Event
Posted by shapper at 10/31/2007 10:46:40 PM
Hello, I have a custom control, named Table, with a property name Rows of type Generic.List(Of Row). Row control can fire an event named RowEvent. How can I detect when one of the Rows that was added to Table control fired an event? Thanks, Miguel ...more >>

How to make this?
Posted by shapper at 10/31/2007 10:38:59 PM
Hello, I am creating a custom control named Parent. Parent has: 1. a child control named Send that has a button inside it; 2. Up to 10 child controls all of them having one textbox. What I need is to implement something that when the button is clicked in Send child control, it looks fo...more >>

Adding a client event handler to tags other than the tagkey
Posted by Nathan Sokalski at 10/31/2007 10:23:30 PM
I want to add a client-side onchange event to the input tag generated by a CheckBox Control. However, because the CheckBox generates the following set of tags: <span><input/><label></label></span> If I try to add the onchange attribute to the CheckBox Control it is added to the span tag ...more >>

Best way to empty a listbox with large amounts of data
Posted by Erik at 10/31/2007 8:57:58 PM
Hi Everyone, I have filled a div with around 10000 items of data. I have got it loading in around 2 seconds but when I come to empty the div by setting innerHTML to "" it takes ages, about 20 seconds to clear. Can anybody tell me a quicker way of clearing the contents of a DIV. I have al...more >>

Regarding Drop down list. Need to set Max size
Posted by Valli at 10/31/2007 6:59:09 PM
Hi, I need to populate a dropdownlist control with values. Number of items for that list exceeds 100. I am using Html select list option. When I drop down the list control, it shows the item list to the top of the page or to the bottom of the page. So I fixed the size of that control as...more >>

Show Alert Box and then Redirect
Posted by Kuldeep at 10/31/2007 5:49:17 PM
Framework: Visual Studio 2005 Technology: ASP.NET 2.0 Language: C#.NET 2.0 Hi All, I have an event procedure as shown below. protected void lnkBtSendEmail_Click(object sender, EventArgs e) { FillVariables(); GenerateDataShuttle(); ClientScript.RegisterStartupScript(typeof(Page...more >>

List of sessions on server
Posted by Ron J at 10/31/2007 5:33:36 PM
For Admin purposes I want to be able to list all the sessions running on the IIS server. I would expect that I could get info like Username and other sessionvars that my application has set. This way I can debug. Can you direct me to info like that? ...more >>



how to exit?
Posted by Paulo at 10/31/2007 5:04:06 PM
strSQL = Server.MapPath("remessa\\") + "CSG" + (DateTime.Now.Year.ToString().Substring(DateTime.Now.Year.ToString().Length - 1) + DateTime.Now.Month.ToString("00") + DateTime.Now.Day.ToString("00")); for (int i = 1; i < 1000; i++) { if (!File.Exists(strSQL + i.ToString("000") + ".rem")) ...more >>

Can we inject rows in a repeater control?
Posted by gnewsgroup at 10/31/2007 4:58:10 PM
OK, I am still trying to achieve something like what is shown in the following PNG image. http://farm3.static.flickr.com/2066/1808692173_ea202973a3_o.png I thought about doing this with a plain Table server control, but the problem is that this control does not provide enough events for us t...more >>

Problems with Repeater
Posted by Luke Davis at 10/31/2007 3:52:30 PM
I'm trying to put this in a Repeater and it's not working it says HyperLinkField does not exist, if it really doesn't exist then what do I use that can do basically this: <asp:HyperLinkField DataNavigateUrlFields="City,State,ZipCode,MedianSales" DataNavigateUrlFormatString="template.aspx?cit...more >>

Custom Control
Posted by shapper at 10/31/2007 2:53:26 PM
Hello, I have a custom control named Parent where I used the following: Protected Overrides Sub CreateChildControls() ... MyBase.Controls.Add(MyTextBox) MyBase.CreateChildControls() Me.ChildControlsCreated = True End Sub Public Overloads Overrides ...more >>

Unhandled Exceptions and Maximum request length exceeded
Posted by Chuck P at 10/31/2007 2:19:05 PM
I have an HttpModule used for Unhandled Exception processing. The module monitors both application.Error += new EventHandler(OnError); //regular UHE AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(OnUhe); //UHE on threads If I do a throw, the firs...more >>

DAAB and Connection to SQL 2000
Posted by at 10/31/2007 1:42:17 PM
Hi, I'm having difficulty connecting my .NET web app to my SQL2000 database via the DAAB. I'm using VS2003 with .NET 1.1. I'm currently trying names such as Initial Catalog, Data Source, User ID and Password. But i have previously attempted server, database, user, uid, Pwd, etc. all to no a...more >>

Gridview Refresh Problem
Posted by randy.buchholz at 10/31/2007 1:35:59 PM
ASP Nub having problem. I have two sets of gridviews on my page, (using SQlDataSources to bind). Pairs of PO and PO Items. The first set represents a current Purchase Order (Grid1)and the LineItems (Grid2). The second pair represent a new PO (Grid3) and its LineItems. Grid4) cloned from t...more >>

Static variables in ASP .NET/VB .NET
Posted by RB at 10/31/2007 1:23:34 PM
Hi clever people :-) I've noticed a lot of people stating not to use static variables with ASP.NET, and, as I understand it, the reason is because the variable is shared across user sessions - which is Very Bad (tm) for reasons I understand! However, does this rule apply only to global s...more >>

Event syntax problem to call up the selected event of an ods
Posted by msch-prv NO[at]SPAM bluewin.ch at 10/31/2007 12:58:12 PM
I would like to raise the selected event of an objectdatasource (ods) to retrieve some data. I tried to raise this event using a server button. I am at a loss as to how set up the RaiseEvent syntax arguments. Question: is it possible to call this event from a button server control? Thanks for...more >>

Async Pages & Ajax progress bar?
Posted by Dave at 10/31/2007 12:21:01 PM
I'm using an async page to kick off a couple of asynchronous web services using the PageAsyncTask class. I'm also testing a progress bar that uses an Ajax UpdatePanel and Timer control to postback every 5 or 10 seconds and increment the progress. However, Is there a way to merge these two ...more >>

Deny Access to MP3 folder
Posted by asadikhan NO[at]SPAM gmail.com at 10/31/2007 12:09:53 PM
Hi, I have an Audio folder under WWW on my website. My site is hosted with an online company. Inside the Audio folder I have bunch of mp3s. I want to embed these mp3s using flash, but I do not want to allow users to simply browse to the mp3 file and be able to download it. Here is my web.conf...more >>

Create user within the Login Control
Posted by TheDude5B at 10/31/2007 9:51:48 AM
Hi, I have a problem with existing customers from an old site, coming to my new asp.net 2.0 site with the user roles and membership, and trying to login with their old details. As you know, the new built in membership encrypts passwords (I know you can use the system without encrypting the ...more >>

treeview in master page loses state when new page is selected
Posted by Brian at 10/31/2007 8:35:03 AM
I have a master page that contains a simple treeview populated using a SiteMapDataSource so the data is static. Here is my problem. When I expand the menu to show the 2nd level treeview items and then click on one to move to the selected page, when the new page is displayed the treeview has ...more >>

Adding a custom header to the response
Posted by Jeff at 10/31/2007 8:35:01 AM
How can I add a custom header value to the response? I try: Response.Headers.Add("MyHeader", "Value"); Response.AddHeader("MyHeader", "Value"); Response.AppendHeader("MyHeader", "Value"); nothing works. A lot of times I get a message about IIS integrated pipeline mode needing to be enabl...more >>

Catch... try block
Posted by JJ297 at 10/31/2007 7:44:22 AM
If I enter a new topic I don't get your topic was submitted... If I enter in a duplicate I do get teh duplicate error message. What am I doing wrong? Catch ex As Data.SqlClient.SqlException 'Throw New ApplicationException("An error occurred while trying to insert the record"...more >>

GAC'd library not loading due to different versions of .NET
Posted by downloads4birdman NO[at]SPAM gmail.com at 10/31/2007 7:32:58 AM
Trick Or Treat! I have a web server setup to host both .NET 1.1 and .NET 2.0 web applications. The applications are isolated by virutal directories (VirtDir1 points to C:\Inetpub\wwwroot\app1, VirtDir2 points to C: \Inetpub\wwwroot\app2, etc). The ASP.NET property for each virtual directory i...more >>

ListView EditItemTemplate
Posted by onseats.ky NO[at]SPAM gmail.com at 10/31/2007 6:51:14 AM
I'm trying to get access controls in the EditItemTemplate of a list view when the user edits an item. I need to set focus to a textbox in this template after post back because the ListView is in a long scrolling div. Without setting focus the user needs to scroll down the div after postback to g...more >>

Enum
Posted by shapper at 10/31/2007 4:42:20 AM
Hello, I have the following Enum Public Enum Mode Required Validate End Enum How can I make a variable of type Mode to hold both Required and Validate values without needing to add an option to my enum named RequiredValidate? And how can I check if that variable contains...more >>

HttpContext.Current.User returns null (forms authentification); how to use custom role and membership providers together?
Posted by alexandis NO[at]SPAM gmail.com at 10/31/2007 4:04:14 AM
There are tons of articles about custom role and provider membership, but they just tear me apart and confuse :( The situation is following: I use DB2, so I wrote custom role + membership providers. Membership provider seems to work. I use forms authentication, so as articles say, I need to d...more >>

addHandler/DomEvent/get>Locatuonj performance issue
Posted by Sergei Shelukhin at 10/31/2007 2:23:34 AM
Hi. We have a performance issue with the keyup handler that is attached to a textarea control using $addHandler when the page loads. Every time the user presses a key in textarea, DomEvent object is built and for some reason getLocation method gets called. This method is rather slow and typi...more >>

Two question about Master Page
Posted by lichaoir at 10/31/2007 12:00:00 AM
I have two questions about the use of Master Page: 1. How to access properties and controls in the master page from content page? (I know I can use the "FindControl()" method of the "Master" Property to access the controls. But how can I access the properties? I've tried to write a property in...more >>

Static variables on IIS 5
Posted by Mark Stevens at 10/31/2007 12:00:00 AM
I have an ASP.NET (.NET 2) application with a something similar to the following: public static class A { protected static string str; // Other methods... } Public Class B : A { // Public methods using str... } My query concerns the singleton nature of str. So if my site has two...more >>

Creating controls dynamically based on user input
Posted by at 10/30/2007 11:43:33 PM
I can think of a lot of reasons why this might need to be done but as far as I can tell it's not possible. I've been looking for a way to add HtmlTableRows to a table using a button click for a while and it seems it's not possible because the row that gets added with each click won't get recreat...more >>

How to dynamically insert rows into a Table control?
Posted by gnewsgroup at 10/30/2007 10:46:29 PM
I am new to the asp.net Table web control. I am using it to customize my presentation of data. I cannot implement the idea with DataGrid or GridView. Basically, I would like to have something like what is shown in the following PNG image. http://farm3.static.flickr.com/2183/1805431357_1fa...more >>

Counting the number of specific days in a year
Posted by crabb at 10/30/2007 8:39:03 PM
I would like to know if anyone knows how to set up an app that would count the number of specific days in a user defined year. example, how many Sundays, Mondays, Tuesdays, etc. in 2007 or a user defined year, june 07 - june 08. I really don't know where to start, but we are working on financi...more >>

Generic maintenance of tables
Posted by Sehboo at 10/30/2007 8:27:28 PM
We have several tables that we want to maintain on our webpage. User should just pick the tablename from drop down box, and then page should then populate the grid with the data from that table along with "Edit" button. If they click on Edit then they should be able to do an in-line edit of th...more >>

Help with img tag and VS 2005
Posted by Lloyd Sheen at 10/30/2007 7:45:26 PM
I am trying to move away from server image tags (don't need a postback) and am having a real difficult time getting the image to show properly. The following code is in a repeater: <table> <tr> <td> ...more >>

Problem with Listbox having dynamic content with a minimum width
Posted by cshaw NO[at]SPAM tarasoft.com at 10/30/2007 6:33:28 PM
Hello Everyone, I am having problems with a listbox control. I have a page with a couple of labels and drop-down lists at the top, and then below there is a table with two columns, the first column contains a listbox and the second column contains some buttons. I am trying to display it such tha...more >>

connecting vs 2005 to remote SQL server 2000
Posted by Me LK at 10/30/2007 6:08:07 PM
I did a search but could not find an aswer that worked so here it goes. I just did an upgrade from 2003 to vs 2005 express. I am using a remote sql server 2000. I specifically upgrade to make use of the login control. Everything upgraded fine and the site is working on my local machine. ...more >>

Property. What am I doing wrong? Going crazy ...
Posted by shapper at 10/30/2007 5:27:42 PM
Hello, I have a custom control under namespace MyNameSpace.WebControls with a property of type validation: ' Validation Private _Validation As Validation < _ Bindable(True), _ Category("Behavior"), _ DefaultValue(""), _ Localizable(True) _ > _ Publi...more >>

AJAX file upload
Posted by Rastko Soskic at 10/30/2007 4:23:57 PM
Hi everyone, I need to implement async file upload (like attaching file to email message in hotmail). Now, asp.net ajax partial updating does not support file upload. So, any guideline, info, suggestion how to achieve this? Thanks in advance. ...more >>

Sync client side info to server
Posted by Lloyd Sheen at 10/30/2007 4:20:26 PM
Here are the components: Using VS 2005 Pro / ASP.NET / AJAX.NET / VB.NET Here is the application: I have an app which has a navigator/search facility to find media files available to my app and then using the media player ActiveX play them. It can get a list of files and using Javascript...more >>

Can set but not read contents of a label!
Posted by Andy at 10/30/2007 4:11:01 PM
Hi, I have a datagrid with a label in the first column (the key basically). The issue is, that on pressing a standard button outside the datagrid (ie not one per row) I can SET, but cannot READ the text of the label. I want to READ the value too!!! I've copied the basics below, from the co...more >>

IHttpHandlerFactory and file upload
Posted by Steven Voordijk at 10/30/2007 3:02:43 PM
I'm using the IHttpHandlerFactory to do URL rewriting and generate webpages. One of those pages offers the possibility to upload a file with a <input type="file"...> tag. When the user clicks the submit button, the file should be uploaded and saved. But because of the use of the IHttpHandlerF...more >>

Debugger not working in copy of VS 2003 ASP.Net
Posted by DCC700 at 10/30/2007 2:57:31 PM
After making a copy of a working ASP.net solution I am able to run the debugger in the original solution, but not in the new one. The project builds and runs in the new solution but ignores any breakpoints. I checked the typical debugger problems such as in the following article with no luck....more >>

Request not available
Posted by David C at 10/30/2007 2:49:58 PM
I have an aspx page that contains an iframe where I point to another aspx page. In the aspx page that is in the iframe, I have VB code as follows: <script language="vb" runat="server"> Dim strFolder As String = Request.QueryString("fldr").ToString Dim PathVar As String = Server.MapPath("...more >>

CS0007: Unexpected common language runtime initialization error -- 'Access is denied. '
Posted by sri_san NO[at]SPAM mailcity.com at 10/30/2007 2:37:23 PM
Hi Group, This annoying and mysterious error has been troubling me for quite sometime now. The detailed compiler output is below : ------------- [No relevant source lines] c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework \v2.0.50727\csc.exe" /t:library /utf8out...more >>

Accordion panel onclick event
Posted by John Graham at 10/30/2007 2:11:45 PM
I have a form where I separate several of the sections with the use of an accordion. Because of the requirements I have, I need the form to be saved every time the user clicks on a different pane of the accordion. I am not able to find an event I can use to do this. Any suggestions would be a...more >>

Nested Repeaters Question
Posted by andrew.douglas11 NO[at]SPAM gmail.com at 10/30/2007 1:32:53 PM
Hello all, Is it possible to share controls inside a child repeater? Here's the situation: I have a web page that needs to display data grouped by A, and alternatively by B (only one grouping displayed at a time through Panel.Visible). A and B both share common child data: C. I have 2 pare...more >>

confirm in asp.net
Posted by Betina Andersen at 10/30/2007 1:16:00 PM
Hi The following was posted in microsoft.public.dotnet.languages.vb - but they sait it could not be done, and that I should have posted here instead. I am using vb in asp.net and I need to have a confirm in the middle of my code(code-behind), but cannot get the confirm to display when I w...more >>

ASP.NET Database Abstraction
Posted by Joseph Gruber at 10/30/2007 12:46:38 PM
Hi All. I'm a PHP programer moving to ASP.NET for this project I'm working on. The project I'm working on will require that the ASP.NET application support multiple databases (e.g. Oracle, MySQL and MSSQL). I've done some google searching but am not finding an answer to my question. Is the...more >>

Dynamic style sheet link.
Posted by David W at 10/30/2007 12:45:55 PM
I need to include a style sheet link in the aspx page based on what user they are. Basically this functionality, but using code behind. Any idea how to change this line to code behind? This breaks once we include an AJAX control on the page. <head runat="server"> <link href="/textfi...more >>


DevelopmentNow Blog