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 > november 2004 > threads for tuesday november 9

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

How to create nested controls inside a DataGrid?
Posted by James Moore at 11/9/2004 11:05:19 PM
I've got a datagrid. One of the elements in the grid is a comma-seperated string. I'd like to split the string and create N linkbuttons, one for each element of the string. Creating the grid with the original string isn't a problem, but I'm not sure what the best way is to create the indi...more >>

Lazy Loading Grid Object
Posted by blackhawk at 11/9/2004 10:18:01 PM
I need to build a web page that has to potentially display a large amount of data in two grids on the same page. The HTML file with all of the formatting is about 7MB in size. This is too large and I need to implement some kind of "client side" lazy loading. What I mean is this: I want ...more >>

RegularExpressionValidator Question
Posted by Patrick.O.Ige at 11/9/2004 10:03:03 PM
If i want to validate an email address like hardcode@coder.com i can use:- ValidationExpression="^[\w-]+@[\w-]+\.(com|net|org|edu|mil)$" what about if i have an email like:- hardocode@coder.com.ng or hardcode@coder.co.uk And where can i find full tutorials on how to manipulate this expression...more >>

Property Accessor Function Problem?
Posted by Leon at 11/9/2004 9:49:49 PM
Why this code is not working? I think the problem is in the business class code. ****My Business Class------------ ' Private variables '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Private Shared myStateID As String Public Shared Function GetS...more >>

Max QueryString size
Posted by Guadala Harry at 11/9/2004 8:44:27 PM
How much data (Max K) can go into a QueryString? Thanks ...more >>

problem in the dataset
Posted by Raghu Raman at 11/9/2004 8:39:58 PM
Hi , i have a class and has a method which accepts a qry and results a dataset.In my aspx page,i have a dataset .am filling this dataset by calling that class in the pageload event.is working nice . since the dataset is the object, holds disconnected data, i am trying to get the data f...more >>

Dynamic menu on www with ASP.NET
Posted by biela at 11/9/2004 8:23:15 PM
Hi I'm from Poland and I have small question :). I'm looking for sample example how to create dynamic menu. Generaly my website will see like that ------------------------------------ 2 ---------|--------------|----------- | | 1 | 3 | 4 ...more >>

Replacing char
Posted by anonymous at 11/9/2004 7:13:54 PM
Hello, I need to replace this char =C2 with another char.=20 However I am not able to acieve this. I tried this but it=20 doesnt work: str =3D str.Replace(chr(asc(194)), "") Can somebody help ?...more >>



get the date from the calendar
Posted by Manny Chohan at 11/9/2004 6:49:01 PM
Hi guys, i am new to calendar control. i need to extract the selected date from the calendar control however the code that i have retrieves the time default to 12:00 as well is there any way i can get it in format 11/07/04. Heres my code: TextBoxEndDate.Text=CalendarEndDate.SelectedDate.Dat...more >>

Debugging in Live Environment
Posted by Robin at 11/9/2004 6:10:44 PM
What is the best way to debug an ASP.Net application in a live environment where VS.Net can not be installed? ...more >>

dynamic images
Posted by Alfonso Paredes at 11/9/2004 5:45:03 PM
I have an image button that displays an image generated from another page imgButton.ImageUrl=otherpage.aspx; this image changes frecuently from post to post everything works almost fine, the page behaves perfectly on Netscape and firefox, but in some IE browsers and Opera, the image never...more >>

Web Service Session trouble :(
Posted by Angelos Karantzalis at 11/9/2004 5:06:19 PM
hi guys, I've a couple of web services. The first one authenticates a user, and saves the principal in the session object. The second one authorizes after reading the user data from the session. Up to now, those two worked wonderfully, and we've had no problems with them. but now, we're ...more >>

Using createPopup on a single button.
Posted by Thomasa Gregg at 11/9/2004 4:55:47 PM
I have a contextmenu that I only want to show when right clicking on a single button. I have the menu working but it happens on the entire page. What am I doing wrong? Thanks Private Sub ContextMenu() Dim ConnectionString As String = ConfigurationSettings.AppSettings("ConnectionStrin...more >>

testing/developing asp with visual studio .net
Posted by Earthlink at 11/9/2004 4:45:07 PM
Hi, I've taken an interest in developing ASP .NET web applications and I want to use Visual Studio .NET which I already have for my development. My problem is that I do not have a server on my machine I can use for testing and apparently you cannot even create a web application project without on...more >>

anybody used Aspose.Word
Posted by Craig G at 11/9/2004 4:43:51 PM
we are looking at the possibility of using Aspose.Word in our asp.net application to produce a simple doc, which will be a batch of standardised letters with different names addresses etc just wondering has anybody else used this? and what are your opinions on it? Cheers, Craig ...more >>

OleDbConnection Good, SQLConnection Bad??
Posted by Ludvig at 11/9/2004 4:27:40 PM
This Exception is executed when using SQLConnection. OleDbConnection connects fine. [FileNotFoundException: The specified module could not be found.] System.EnterpriseServices.Platform.Initialize() +503 System.EnterpriseServices.ResourcePool..ctor(TransactionEndDelegate cb) +11 Syst...more >>

Framesets - Event in frame 'A' triggering update of frame 'B' - How ?
Posted by JAW at 11/9/2004 4:20:32 PM
I have posted this in a couple of the other newsgropus but have not recieved any responses. Thought I would try it here. I have a frameset that contains frames (top and bottom). In the bottopm frame I have a datagrid, with a command button on the first column of the grid. When I click on the...more >>

how to wait for object with single threaded application
Posted by Paul at 11/9/2004 4:14:04 PM
Hi just wondering if there is a way to set up a wait for object in vb.net as if a put a delay in between the fill and the databind things work ok, but if not the page is reloading without the updated information,(stored procedure is taking too long to complete). the time needed for this del...more >>

Ok. I give up! Help please
Posted by Chris at 11/9/2004 4:08:02 PM
Hi, I was following the article http://msdn.microsoft.com/msdnmag/issues/03/12/DesignPatterns/default.aspx I got everything working until I go the the Progress bar section. Here is where I am stuck. This is the vb.net code for the wait.aspx page Public redirectPage As String = "" Publi...more >>

Access to internal database
Posted by CMan at 11/9/2004 3:47:24 PM
Hi , We have a internal database application which we now need to update from a website hosted at an external site. We want users to be able to come to the website and see their very latest information. They should be able to update this data and submit it to a holding area before it is che...more >>

wwwroot Question
Posted by Patrick.O.Ige at 11/9/2004 3:32:02 PM
If i create a new website must my home directory be in the inetpub\wwwroot ? Because when i have it place somewhere else i can't open a web project using Visual Studio .Net! And is it possible to use different IP address on IIS for different websites? Any ideas? ...more >>

Username regular expression
Posted by Andy G at 11/9/2004 3:09:33 PM
I am trying to validate a username text box. This text box comes off of a registration form where the user types in a username, I want to validate that they used between 6 and 15 alphanumeric characters in the username. Could be all numbers or all characters or a combination of the 2 and allow ...more >>

MailMessage - including graphics
Posted by Bijoy Naick at 11/9/2004 3:04:50 PM
I'm using the MailMessage and SmtpMail classes to send HTML emails from my website. Just wondering if there is a way to include graphics with the email, which I can reference in the HTML. ...more >>

usercontrol objects
Posted by nicholas at 11/9/2004 2:53:55 PM
I have an aspx page. On that page there is a user control (ascx-file) that contains user-login info. How can I access variables defined on the ascx-page (usercontrol) from within my aspx-page. I tried for ex. to put a textbox (MyTextBox) in the user control. But when, on my aspx-page I try...more >>

Getting proper Stack information from memory dump
Posted by Microsoft News Server at 11/9/2004 2:45:35 PM
Hi, I am currently having a problem with random, intermittent lock ups in my ASP.net application on our production server (99% CPU usage by 3 threads, indefinately). I currently use IIS Debug Tools to do a memory dump of the app when the lock up occurs, however the stack information is not ...more >>

.net component advice: pdf, listserves, etc?
Posted by darrel at 11/9/2004 2:44:33 PM
We have a bit of a budget surplus and we've been asked if there are any components we'd like to get for some upcoming projects. We've been needing a couple and was wondering if anyone had any advice: - listserv We'd like to find an application that, ideally, has some .net hooks that woul...more >>

user impersonation
Posted by Itai Raz at 11/9/2004 2:39:30 PM
This used to work for us under Windows 2000 server, but doesn't seem to work with Windows 2003. We are accessing an SQL Server using integrated security from ASP.Net. For some reason it seems like the user that ASP.Net is using to connect to the DB is domain\machineName$. I don't understand w...more >>

cen someone convert this please
Posted by Chris at 11/9/2004 2:25:02 PM
Hi, Can someone convert this to VB.NET Please. I am trying but for some reason it doesn't work. if (null != Request.QueryString["secondsToWait"]) { secondsToWait = Request.QueryString["secondsToWait"]; if ((Int32.Parse(secondsToWait) % 60 == 0) && ((Int32.Parse(secondsToWa...more >>

Windows Authentication Timeout
Posted by Will Gillen at 11/9/2004 1:36:42 PM
I have an ASP.NET application that is using Windows Integrated Authentication (IIS) (as opposed to Forms Authentication). When the user first logs into the application, IIS prompts the user for their credentials. Once they are "authenticated", their credentials remain active while their web b...more >>

Manually created DataTable to Export in Excel Format
Posted by peter NO[at]SPAM mclinn.com at 11/9/2004 1:34:56 PM
I manually created a Datatable and now I want to export it to my clients in Excel format. Is there an easy way of doing this?...more >>

Invalid viewstate
Posted by vinay at 11/9/2004 1:34:04 PM
What is this error?? Exception Details: System.Web.HttpException: Unable to validate data. [HttpException (0x80004005): Unable to validate data.] System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +195 Syste...more >>

Finding and HTML Element
Posted by Jim Heavey at 11/9/2004 1:25:07 PM
I have a message which is surrounded by a <P> and the Visibility is set to "Hidden". I have some Javascript which validates information which is keyed on the screen and sets the Visibility to "visible" when an error is found. I have the same edit on the server (MS says that I should perform ...more >>

Browser Back Button
Posted by DotNetGruven at 11/9/2004 1:05:54 PM
How are people handling the browser back button on database driven web apps built using ASP.NET?? We keep state in Session and the back button is causing us lots of head aches! Is this just a situation where we should look harder at the way we use Session State or are their tricks and/or...more >>

Databound Repeater question
Posted by Keith Harris at 11/9/2004 1:04:04 PM
Hi, I have a reapeater control with linkbutton controls in the item template section. An array of USER objects will be the data source and I want to embed USER.id as the CommandArgument so that when the user clicks the button, she is redirected to a url which includes the id string. ...more >>

color Lost between postbacks....
Posted by Nelson at 11/9/2004 12:54:36 PM
My development environment is ASP.Net with VB.Net and .Net Framework 1.1. For a web control text box through client code(java script) I am changing the font color. After post the color is not retaining. Do I have to change some properties to retain the color between postbacks ? Text...more >>

coldfusion cfhttp command interaction
Posted by Francesco at 11/9/2004 12:28:07 PM
Hello, I'm Francesco and I write from Italy. I have a web site made in ColdFusion that makes an HTTP request to another site in coldfusion using the tag CFHTTP. The result of the call is sent to the page. Now I have to re-create the web site in ASP.NET but I don't now how to generate and proc...more >>

fONT cOLOR...
Posted by Nelson at 11/9/2004 12:27:19 PM
What is the syntax in Java Script to change the color of font in a text box? Thanks, Nelson ...more >>

sending HTML email
Posted by Justin at 11/9/2004 12:22:02 PM
I have a fairly large piece of html, about 50 lines that I would like to send via an ASP.NET page I was wondering what would be the best and cleanest way to do this? Is there a way I can put the code in a WebControl or text file and pass that to Mailmessage.Body? Any suggestions would be gr...more >>

ASP.Net form not posting!
Posted by Ian.Suttle NO[at]SPAM gmail.com at 11/9/2004 12:21:53 PM
I am have been researching this issue to no end, so any help would be very much appreciated. I have a page with form tags. Inside of the form tags is a panel that contains a user control. The form tags are NOT inside of the user control. Inside that user control are a few panels that contai...more >>

Most Efficient Way of Exporting CSV data from page
Posted by peter NO[at]SPAM mclinn.com at 11/9/2004 12:12:25 PM
I have an array MyArray(30,3) The string data looks like this: MyArray(0,0) = "ColumnA";MyArray(0,1) = "ColumnB";MyArray(0,2) = "ColumnC" MyArray(1,0) = "DataA";MyArray(1,1) = "DataB";MyArray(1,2) = "DataC" MyArray(2,0) = "DataA";MyArray(2,1) = "DataB";MyArray(2,2) = "DataC" and so on...more >>

disabling controls during the postback...
Posted by Dan =o\) at 11/9/2004 11:28:07 AM
Hi guys, in the scenario where a user fills in a form, and clicks on a button to Save, there's a period of waiting (the slower the connection between client and server, the longer the delay) where the user may be oblivious and could say, press the button twice, or even fill in some more dat...more >>

DataGrid - BorderStyle="None" and BorderWidth="None" doesn't work for Firefox
Posted by David Freeman at 11/9/2004 11:23:33 AM
Hi There! I'm using ASP.NET 1.1 and VB. Below is my DataGrid declaration... <asp:DataGrid id="myDataGrid" runat="server" AutoGenerateColumns="false" OnItemCreated="myDataGrid_ItemCreated" Style="width:100%;border:0px;b...more >>

Set focus to DAtagrid Cell
Posted by rroca at 11/9/2004 11:19:06 AM
I hae a WEB application that uses a datagrid. My first 2 rows are Template columns with Dropdown lists. My Third column as databound cell. When I go to edit a particular row I want the focus to change to the third row. I am using Visual Studio VB.Net with WEB Forms. Any Help would be grea...more >>

Reusable Components
Posted by Bijoy Naick at 11/9/2004 11:15:13 AM
In my Visual Studio solution, I have 2 projects.. One project implements a newsletter object, the other a file upload user control. When I compile the solution, each project generates its own DLL. My question : How can I reuse these components in other solutions? What steps do I need to take t...more >>

Nested Repeater and Textbox problem
Posted by Tommy at 11/9/2004 11:02:23 AM
I have a nested repeater. It displays the data correctly, etc.. I have a problem however.. when i iterate through the textboxes in my code all of the values of the text property are empty. I need to loop through them and do some validation, etc before I can update the data. Is there someth...more >>

Newbie -- what are these errors -- System.NullReferenceException
Posted by Joe at 11/9/2004 10:53:03 AM
I am new to .NET and C#. I am deploying the SPS web part that appears below and I am getting System.NullReferenceException in my CreateChildControls method. The last item shown by my debugger prior to the exception is "Setting ID." Any assistance would be greatly appreciated. Joe Mack ...more >>

convert vb.net to asp.net
Posted by ACaunter at 11/9/2004 10:39:02 AM
Hi, can someone please let me know if there is a way to convert a vb.net application to asp.net. Or if a vb.net application written in 3-tier could be run on the net??? Thanks! -- AdamPC@hotmail.com...more >>

highlight datagrid row when clicked
Posted by Mike at 11/9/2004 10:08:03 AM
How can i highlight a row in my datagrid when the user clicks it? I can do this in VB.NET but my app is in C#. ...more >>

Javascript Scribble Pad
Posted by Charles A. Lackman at 11/9/2004 9:59:07 AM
Hello, I have an aspx web page and would like to add a box where the visitor can scribble inside of it with their mouse and save it to their hard drive. I know how to accomplish it in a desktop application but have no clue how to make something like this work in a web page. Any informat...more >>

Moving Classes Into Own DLLs
Posted by Jeremy S at 11/9/2004 9:57:54 AM
I wrote an ASP.NET application and pretty much separated out various layers of functionality into individual class files (e.g., dal.cs for all db access). It's currently all in one VS.NET project and gets compiled into one dll. I want to re-use some of the classes in other projects - so what all ...more >>

Newbie Question
Posted by Terry Holland at 11/9/2004 9:57:32 AM
I passed my 70-305 exam about 4 months ago and have not used any asp.net since I am therefore embarrassed to ask the following question. Im in the process of designing an ASP.Net application. Users will be required to login and once authenticated be able to use the services available to th...more >>

State Management
Posted by Richard at 11/9/2004 9:49:01 AM
Can collection classes be used to store session data? In a couple of books on ASP.Net where they discuss state management (to capture a user's input data), they talk about session and application objects, cookies, statebag, etc. But if I have a checkboxlist, can't I just iterate through the s...more >>

Problem in executing a script on the server side ! Script found but nothing executed !
Posted by Cédric Rossé at 11/9/2004 9:45:17 AM
Hello, I'm currently developping a web application in C# / ASP.net. On a specific form of my application, I have a simple button which calls the following code : Process myProcess; myProcess = new Process(); myProcess.StartInfo.UseShellExecute = false; myProcess.Start...more >>

Problem with changing the index of the SelectedValue of a DropDownList
Posted by Thomas Kern at 11/9/2004 9:41:10 AM
Hi everybody! I have a dropdownlist on a aspx page. The dropdownlist is filled in the page_load event like this: If Not Page.IsPostBack Then BindData() End If The Bind Data method goes to the database and reads the values for the dropdownlist. In addition it selects the appropriat...more >>

Resize table column
Posted by Yama at 11/9/2004 9:36:21 AM
Hi, How can I make it resizable? For example: <pre> <!-- datagrid Header --> <table class="TableHeader" id="tblHeader" border="1" runat="server"> <tr class="TableRowHeader"> <td style="WIDTH: 253px" width="248"> <asp:label id="lblNameHeader" runat="server">Template Name</asp:la...more >>

What is wrong with this?
Posted by klj_mcsd NO[at]SPAM hotmail.com at 11/9/2004 9:08:30 AM
I cannot seem to get this to work. Format("mm/dd/yyyy", Date.Today.ToShortDateString) It comes out as 11/9/2004 I want 11/09/2004 Thanks...more >>

Button event: Works on one machine not on another
Posted by John at 11/9/2004 8:51:55 AM
Hi, I have an asp.net page with some validation. On one machine the button click event works fine, whilst on another the button click event does not fire at all Any suggestions welcome! Thanks Mark ...more >>

Viewstate and dynamic controls
Posted by Jerry Spencer at 11/9/2004 8:45:01 AM
I have a form with two dynamically created controls. One control is a list box, the other is a text box. I would like to set the value of the text box based on the selection of the list box. I have set AutoPostBack for the list box to true so that I get a post on selection change. Even t...more >>

Enterprise ASP.NET question
Posted by jscavone NO[at]SPAM bluelance.com at 11/9/2004 7:26:55 AM
I'm in the preliminary reasearch stage of a large ASP.NET project; I'm looking for some resources (e.g., articles, books). I'm looking to determine the feasability of developing an ASP.NET reporting application that will hit a 200+ GB database (SQL Server 2K and Oracle 9i) and return on averag...more >>

Maximum Sessions per Client?
Posted by Edgardo Sepulveda at 11/9/2004 7:19:25 AM
Hi, one question, is there a limit on the numbers of sessions that a client can have? i dont know why but suddently, as i handle a lot of the user information with sessions, and also have added a lot of new features,, my users are telling me that they are getting session timeout page, th...more >>

Closing a running executable
Posted by mg at 11/9/2004 7:19:02 AM
System.Diagnostics.Process.Start("c:\\windows\\system32\\notepad.exe","c:\\x.txt"); Will launch x.txt in notepad What code will close this instance of notepad?...more >>

Buttons in a grid
Posted by Edward W. at 11/9/2004 7:09:12 AM
Let's say I have a dataset with 1 table and it has 3 columns. One of the columns is a primary key. The number of rows is unknown, but for simplicity's sake let's say anywhere from 5 to 50 rows. I want to fill a grid on screen and in each row add a new column and in that column put a command...more >>

Page Load
Posted by Manny Chohan at 11/9/2004 6:50:02 AM
Hi guys, I have session variable (session["loggedin"]) with values true or false. On the page load event, i entered if (HttpContext.Current.Session["loggedin"].ToString().Equals("true") { Response.Redirect("http://localhost/lhw/home.aspx"); Response.End(); } Now i have a calend...more >>

run SQL query
Posted by Mike at 11/9/2004 6:44:12 AM
I have a C# web app were i want to run a SQL query based on the selection from the drop down. I have 4 selections on the drop down and I can pass 3 of them fine due to they are in the database. I have one selection that is "Show All" which i want to show everything in the database in my grid....more >>

Flash MX Pro and ASP.NET
Posted by andyjgould NO[at]SPAM hotmail.com at 11/9/2004 6:40:43 AM
I have a client that is really pushing me to start using Flash MX Professional to replace VS.NET. Main arguement is that it looks better and flows nicer than visual studio developed applcations (this client is a designer not a programmer). I believe that Flash is a 'Tool' not a 'Solution'. My...more >>

Strange problem
Posted by huzz at 11/9/2004 6:24:02 AM
I have a class method which takes integer as parameter...when i call the method as shown below i get this error message: Specified cast is not valid <td><%# bs.getPriority((int)DataBinder.Eval(Container.DataItem, "Priority"))%></td> When i print the DataItem "Priority" it shows an integer...more >>

is there a fix for this?!
Posted by Dan Nash at 11/9/2004 4:34:08 AM
Hi peeps Yep, it's the perennial problem of Design view deleting code, except this time it deleted about 20 lines from the InitialiseComponent Code-Behind function, rendering all my buttons entirely useless. Is there a fix for this?! It's getting incredibly annoying! I'm using VC# 2k3 St...more >>

RequiredFieldValidator - one of two fields must be filled?
Posted by Dan Nash at 11/9/2004 4:34:04 AM
Hi guys Is there a way to get a Validator to work so that the user must enter text in either one of 2 boxes? I want people to have to enter either a Contact Name or a Company. Any help appreciated. Cheers Dan...more >>

Problem with Structures
Posted by Simang at 11/9/2004 4:09:09 AM
Hi everyone, I have a structure with this format: Public Structure Forms Public _01234 as string Public _04321 as string Public _03456 as integer End Structure As you can see, the variable names are all numeric. What I want to do is that given a numeric string, I have to deter...more >>

html
Posted by Guest at 11/9/2004 3:50:57 AM
i am new to the html progamming , and so i am not able to use the tag called <marquee> is it a container tag or an empty tag?? User submitted from AEWNET (http://www.aewnet.com/)...more >>

DataGrid Help!
Posted by Raed Sawalha at 11/9/2004 1:41:02 AM
Dear: I have DataGrid , which its task to (Edit, update, and delete) contents of XML File. the structure of XML like this <Info> <Name></Name> <Age></Age> <Date_OB></Date_OB> <CStatus></CStatus> <BStatus></BStatus> <DStatus></DStatus> </Info> in XSD the CStatus,BStatus,DStatus (...more >>

Response object
Posted by Neil at 11/9/2004 12:39:02 AM
hi, I have a problem with a page that allows my users to download an attachment ( word file or such like). When the page is loaded I have a table which shows an action required flag if the user needs to create a letter. The user can then click a create letter button and I generate a word do...more >>

How do I know when to use the Viewstate and when to use the posted data? :-)
Posted by Simon at 11/9/2004 12:02:40 AM
Hi everyone, I have a quick question that I hope someone can help me with: I've made a user control that contains a text box and some validation functionality. This control has a few extra properties declared on it over and above that provided by the textbox. As I understand it, part of...more >>


DevelopmentNow Blog