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 > january 2006 > threads for wednesday january 25

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

ASP.NET and COM+
Posted by tyler.lloyd NO[at]SPAM gmail.com at 1/25/2006 11:26:44 PM
I have an ASP.NET web page that references a COM+ object. That COM+ object is written in VB.NET. That code contains many calls using System.DirectoryServices. I'm running into some very strange errors when the website is under load and have been reading that DirectoryServices might not be thread...more >>


Any good Rich Text Editors for ASP.NET 2.0?
Posted by VB Programmer at 1/25/2006 10:53:09 PM
Any good Rich Text Editors for ASP.NET 2.0? Preferably a simple one at no charge/free. ...more >>

VS 2005 Crash
Posted by Jarod at 1/25/2006 10:47:56 PM
Hey If you make a control that has property like this: public string Text { get { return this.Text; } } There is a stackoverflow and VS 2005 designer crash. When you don't use a visual designer and you just add manually code to the page you will get an error while debugging. I think ...more >>

Regular Expression
Posted by Øyvind Isaksen at 1/25/2006 10:35:47 PM
Can anyone please help me make i regular expression (asp.net / vb.net) that check if a password is more than 5 digit/char? Example passwords: whK5v = valid password hd3 = invalid password lksds883 = valid password .. .. .. Thanks ...more >>

themes and skins in ASP.NET 2.0
Posted by Quynh at 1/25/2006 10:14:31 PM
Hi, I have a question regarding themes and skins in ASP.NET 2.0. Since I have images in the application menu bar and since the menu bar is defined in the web.sitemap file, how could I apply a theme (SkinID) to modify the images ? Thanks ...more >>

Button doesn't post back/click code doesn't run
Posted by VB Programmer at 1/25/2006 10:02:02 PM
For some reason all of a sudden my button on my webform doesn't run it's code. I have checked that the "runat=server" and that the "Handles cmdButton.click" is at the end of the sub. Any ideas? (Using 2.0) Here's part of my html... : : </table><br /> <asp:Button ID="cmdSa...more >>

how google spider access my web site?
Posted by baroque Chou at 1/25/2006 9:47:54 PM
anyone know how google spiders access web site, how dose they manage to get the href information? do they have special access right or something? any help is appreciated ...more >>

I need opnions
Posted by Felipe Bahiana Almeida at 1/25/2006 9:10:02 PM
Hi everybody, My concern is about exams. I'm majoring in comp sci, i'm a year of my graduate and this year i'd like to take a certification with my diploma. I want you to tell me what to do about exams, because a new generation of exams is about to begin and I wanna know if it's better wait or ...more >>



OT: Why Free? What's your deal?
Posted by Jeff at 1/25/2006 8:56:12 PM
This post is directed at those who ask for free stuff. It happens all the time in this group: e.g., "I want some super duper component that does a bunch of amazing things. It's gotta have x and y and z. Oh, and it don't forget w. And I want it for free. Any recommendations?" There's all ...more >>

How get total MB of a set of files in a dir?
Posted by VB Programmer at 1/25/2006 8:20:07 PM
I have a videos directory with a bunch of videos in it. The video filenames begin with the username, such as "jsmith_01.mpeg". I want to find how many MB of video files the current user has in the videos dir. Any idea how I can do this? Thanks! ...more >>

disable checkbox list checkbox
Posted by Vikram at 1/25/2006 8:16:57 PM
How to disble a particular checkbox list item in a checkbox list ...more >>

Formatting a GridView date?
Posted by David Veeneman at 1/25/2006 8:12:15 PM
How does one format a date column in a GridView control? I had assumed that the DataFormat string would do it, but MSDN only shows numeric formatting codes. Can dates be formatted using that property, or is it done some other way? Thanks in advance. -- David Veeneman Foresight Systems...more >>

DropDownList ListItem Rendering &nbsp;
Posted by PJ at 1/25/2006 6:59:54 PM
Is it possible to prevent the drop down list from html encoding the text in ListItems? I would like to put some spaces to add padding to certain items with spaces, but when it it rendered asp.net escapes the ampersand. It even does this for the htmlselect control. Thx ~PJ ...more >>

Handeing Session and authentication timeout through callback scrip
Posted by Nahrin at 1/25/2006 5:57:01 PM
I implimented ASP.NET 2.0 Client callback script (ICallbackEventHandler) to get the result back from server without postback the page. Problem is when seesion expires or authentication times out, callback script does not do anything and hangs. If I click another key which requires postback aft...more >>

Problem with decryption
Posted by Showjumper at 1/25/2006 5:43:14 PM
I have solved my previous decryption problem wherein i was getting a specified cast is not valid msg. My new problem is htis: The password is not being decrypted. I am using Rijndael. The code is from Pro ASP.NET 1.1. The string being returned looks like 3B746F54E9D44721D6CE1337498FDB823B...more >>

Nullable strings as parameters
Posted by Mark Rae at 1/25/2006 4:09:07 PM
Hi, In v1.1 I used to simulate nullable datatypes with structs. e.g. public struct NullableString { private readonly String pstrValue; private readonly bool blnHasValue; public NullableString(String strValue) { this.pstrValue = strValue; this.blnHasValue = true; } public Str...more >>

Edit word doc and save back to website
Posted by David Thielen at 1/25/2006 3:48:02 PM
Hi; I've see this done so I know it's possible. How can I set things up so a user clicks on a rtf file on the website, that launches it in Word where they edit it, and then when they click the save button in Word, it uploads it back up to me? And can I get an event when they exit word so...more >>

Good ASP .NET book?
Posted by David Thielen at 1/25/2006 3:47:02 PM
Hi; Is there a good book for people (like me) that know .NET, but don't know ASP ..NET? Preferably one that is not a gazillion pages long. -- thanks - dave...more >>

New to ASP.NET
Posted by C.C. (aka Me) at 1/25/2006 3:24:31 PM
Ok.. I am quite proficient with C# in terms of non-web apps and have decided to take a look at ASP.NET. I am familiar with HTML, HTTP and general web "ideas" but have not done much with ASP (more of a PHP coder myself.) So.. I have watched quite some of WebCasts that MS has put out and have ...more >>

ASP.NET 1.1 HttpContext.Session question
Posted by Hardy Wang at 1/25/2006 3:22:26 PM
Hi, I have a web application, code of ASPX page needs to call one static method in another class which does not inherit System.UI.Page class using System.Web; public class Utils { public static void GetSessions() { HttpContext ctx = HttpContext.Current; ctx.Sessio...more >>

read or convert xml file to a string
Posted by Jon Paal at 1/25/2006 2:47:00 PM
how can I read an xml file and convert it to a string or convert an XmlTextReader to a string ...more >>

Access and ASP.NET working together - any advice?
Posted by phil cunningham at 1/25/2006 2:33:44 PM
I am using Access to run a database within the company and also have a website that makes some of the information available to the general public And so far everything is working very well q. is there any problem using Access to do all our internal work while the DB is exposed to the web ...more >>

badly stuck creating HTTPHandler
Posted by Ivonne Riedel at 1/25/2006 2:10:33 PM
Hi everybody, I have got a serious problem building an HTTPHandler in codebehind style. I made the following steps: Create an ASP .net Website project Add a generic handler. Rewrite this "Hello World" item into codebehind style so that the .ashx file has the only line: <%@ WebHandler Langu...more >>

Abandon Session
Posted by Houston Lucifer at 1/25/2006 2:07:01 PM
Hi all, If i issue the Session.Abandon command will that clear the whole session or just the session variables. The reason i ask is i use forms authentication (cookieless) to login to the app. I have a loginview control on the master page which displays contents based on the login state. I hav...more >>

Select a Row
Posted by Houston Lucifer at 1/25/2006 2:03:03 PM
Hi all, i need to select a row in the gridview programatically(without clicking the select button). I hope this is easy. Am i missing something? Thanks for the help....more >>

Sending Mail via System.Net.Mail problem
Posted by Opa at 1/25/2006 2:01:03 PM
Hi, I'm trying to send mail from my ASP.NET application using the new System.Net.Mail classes. The code is fairly basic string SMTPServer = "smtp.atlanticbb.net"; SmtpClient client = new SmtpClient(SMTPServer); client.DeliveryMethod = SmtpDeliveryMethod.Network; client.Se...more >>

Regarding Print option in Dotnet
Posted by kumar at 1/25/2006 2:00:39 PM
Hello every one, Can any one help me how can i print values of my webpage with just a button in the webpage. From http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework-aspnet.htm Posted via DevelopmentNow.com Groups http://www.developmentnow.com...more >>

external links using a sitemap, 2.0
Posted by fernandezr at 1/25/2006 1:56:41 PM
I've successfully created a dynamic menu pulling data from a database however all links thus far have all been virtual urls such as /ABCD/default.aspx, /ABCD/profile.aspx, etc. Now I want to add urls that are external to my site such as http://www.rathergood.com/moon_song/ or http://www.cnn.com...more >>

when is the databind event of an asp:objectdatasource supposed to be fired?
Posted by ibiza at 1/25/2006 1:54:24 PM
Hi, well my question is the title of this topic : when is the databind event of an asp:objectdatasource supposed to be fired? It seems to be random after a few tests...sometimes it is fired before page_prerender, sometimes after...is it normal? ...more >>

Problems with session and application variables
Posted by Steven at 1/25/2006 1:17:04 PM
In my code I assign a value to a session variable such as Session("CustID")=Customer. The value persists until I hit a command button. When this occurs the code before the 'If Not IsPostBack Then' executes (which doesn't explicitly affect the value) but I inmediately lose the session and ap...more >>

Catch errors when updating a DetailsView control
Posted by stuart.d.jones NO[at]SPAM gmail.com at 1/25/2006 1:03:54 PM
Hi, I have a DetailsView control bound to a SqlDataSource. I've got everything working nearly as I want, but here's my problem. I have a table which has a Guid as a Primary Key, and a VarChar field (a Title) which is also unique. If the user edits the Title field in the DetailsView to mak...more >>

ViewState Collection
Posted by SouthSpawn at 1/25/2006 1:03:47 PM
Hello, Let's say I am creating a class library project. This class that I am creating will work for a windows form project and also a asp.net project. How can I store something in the "ViewState" collection in a class library project? Thanks, Mark ...more >>

Web UserControl inheritance in VS 2005
Posted by Yuan at 1/25/2006 12:35:12 PM
It seems that VS 2005 doesn't allow inheritance for web usercontrols. I created two web UserControls, WebUserControl1 and WebUserControl2. I replaced base class of WebUserControl2 to be WebUserControl1 (public partial class WebUserControl2 : WebUserControl1). When compiled, got error: "The type ...more >>

Is anyone else using Public Modules with Public Variable in aspx
Posted by Steve Mauldin at 1/25/2006 12:23:28 PM
Having weird things happening with my code. Two users on at the same time and data entered by one user is added into another users global variable. global variable data being stored in session variable between pages. any ideas? ...more >>

Reading Single Value from a SQL DB
Posted by Jim in Arizona at 1/25/2006 12:16:39 PM
I'm having trouble pulling a single value from my SQL DB and filling a string type with it. Something like: Dim strConnection As String = "server=localhost;uid=sa;pwd=password;database=tickets" Dim objConnection As New SqlConnection(strConnection) Dim strSQLSubject As String Dim objComm...more >>

Script Attribute Definitions...
Posted by Mike Rand at 1/25/2006 11:39:06 AM
Hi, I am trying to find "clear" definitions of the "type" attribute in the <script> element. <script language="javascript" type="text/C#"> Specifically, I am trying to find out: 1) Why it is necessary to specify a "type"? (it seems redundant to "language"). 2) Why am I able to specify a...more >>

Casting a DBNull
Posted by .Net Sports at 1/25/2006 11:01:07 AM
I'm trying to match fields from XML feed to a datarow, but I get a "System.InvalidCastException: Object cannot be cast from DBNull to other types" error at the PkgAmount line. This code was converted from original C# code, so I'm wondering if it has something to do with C#'s strict datatype crit...more >>

how to display Footer in a gridview even if there is no data bound
Posted by ibiza at 1/25/2006 10:52:27 AM
Hi, well, I'd like to know how to still display the footer of a gridview even if there is no data bound from the db. That is because I use the footer to put my inputs to add a new record, so I need to be able to add records, even if there is none yet... thanks! ...more >>

Aligning text
Posted by Joe at 1/25/2006 10:51:02 AM
Hello All: Is it possible to align text (left, center, right) in a label, literal or literalcontrol? I haven't seen any examples and can't seem to work this one out (which means that it is probably straightforward ;)). I know I could use a CSSClass, but am wondering if there is something ...more >>

Any suggestion for ASP.NET caching mechanism on this?
Posted by B at 1/25/2006 9:57:33 AM
Hi, I'm working on a site where the user must log in before they see the home page. When the user logs in, I retrieve their role from the database, store it in a Session object and redirect to the homepage. The home page contains a navigation menu (user control) which displays links avail...more >>

what happened to msdn demo servers
Posted by Alex D. at 1/25/2006 9:33:54 AM
does any body knows what happened to the demo servers? ...more >>

from ASP.NET to HTM
Posted by Dan at 1/25/2006 9:24:55 AM
How do I get an HTM page ( say INDEX.HTM) from an .aspx file in VB.NET? (I am assuming that is doable) Thanks ...more >>

post back
Posted by VA Handerson at 1/25/2006 9:15:17 AM
I coded the simple page using ASP.NET extension. this code is located under the virtual directory called DEVWRK. I typed the link as blow and it works http://localhost/DEVWRK/ASPDOTNET/SimpleHTML.aspx but when I submit the form, I have a message saying "The page cannot be displayed". ...more >>

First net 2.0 project, where is the DLL?
Posted by Steve at 1/25/2006 9:11:50 AM
I can't find the DLL for my website? I found the aspx pages, but can't find the dll. Please, someone clue me in please. Thank you. ...more >>

Issuing a POST from code behind
Posted by Curtis Justus at 1/25/2006 9:03:16 AM
Hi everybody, I have a page that needs to follow these steps: 1. User performs a search; 2. Items are displayed in a grid; 3. User clicks on link in the grid causing the page to issue a POST with an encrypted hidden field to a page on another site. I suppose one way I could do it is ...more >>

Binary Stream Excel Client Problem
Posted by Don at 1/25/2006 8:48:35 AM
Response.ContentType() = "application/vnd.ms-excel" Response.Charset = "" Response.BinaryWrite(stream) The code when executed causes the client to open an excel document and display the information. Included in the stream is a clock hh:mm:ss that appears in the content....more >>

Framework Configuration manager V 2.0
Posted by poppy at 1/25/2006 8:22:02 AM
I have just installed Version 2.0 of the .net framework on a spare machine at work and run "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis /i" The problem is that I cannot find the Framework Configuration manager in Control Panel/admin tools for version 2.0 though 1.1 is still...more >>

how to retrive Current ApplicationId
Posted by TdarTdar at 1/25/2006 8:13:02 AM
Hello, what is the code to get the running applications "ApplicationId" Thanks Tdar ...more >>

Help with user control
Posted by Ryan Ternier at 1/25/2006 8:11:52 AM
I'm playing around with a user control that I think might help one of my projects. I'm having an issue with it retaining the controls inside a placeholder that are added dynamically. Here's the code: Calling code from the page that contains the control: ---- protected void btnShowHis...more >>

Bug list for VS 2005?
Posted by Rob R. Ainscough at 1/25/2006 8:09:09 AM
Does anyone know where there is a known issues list with VS 2005 including VB.NET and ASP.NET with .NET framework 2.0? Found another potential bug yesterday with the VS 2005 IDE, it seems to get confused about indenting source code in any Web Application projects. From within VS 2005 IDE -...more >>

Connection String in .config file - Security Concerns
Posted by WebMatrix at 1/25/2006 8:02:07 AM
Hello, I have developed a web application that connects to 2 different database servers. The connection strings with db username + password are stored in web.config file. After a code review, one developer suggested that it's a security flaw; therefore connection strings should be kept som...more >>

Image Transformation
Posted by Stimp at 1/25/2006 7:35:13 AM
I've been hacking at this for 15 mins, but haven't really got too much time to spend on it today, so maybe someone here can suggest a quick fix or suggest if there is a function built into asp.net that I could look at... Say I have an image that's 600 x 480 pixels and I want to create a new ...more >>

How can I reference a nested datagrid itemdatabound event?
Posted by needin4mation NO[at]SPAM gmail.com at 1/25/2006 7:27:08 AM
Hi, I have a datalist. In this datalist I have a datagrid. The datalist is the master. The datagrid is the detail. It works fine. I populate the datagrid inside of the datalist using the datalist's itemdatabound event. Now I need to do some work in the itemdatabound event of the datagrid ...more >>

SystemIndexOutOfRangeException error
Posted by .Net Sports at 1/25/2006 6:47:56 AM
I'm drawing data from xml file, putting it into datarows, from datatable subroutine (UseXMLDocument) , and I'm getting a "System.IndexOutOfRangeException: There is no row at position 0" at the " Data.Append(dtaData.Rows(0)("Name") & "<BR>") " line. '''''''''''''' <%@ Page Language="VB" debug=...more >>

GridView Binding
Posted by Smash at 1/25/2006 6:18:51 AM
I have problem binding gridview.... At first i didn't want to bind gridview at first page load...so in my objectdatasource_selecting event i wrote this: If Not Page.IsPostBack Then e.Cancel = True End If Thats solved the problem for the first bind.... Now I have date textb...more >>

No I need to start a thread to read RSS feeds?
Posted by Stephane at 1/25/2006 6:01:02 AM
Hi, In my ASP.Net application, I want to read a list of RSS feed every 30 minutes. To start this, I check the current minute and I do a modulo 30. Once it's started, I check in my database and I call all RSS feed that I have. It's actually about 10 RSS feeds, but it can grow up to 400 or 50...more >>

Help on session ??
Posted by serge calderara at 1/25/2006 5:43:03 AM
Dear all, I have an ASP.NET 1.1 application which need to transfert a QuerryInfo structure through pages. At first I was using Session("Query")=Queryinfo nad then read it back from page event of sucessives web form. As you cannot rely on the existense of session due to time out issue, how...more >>

LINK with another domain
Posted by Marina Limeira at 1/25/2006 1:58:57 AM
my domain this www.aaaaaaaa.com/video.htm and my video is hosting here per example: http://www.domain.com/video/apresentacao.wmv How the user execute the video but not see the o domain hosted ? the user imagine the video is in aaaaaaaaa.com domain also exemple to me? thanks Mar...more >>

Generating XML comment documents from ASP.NET C# code-behind
Posted by netcommander at 1/25/2006 1:50:02 AM
Hi all, Can anyone shed any light on how I generate the XML comment documents from the C# code-behind files in a ASP.NET web project in VS2005? I can't find any properties relating to it if I right-click the project name in Solution Explorer. It's a different story for a C# windows applic...more >>

Display Access Database OLE Object
Posted by Seok Bee at 1/25/2006 1:36:03 AM
Dear Experts, I'm using the asp.net 2.0 fileupload control to upload files into Access Database. The file types that being uploaded may be in word, excel or image format. Therefore, I would like to seek your help to show me how can I have a link in my webpage to view this file by reading fr...more >>

If a button is not visible
Posted by drewdr NO[at]SPAM yahoo.com at 1/25/2006 12:00:00 AM
Is there some way where the code in the Button1_click sub will still run ? What if the button is disabled ? ...more >>

Why does a Label control *not* UrlEncode its Text?
Posted by Kevin Frey at 1/25/2006 12:00:00 AM
Can anyone tell me the logical reason for the above. I've read the documentation and made note of the fact that the Label might be used to display user input, which might be malicious script etc, but I'd like to know why the content isn't UrlEncoded for a Label control? If one wants unenc...more >>

Best Practice Security
Posted by Steve B. at 1/25/2006 12:00:00 AM
Hi, I've build an application based on some Web Services. Web Services are separated across some asmx files, according the business service it provides. In each web service, there are some webmethod that are accessible for all users, and some others one that requires more rights. Wha...more >>

Gridview and subheadings
Posted by Malcolm Miles at 1/25/2006 12:00:00 AM
I would like to add subheadings rows into a Gridview. I have looked at the methods used for the old datagrid <http://aspnet.4guysfromrolla.com/articles/072603-1.aspx> but that requires explicit code to create a dataset, rather than using the sqldatasource method. Is there any "simple" way to ...more >>


DevelopmentNow Blog