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 monday november 22

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

Cache objects on serverside and given intervals (timer?)
Posted by Dustin II. at 11/22/2004 11:53:04 PM
Hi, I have a couple of rss feeds that are pulled into a datatable. I cache the datatable and use the cache to avoid long load times. Is there a way to do this caching in a timer on the server side so that I never have to worry about taking the time to load the rss feed at page load time? T...more >>

RangeValidator Minimum Date can not be 01.01.0001
Posted by Johannes Hammersen at 11/22/2004 11:37:29 PM
Hi, when I try to set the Minimum Date on a RangeValidator to 01.01.0001 I get an error, that 01.01.0001 can not be converted to a date. But the DateType can be 01.01.0001. Convert.ToDateTime("01.01.0001") works. So why can't I set the Minimum of the RangeValidator to that Date? I have the s...more >>

Recommend Good Web Site Regular Expressions
Posted by Mike Moore at 11/22/2004 9:19:03 PM
Recommend Good Web Site Regular Expressions?...more >>

Best Way to Determine Max Length Textbox
Posted by Mike Moore at 11/22/2004 9:09:02 PM
Is it better to find the max length of a textbox using the dataset (database length fields) or using the length property of the textbox? Also, which is the best and easiest to do - custom validator or expression validator for max and min length of textbox fields?...more >>

How to highlight some text in an iframe by script?
Posted by Nicky at 11/22/2004 8:45:02 PM
hi, all I have an iframe in my page. Actually what I want is just like the google search. When user clicks search, I will load the a page from another URL into iframe and then highlight the key words in the iframe. Does anyone know how to do this? By JS or VBScript? Thanks...more >>

regex puzzle!
Posted by galenstewart NO[at]SPAM yahoo.com at 11/22/2004 8:44:05 PM
The objective is to extract the first n characters of text from an HTML block. I wish to preserve all HTML (links, formatting etc.), and at the same time, extend the size of the block to ensure that all closing tags are recovered. For example, simply extracting the first 400 characters of a HT...more >>

building a URL dynamically and URLEncode?
Posted by DC Gringo at 11/22/2004 8:09:00 PM
I am having trouble building a URL the serves up an image dynamically...something involving the & separating my URL parameters. If I put the same URL in with & instead of the code-generated &, everything is fine. I've tried URLEncode and URLDecode in both directions and no dice. hELP! '...more >>

Help with date issue
Posted by Chris at 11/22/2004 7:51:02 PM
Hi, How can I get six month prior to the current date using Now.Today.ToShortDateString so if Now.Today.ToShortDateString returns 11/22/2004 I need 06/22/2004. Thanks ...more >>



Code Behind Question
Posted by Chris Kettenbach at 11/22/2004 7:41:10 PM
Hi I am designing an ASP.net app. Just wanted some opinions on code behind options. My idea is to have a code behind file that the controls will reference and have ascx files for the controls. Then have the aspx pages call the controls. Is this a good approach? I wanted to throw all my busi...more >>

Cannot file relation 0
Posted by Wayne Brantley at 11/22/2004 7:35:19 PM
I have found what appears to be an error in streaming with Datasets. It causes an error of 'Cannot find relation 0' when recreating the dataset from a stream. Here is how you reproduce it. Lets assume you have tables like this: Customers CustomerName: Varchar(50) CustomerNumber...more >>

Problem in developing newsreader in vb.net
Posted by balu at 11/22/2004 7:11:25 PM
Hello, I am developing a Newsreader in vb.net and i am getting a problem in posting article to newserver for a particular set of newsgroups. i developin g this newsreader using nntp commands.I need vb.net code for posting a article . I getting a problem in defining a article format. Kindly ...more >>

How can i change de cssclass of a textbox in runtime using javascript
Posted by Fernando Lopes at 11/22/2004 6:04:08 PM
Hi. I need to change de css of an asp.net textbox control. So, on mouseover event, the class will be one, and on mouseout event it will be another. Something like: TextBox1.Attributes.Add("onmouseover","css=x"); TextBox1.Attributes.Ass("onmouseout","css=y"); How can i do that? Somebody ...more >>

Right value of "Maximum number of worker processes" in IIS 6.0 for a web garden?
Posted by domtam NO[at]SPAM hotmail.com at 11/22/2004 5:37:48 PM
I'd like to tune the performance of my application in a web garden. Our server has dual processors. Is there any guideline to set this "maximum number of worker processes" for web garden? In my application, stress test shows that setting it to 2 gives a better performance result. In other words,...more >>

Detect IE update version or service pack number
Posted by henry at 11/22/2004 5:32:20 PM
Hi all, I'm building a website which provides contents that only work for some browser types and versions. I know I can get most of the client browser information using HttpBrowserCapabilities class, but I can't find a way to determine IE update version or service pack number. Any ideas? ...more >>

Include Header / Footer in asp.net
Posted by Dave at 11/22/2004 5:30:02 PM
Greetings, I am developing an internal web application. I would like to do some sort of method where I include a "header.aspx" and "footer.aspx" page in my code, so I don't need to include my header and footer on each .aspx page in my web application. I have found instructions on the inte...more >>

wrap in a datagrid with autocolums
Posted by Diego at 11/22/2004 5:13:48 PM
Hi, how do I set the wrap property to FALSE for a datagrid with autocolums enabled? I know there's a work around this bug when the columns are set up in design time but I need the autocolumns option checked. Thanks in advance. Diego. ...more >>

[help]change content in another frame
Posted by finekey at 11/22/2004 5:13:06 PM
I build a webpage with two frames(contents and main), I build a aspx in main frame, which has a Button webcontrol, the problem is that :how can I change webpage in contents frame when the Button_click event is active? thanks ...more >>

Woodring's custom thread pool with IHttpAsyncHandler
Posted by buzz at 11/22/2004 4:56:26 PM
I am evaluating Mike Woodring's custom thread pool classes (Developmentor) for use with an ASP.NET project that will be implementing pages derived from IHttpAsyncHandler. (Recommended by the famous Fritz Onion article on IHttpAsyncHandler...) I understand most of the code, however I am at ...more >>

Question
Posted by Manny Chohan at 11/22/2004 4:37:03 PM
Hey Guys, Quick question....how can we learn to make something like wat we have in MSDN Newsgroups forums. Something like clicking on + sign to see replies and click on a row and display the whole description of question/answer? Something like wat you are looking at right now. Just curiou...more >>

datasgrid properties and non IE browsers.....
Posted by Ollie at 11/22/2004 4:34:28 PM
I have this weird problem with displaying datagrids ion non IE browsers (firefox, mozilla etc) bascially I always get a right-hand and bottom-border on each item on the datagrid even if I explicitly set the item border width = 0. I even tried changing the CSS but still had the same problem. Has ...more >>

what event should I hook to for this?
Posted by djc at 11/22/2004 4:00:03 PM
I am using a repeater control to list 'detail' entries from a simple issue tracking system. These detail entries are MSDE2000 TEXT fields. For each one, I need to replace all the carriage return/line feeds with '<br/>' tags before displaying so it maintains the users original readability as it wa...more >>

Rendering composite control...
Posted by Jeti [work] at 11/22/2004 3:52:20 PM
I have made simple control which contains one Calendar control. The problem is that the Calendar control does not behave correctly (doesn't have hyperlinks) when my control renders... here's some of the code: public class MyControl { private Calendar _calendar; protected override void Crea...more >>

How to generate random passwords
Posted by Joe at 11/22/2004 3:43:03 PM
Hi, I want to generate a random password every time a new user account is created. I want to include small and capital letters and 0 to 9 digits. Can someone give me some idea as how should I do it? I am a beginner in ASP.NET and using VB.net to code the pages so please do not give me any ...more >>

upper bound of an array
Posted by Ike at 11/22/2004 3:16:50 PM
Does anyone here remember how to discern the upper bound of an array in asp, pre-.NET ? Thanks, Ike ...more >>

close child form when parent form is closed.
Posted by Paul at 11/22/2004 3:07:04 PM
Hi this is related to a previous post, hopefully just a bit clearer description o the problem. I have a parent form that opens a new form (child form) while still leaving the parent form open. Although the child form has a close button (with java script) if the user navigates the parent form ...more >>

Need to Import xls file into SQL?
Posted by DaveF at 11/22/2004 3:06:23 PM
The problem is there are duplicate rows in the xls. Who can I test the database against the xls for duplicates -- David ...more >>

C# - Server.MapPath.
Posted by Bijoy Naick at 11/22/2004 3:01:45 PM
In VB.NET, I use Server.MapPath(filePath). What is the equavalent of this in C#? ...more >>

How to close all windows in a web application?
Posted by Paul at 11/22/2004 2:45:34 PM
Hi I have a web application that has a log off selection, just redirects the browser to a form with a label displaying you are loging off. In part of the application I open a new window and was wondering if there is a way to close all windows associated with the web application when the user ...more >>

ASP.NET easy newby question
Posted by Ryan Smith at 11/22/2004 2:39:01 PM
I am trying to store a string into a string variable via the following code however am receiving an error and cant figure out what i am doing wrong. Any feedback is greatly appreciated. Line 49: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Han...more >>

qualifiers and click in server ASP.Net
Posted by Dan Bass at 11/22/2004 2:23:53 PM
Is there a way to detect a <Ctrl> press + click in the event handler for ASP.Net? I've been asked for <Ctrl> + click to pop up one window and just click to bring up another... Thanks. Dan. ...more >>

AppDomain Resetting
Posted by Rob Bazinet at 11/22/2004 2:19:51 PM
Hello all; I have an ASP.NET application which I run part of it in a new thread. The part running is very processor and time intensive and takes an hour plus to complete. The problem I am experiencing is after the thread has been running for about 20 min it stops. I am running this app...more >>

File not found error?
Posted by jiangyh at 11/22/2004 2:10:38 PM
hi there: I use following source to fire outlook express,but I have a file not found error. System.ComponentModel.Win32Exception: File not found System.Diagnostics.Process.Start(mailto:jiangyh@dxcctdl.com); How to resolve this. Thanks a lot -- Jiangyh http://bbqb.com/bbs/...more >>

Recomendations on client installs of web application.
Posted by Bishop at 11/22/2004 2:09:01 PM
I'm looking for any recommendations of tools or processes to develop an install that clients can run to install a web application on they're system. The web application is pretty simple; the only thing that might need to be changed in the web.config is the DNS name of the database. T...more >>

How to deal with integer that can be null in sql server?
Posted by TomislaW at 11/22/2004 1:34:56 PM
I have integers in my database that can be null. I read them with SqlDataReader and show them to Repeater. Since integer can not be null in c#, I set null integer to -1. My project is 3-tier and it is very complicated to check in data tier if it is null set -1, then in business tier if it is...more >>

aspxpage\netscape
Posted by rj at 11/22/2004 1:28:15 PM
I have .net 1.1 SP 1 setup on my W2k server. I have a website, with the default web page as a html page with static content, and a few links. When the user clicks on one of the links it is directed to an aspx page on the website. In IE the aspx page opens up as expected, in NS 7.1 a file s...more >>

Error while Upating Record
Posted by Stephen at 11/22/2004 1:27:01 PM
Hi, I am trying to update a record in the DB and i am using OLEDB command and connection. I get this error while updating. Error inserting data: System.Data.OleDb.OleDbException: Syntax error in UPDATE statement. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 h...more >>

Checking for null
Posted by Andy G at 11/22/2004 1:26:51 PM
I'm getting this error...Operator is not valid for type 'DBNull' and string "". What is happening is that I'm calling a stored procedure to use the email address to recover a forgotten username. If the email does not exist then I get the above error. After I execute the stored procedure I try...more >>

Help with passing data from popup
Posted by Chris at 11/22/2004 1:05:02 PM
Hi, I am able to pass data from a popup back to a textbox. Now I need to pass to a different textbox. Here is what I have. I have a web page with two textbox (datefrom and dateto) and two buttons at the end of each textbox. When either button is clicked it pops up a small form with a calender...more >>

Simple SQL Statement....broken brain...
Posted by D. Shane Fowlkes at 11/22/2004 12:52:07 PM
I'm stumped! I know this isn't exactly a .NET question but I know someone here is bound to be able to help. I'm trying to write a query to extract a list of records from a many-to-many "key" table where the records are not within a list of possible matches. For example: SELECT ContactID,...more >>

Simple formatting question...
Posted by The Eeediot at 11/22/2004 12:40:06 PM
This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C4D090.659702C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How do I get a number like "131" to appear in a currency format like = "$131.00" in a TextBox control? I k...more >>

Dataadapter for SQL view
Posted by Vik at 11/22/2004 12:18:48 PM
In SQL Server, there is a table with PK and a simple view sorting this table. In designer, I create a dataadapter based on this view and get an error message for Update and Delete statements: "Could not determine which columns uniquely identify the rows". What is wrong here? Thank you. ...more >>

Converting object to an interface
Posted by mcarolan NO[at]SPAM gmail.com at 11/22/2004 12:06:51 PM
Hi there, I have an interface (called AuthenticationInterface) shown below: Public Interface AuthenticationInterface Function IsLoggedIn() As Boolean Function Authenticate(ByVal User As LinkDirectoryUser) As Boolean Function GetCurrentUser() As LinkDirectoryUser Function Is...more >>

uh oh. I overlooked something major!
Posted by djc at 11/22/2004 12:02:02 PM
one of my database fields (MSDE 2000) is of datatype TEXT. This is a long field were users will enter long descriptive text. On the data entry form the users will of course put cariage returns and tabs ect.. to format what they are entering. For example: -----------------------------sample----...more >>

How secure is MSAccess?
Posted by VB Programmer at 11/22/2004 11:48:40 AM
I am creating a new ASPX web app. I would like to use MS Access, but am concerned about security. There will be alot of secure info in this db (credit cards, passwords, client info, etc...) Is Access secure enough or should I just go with MS SQL Server? I like the portability of the MDB. ...more >>

Any good CSS Generator/Editor for web applications?
Posted by theintrepidfox NO[at]SPAM hotmail.com at 11/22/2004 11:47:29 AM
Hi Just wondered if any of you can recommend a CSS generator /editor? I'm a complete novice in CSS and look for some wizard tool that will generate a css style sheet for a given webform.aspx, including all the elements I've used in the form e.g. Tabstrip, Toolbar etc Thanks for your help! ...more >>

How to share a set of classes from two IIS web sites?
Posted by Quentin Huo at 11/22/2004 11:03:38 AM
Hi: I have two web sites in my IIS. I want them to share or use one set of classes that I created, because they have same functions that the classses provide. And maybe in the future I will create more web sites to use the set of classes. But I don't know how to do this. Where do I need to...more >>

field validation with reflection
Posted by Dan at 11/22/2004 11:01:03 AM
hi newsgroup, i need server side validation of user entries. as i do have many fields, i would like to use reflection for checkinng the IsValid property of all the Validators. here is the reflection code i don't understand why i get the following error: Object does not match target type. ...more >>

OpenFileDialogBox on Web Page
Posted by Michael Murphy at 11/22/2004 10:39:14 AM
This is a multi-part message in MIME format. ------=_NextPart_000_0018_01C4D07F.828B5590 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Looking for some help with an web page based OpenFile Dialog Box. At = this time all I really need is th...more >>

Regular expressions and commas
Posted by rbscheer NO[at]SPAM my-deja.com at 11/22/2004 10:32:55 AM
Hi. I have a regularexpression validator control on a page. This regular expression validates a textbox to accept only numbers and commas: validationexpression="[\d,]*" I am trying to modify this expression to not allow commas at the beginning and at the end of the expression without succes...more >>

About ViewState and LOS formatter
Posted by Edward Yang at 11/22/2004 10:16:54 AM
When it comes to ViewState in ASP.NET, I have a mixed feeling of both love and hate. For love, it simplifies many aspects of common tasks; for hate, it bloats web pages with large amount of cryptic (though not really :-)) text. I find that LOS formatter is not as effecient as what Microsoft...more >>

BC30456: 'DataItem' is not a member of 'System.Web.UI.Control'
Posted by djc at 11/22/2004 10:01:45 AM
I don't know why I'm getting this error? This is my first time using a repeater and the Container.DataItem code. It looks to me like I'm doing exactly what the examples I've looked at are doing. <snippet> Dim da As SqlDataAdapter = New SqlDataAdapter(cmdDetail) Dim dt As DataTable = New DataT...more >>

trying to understand postback
Posted by jim at 11/22/2004 9:59:23 AM
My web page is very complex, contains 2 user controls and many web/html controls, repeater, datagrid and more. In order not to load this heavy page every time the user clicks on a button I used the "if not ispostback then...". The page works ALMOST great. The problem is - when the user cha...more >>

German Umlaute (Resources)
Posted by Carlo Marchesoni at 11/22/2004 9:53:03 AM
In order to have a mutli-lingual page, I load all .Text, .ToolTip etc from a resource, if the user does not work with the default-language, like this: Thread.CurrentThread.CurrentCulture = new CultureInfo(selCulture); Thread.CurrentThread.CurrentUICulture = new CultureInfo(selCulture); // ove...more >>

[newbie] document.all collection equivalent
Posted by HP at 11/22/2004 9:46:46 AM
Hi, I have a form in asp .net with several inputs. I dont wanna specify a validation rule for every input, but for all of them, like this in javascript: for (var i=0;i<20;i++) { if (document.forms("F").elements(i).value.length < 3) ... } can u tell me how can I do the same and access all of ...more >>

dataset
Posted by sara at 11/22/2004 9:45:06 AM
hi to all i work in a web application i have a dataset with two data tables i iterate them with for loop but i get only first row of any tables what can i do thanks ...more >>

How to fire Outlook Express?
Posted by ca___t at 11/22/2004 9:23:00 AM
hi there: I have a task that need to fire new Email form of outlook express and need auto add some information to this form. That information include mail address,straight matter,ect.. How to resolve this. Thanks for advice. jiangyh ...more >>

Limiting Multiline textbox
Posted by Neven Klofutar at 11/22/2004 8:51:20 AM
Hi, Is there a way to limit this field, because "maxlength" seems to be working only for singleline ? thanx, Neven ...more >>

Inherited Ascx
Posted by twister04 NO[at]SPAM hotmail.com at 11/22/2004 8:22:02 AM
I have created an ascx control that is a kind of custom panel with specific code behind and a custom design. I have then created a new ascx that inherit from my first ascx. The problem that I have is that doing so, if I put a new control inside my inherited ascx and put code behind this new cont...more >>

Validating a RadioButton Selection
Posted by Scott Natwick at 11/22/2004 8:10:20 AM
I am having trouble validating that a selection has been made from a RadioButton. I created a script to trigger from a CustomValidator, however, it only works when I run the app locally, from the debugger. Once I upload it to the server and run, the script no longer triggers. Any ideas?...more >>

Adding buttons in a ButtonColumn in a DataGrid a row at a time
Posted by adam.white NO[at]SPAM tycoelectronics.com at 11/22/2004 7:59:59 AM
I have a DataGrid and I have added a ButtonColumn that fires a function on the row it corresponds to. The problem I am having is I only want to display a button at the end of a row if the "status" column in the row is set to "new". At the moment there is a button at the end of every row. Is...more >>

aligning datagrid columns
Posted by Jennifer at 11/22/2004 7:03:02 AM
I have a datagrid where I am trying to align some columns to the center. The rest should be aligned to the right. When I try the code below I get an error message saying that the index is out of bounds. When debugging I get the column count of the datagrid to be 1. I find this rather ridic...more >>

How can I serialize Hashtable
Posted by Raed Sawalha at 11/22/2004 6:49:07 AM
we have already built Web Application,we did changes on in class in application so , we need to pass a Hashtable object to a webserivce, we're using XML Serialization , my problem in how to serialize the Hastable in order to pass it to a webservice. the class: [XmlRoot(ElementName="Messa...more >>

Response with file attached make save/open dialog appear twice
Posted by Dorte at 11/22/2004 4:45:26 AM
Hi, I am using the code below to stream a CSV file with the response object. Dim FileName As String = "Test.csv" With Web.HttpContext.Current.Response Web.HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename=" & FileName) ...more >>

file upload problem
Posted by Bart at 11/22/2004 4:43:03 AM
When I try to upload a file from whithin a form, it works locally. But when i deploy my asp.net application, i got the error 'uri formats are not supported'. I thought it has something to do with permissions, so i looked in the target-directory from the upload, and i have these permissions :...more >>

BUG: commented out server side controls in html still run
Posted by adolf garlic at 11/22/2004 4:29:08 AM
The following control still runs <!--<asp:linkbutton id="Test" runat="server" text="Create Text file" onclick="Test_Click" />--> if you change the "asp" to "zsp" the page fails immediately. this is a bug...more >>

Fill TextBox with DataReader...
Posted by Islam Elkhayat at 11/22/2004 2:32:31 AM
In my C# Web Application I need to fill a textbox with DataReader and use a Next Button to view next value... I created the Datareader in the Page_Load but everytime it get result of the First row. If i use a While or For loop i get result of the last row... How can i check "PostBack" to do...more >>

check value in server without reloading all the page
Posted by Daylor at 11/22/2004 2:21:10 AM
hi. i want to display page. then check every 10 seconds from the client, if a value in the server is changed WITHOUT RELOADING THE ALL PAGE. if value has change, i want the client to reload the page again. any ideas what ways i can do that ? ...more >>

accessing aspx control from ascx
Posted by rom at 11/22/2004 2:11:27 AM
Hi, I have an aspx page with header as user control, footer as user control, and 2 other user controls inside the page. I'm trying to access a seleted value of a dropdownlist the exists in the main aspx page from one of the user controls. I know it's possible because I reached it by us...more >>

rebuilding asp.net project
Posted by rom at 11/22/2004 1:17:36 AM
Hi, when I update an aspx codebehind page (vb.net) I have to rebuild the page. After doing that - what do I have to upload to the server? only the dll file, or the vb.net pages also? what about the asp.net pages? And another question - what happen if I'm trying to upload the updated dll...more >>

Page __EVENTARGUMENT
Posted by Raed Sawalha at 11/22/2004 1:13:05 AM
Dear: I need to know what is Page __EVENTARGUMENT? I see code sample do like this : string[] valus= Page.Request["__EVENTARGUMENT"].Split( ',',',',','); what actually this do???? ...more >>

Focus some controls
Posted by Dave at 11/22/2004 12:30:45 AM
Hello. How can I set focus to some controls? For example I want to set focus to some textbox when the page is loaded or when I click on some button. And I have one more question: how can set some button as default button for the form? Thank you. ...more >>

Pre asp 2.0 in vs 2005
Posted by John at 11/22/2004 12:18:23 AM
Hi Would it be possible to do pre asp 2.0 projects in vs2005? My worry is that not all hosts will add asp 2.0 on release of vs2005 beta. Regards ...more >>


DevelopmentNow Blog