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 > may 2005 > threads for monday may 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 31

Check if variable value is a valid email.
Posted by Shapper at 5/9/2005 11:29:02 PM
Hello, I have an aspx.vb code with a function. In this function I need to check if a variable is a valid email address. Something like: address@domain.extension How can I do this? Thanks, Miguel ...more >>


mixing HTML controls with code behind controls
Posted by Norm via DotNetMonster.com at 5/9/2005 11:16:01 PM
I had a similar problem as Ferdi - 19 Aug 2003 - "Postback after carriage return input" where pressing the enter key would postback my asp textboxes prematurely - I want the user to click on a button after filling in the text boxes and pressing enter messes up my plans. Using Giscard's advice (o...more >>

Check empty variable. Strange problem. Need Help.
Posted by Shapper at 5/9/2005 10:39:03 PM
Hello, I need to check if a textbox is returning an empty value. When I use Response.Write(myTextBox.Text) I get the written value. However, when I use the code: If myTextBox.Text Is Nothing Then Response.Write("Empty") End If "Empty" doesn't show even if I don't write anything ...more >>

Cannot read exported XML File
Posted by Zodiac at 5/9/2005 9:48:27 PM
Hi all, I have exported a XML from Access an it looks like this: <?xml version="1.0" encoding="UTF-8"?> <dataroot xmlns:od="urn:schemas-microsoft-com:officedata" generated="2005-05-10T05:25:59"> <qryExportXML> <Name>Janssens NV</Name> <LoginWeb>Jans</LoginWeb> <PWDWeb>Jan...more >>

link data grid edit button
Posted by John M at 5/9/2005 9:29:41 PM
Hello, In Visual studio .NET 2003, On datagrid object : How can I link the button element : edit, to do a some client events (such as message box, and do another event just after that to the server (do some manipulation on the database). If I cannot - how can I do that anyway in some tr...more >>

listbox datavaluefield and datatextfield
Posted by tshad at 5/9/2005 9:09:34 PM
How do I get to the datatextfield of listbox? I can get the the datavaluefield using the selectedvalue. I want to get the text portion of the listbox that the user selected. Thanks, Tom ...more >>

Accessing iframe
Posted by BillGatesFan at 5/9/2005 8:17:21 PM
Alright, this is very strange. I call a javascript function in my page load that accesses an iframe and I get an error. But if I wait till the page completely loads and access the iframe through a click event everything works fine. I'm trying to set some of the iframe's properties on page load...more >>

Beta 2: logincontrol generates HTML table
Posted by Arjen at 5/9/2005 7:29:10 PM
Hi, The login control (<asp:Login) generates a HTML table. I have used my own template without table's. The control generates <table> ... my design(template) ... </table>. I don't like the table... how can I delete this? Thanks! ...more >>



Weird issue: SaveAs doesn't copy files properly
Posted by VB Programmer at 5/9/2005 7:04:31 PM
I wrote some VB.NET code that loops thru a dir on the users local machine and uploads all the files to a server's subdir. It copies all of the files, but ALL THE FILES ARE 37KB in size. In reality they are 1kb, 4kb, 3kb, etc... The gifs don't even open up. Any ideas? Thanks. Here's t...more >>

traversing a client directory in ASP.NET
Posted by slim_naldy at 5/9/2005 6:24:03 PM
I want to traverse to a client directory and show the clients directory and files. Is there a way without using the the <input> tag? I mean dynamically retrieving the directory information of the client browsing the web page?...more >>

Uploading entire directory
Posted by VB Programmer at 5/9/2005 6:21:41 PM
I know how to upload an individual file to a server (See below code snippet). QUESTION: Is there an easy way to upload an entire subdirectory and all it's files? Or, do I have to loop thru the dir and upload them 1 by 1? This is the way I'm uploading the file... Dim strFileNam...more >>

javascript\buttonevent
Posted by gh at 5/9/2005 5:48:22 PM
I have the following js in the onclick event of a button to open another form, for the user to select a customer from. Response.Write("<script language='javascript'> window.showModalDialog('SelectCustomer.aspx','Select Customer','dialogHeight:550px; dialogWidth: 700px; edge: Raised; center:...more >>

Urgent... Crystal Report won't show data
Posted by Diggler at 5/9/2005 5:24:07 PM
I was working on a report that is populated with three different tables in a strongly-typed dataset. The tables are populated from custom objects rather than directly from SQL Server. I loop through the objects and add the rows one at a time. I then push the dataset to the Crystal Report. ...more >>

Converting DOC to JPG
Posted by mabosch at 5/9/2005 4:56:02 PM
I'm trying to convert a DOC to JPG it works in Windows Forms, but I run under asp.net the clipboard its empty, I'm doing Dim objWord As New Word.Application Dim objDoc As Word.Document Const CF_ENHMETAFILE As Integer = 14 objDoc = objWord.Docum...more >>

Localize one control only
Posted by MattB at 5/9/2005 4:36:53 PM
I need to make the stock asp calendar control appear in a different language. Can this be done by changing properties of the calendar control programmatically? I want to keep the rest of the application as it is if possible. It needs to be in French. Thanks! Matt...more >>

Binding results of query to repeater control
Posted by dinesh at 5/9/2005 4:06:05 PM
After a selection a selection is made, the form posts to the server, but no data gets displayed in the repeater. no errors are given. <form id="Form1" runat="server"> Category: <asp:dropdownlist id="category" runat="server" autoPostBack="True"> ...more >>

ASP.NET compile model detail
Posted by Kevin Yu at 5/9/2005 3:54:50 PM
hi all can anyone point me the right document on asp.net 1.1 page compile model? I need to know the detail from user request to IIS and aspnet_isapi.dll to aspnet_wk.exe then how the page is complied and cached. is there any difference on page handler facotry behavior between the code-beside a...more >>

document.getElementsByName problem
Posted by simon at 5/9/2005 3:41:31 PM
<html> <head> <script language="vbscript"> sub window_onload msgbox document.getElementsByName("name1").length end sub </script> </head> <body> <div name="name1">testDiv</div> <table id="tbl1" name="name1"><tr><td>table1</td></tr></table> <table id="tbl2" name=...more >>

Saving/restoring viewstate between different pages..
Posted by RCS at 5/9/2005 3:38:53 PM
I have an app that I have different "sections" that I want to switch back and forth from, all while having the server maintain viewstate for each page. In other words, when I am on Page1.aspx and set textboxes, radio buttons, etc - that viewstate is fine. Then I have a linkbutton that does a ...more >>

AutoEventWireup
Posted by Daniel Groh at 5/9/2005 2:56:39 PM
Hi, I just would like to know wich situation should i use it with true ? I don't have idea what is this... -- Atenciosamente, Daniel Groh CTF Technologies do Brasil Ltda. Analista Programador Fone: 11 3837-4203 E-mail: dgroh@ctf.com.br ...more >>

Intrinsic objects of ASP.Net
Posted by Alan Ho at 5/9/2005 2:52:31 PM
What are intrinsic objects of asp.net? thx ...more >>

Can we change the run time error page
Posted by ad at 5/9/2005 2:19:22 PM
If a run time error occur, ASP.NET will redirect to a run time error page. Can we change the error page to a custom define page? ...more >>

Why I can not list the virtual directory?
Posted by david at 5/9/2005 2:02:05 PM
I basically use the following code to display the directory and file names in the WWWROOT, but can not show the virtual directory. ---- Dim path As String = Server.MapPath(x) Dim di As DirectoryInfo = New DirectoryInfo(path) Listing.DataSource = di.GetFileSystemInfos() Listing.DataBind() ---...more >>

Help .. Button does not function properly.
Posted by Chuck at 5/9/2005 1:41:56 PM
I hope someone can help me out. I am trying to create a simple page with a drop down list that gives the user the ability to select which url they would like to run. The url does call a javascript function "openWin" that opens the browser to a specific size. The problem is that everytime I s...more >>

What tool to use for Real Time Event Monitoring Apps?
Posted by Dave Dessex at 5/9/2005 12:21:04 PM
Basically we have a system in place that moves files around and reads them in and so forth. I want to build a web app that will have the ability to track every business events real time as they are occurring in the system. All I can think to use is a java applet that will communicate with b...more >>

Have an object that dont work on host but works on my PC ?
Posted by Deasun at 5/9/2005 11:57:40 AM
Evening, The following works on my dev PC but not on our hosts server it seems; <OBJECT DATA='http://www.hostip.info/map/frame.html' TYPE='text/html' BORDER=0 WIDTH=610 HEIGHT=330 HSPACE=0 VSPACE=0> </OBJECT> I am wondering why? Its a Java Applett. Why would this not work when o...more >>

Julian Calendar
Posted by André_Nobre at 5/9/2005 11:56:15 AM
Hi all... i need to convert my actual date (gregorian) to julian format. Actually i'm doing this with T-SQL: DATEDIFF (day, CONVERT(datetime, '1900-01-01', 110), CONVERT(datetime, '9/05/2005', 110)) How can i do this with asp.net (specifically with vb.net)? I tried using Calendar, J...more >>

possible to use SqlConnection in ASP Classic?
Posted by jason at 5/9/2005 11:51:16 AM
i was just curious if anyone knows whether or not the SqlConnection class is exposed to the COM environment? i have a some class libraries to handle data access that were coded for ASP.NET. the class library methods expect to be passed an active SqlConnection, which of course the classic ASP can...more >>

Dataset (ASP.net) has two datatables. is this normal?
Posted by Randy Smith at 5/9/2005 10:56:57 AM
Hi, Is it common to see two datatables within a dataset? One of them belongs to "dbo" and the other belongs to the user who will be accessing the page. Here is the confusing part for me: in my code behind, which datatable should I be utilizing? TIA, Randy ...more >>

206 HTTP status code
Posted by George at 5/9/2005 10:44:10 AM
Hi,=20 I have a production IIS server with ASPX application. In logs i sometimes see 206 HTTP code which means "Partial Content". It = happens only on images though. Is it something i must be concerned with? What are the cases when 206 is valid response? Thanks George....more >>

Eliminate Upper Case
Posted by Mariame at 5/9/2005 10:43:56 AM
Hi Everyone, Is There a way to eliminate upper case, so the user could only write Lower Case or to transfer the Upper Case String to lower case in Visual Basic ???? Thx in Adv. ...more >>

main object of ASP.net
Posted by ¶©¼z at 5/9/2005 10:26:33 AM
Does anyone can tell me what are main objects of ASP.net? thx ...more >>

Redirect to multiple downloads
Posted by Shawn at 5/9/2005 10:15:18 AM
Hi. I have a page where the user can choose from 10 files he can download. When the user clicks on a file a new window pops up and redirects to the requested file. If the user wants to dowload all 10 files, is it possible to have one page that opens all 10 download boxes instead of having to c...more >>

How to find a last day of the following week?
Posted by Adam at 5/9/2005 10:03:43 AM
Hello, How to find a last day of the next week (or in next two weeks) using VB.NET? for example: 01-Feb-2005 = 13-Feb-2005 or 09-May-2005 = 22-May-2005 Any help is greatly appreciated, Adam ...more >>

dataview schema
Posted by Rob T at 5/9/2005 9:39:32 AM
How do you read the schema of a dataview? I have a could of SQL stored procedures that are getting read into a dataview and I need to know what the strucutres are so they can be displayed to the screen properly. Thanks. -Rob T. ...more >>

Use Response.WriteFile to display .doc file
Posted by david at 5/9/2005 9:32:05 AM
I has a question: I can use Response.WriteFile to display images such as .jpg. But I can not us it to display words doc file in EI by calling Response.WriteFile("testdoc/DownloadLarge.doc"). It only shows unreadable chars. How to use it to show the doc file on webrowser? Thanks David...more >>

Moving Web App from 1 PC to 3 Servers!
Posted by Nirbho at 5/9/2005 8:27:38 AM
Hi, I've got a c#.net web app that uses SQl Server 2000. It all works very well on my Development PC, but now I've got to install the app onto some real servers. I have 3 servers: 2 for the web app and one for the SQl Server database. The 2 web servers connect to the same SQL server. I have...more >>

Dynamic load of user control, problem with child controls event fi
Posted by Steve Booth at 5/9/2005 7:34:06 AM
I have a web form containing a button that when selected adds a user control to a place holder. The user control contains a button. The first time the user control is added the contained button fires Click event first time it is selected. The second (andd successive) times the user control is...more >>

Uable to find script library ... WebUIValidation.js
Posted by 2stepme NO[at]SPAM bellsouth.net at 5/9/2005 7:21:19 AM
I am sorry to put this question up (because it has been asked and addressed many times) but I have searched and I been unable to solve my problem. I am running XP PRO Version 2002 SP2 on my laptop. I am using the Web Matrix Server version 1.1.4322.573 and I am working on validation which requi...more >>

Why the need for <asp:table> etc... ?
Posted by Roy at 5/9/2005 7:02:30 AM
Hey all, Quick question here. Within VS.NET there are various tags such as <asp:Table>, <asp:TableCell>, etc... which can be used in lieu of <Table>, <td>, etc... Why do such replacement tags exist? Do they convey any inherent advantage over the old ones? Thanks! ...more >>

Can I rotate the DataGrid?
Posted by david at 5/9/2005 6:55:43 AM
Since there are too many data fields (clolumns) to display, it is better for me to rotate the datagrid by 90 degrees (ie, the columns become rows in web display). Anyone here can tell me how to do it, in either design or codebehind. Thanks David...more >>

User control in seperate DLL
Posted by PontiMax at 5/9/2005 5:46:09 AM
Hi, VS.NET compiles all code into a single DLL. How can I create a user control whose codebehind file is compiled into a single autonomous DLL? I want to be able to dynamically load the user control along with its codebehind file... Many thanks in advance, J. ...more >>

Credentials for web service
Posted by Web Team NO[at]SPAM Borough of Poole at 5/9/2005 5:28:36 AM
Hi All, I am tryin to consume a webservice which is password protected (NTFS). I know a user name and password that has access to the service. Can anyone advise what I need to do in order to supply these details when requesting the service? At the moment, the request seems to be making an a...more >>

How to redirect from global.asax
Posted by Salvador at 5/9/2005 5:10:04 AM
Hi, When my web application starts I want to create some instances, if an exception is raisen I want to show a specific page instead of the main page. How can I transfer the execution to a new page? using Server.Transfer doesn't work cause I don't have a page yet. Thanks in advance -...more >>

whats the equivalent of vbcrlf,vbcr,vblf (vbscript) in c#.net
Posted by sundar_s1210 at 5/9/2005 4:36:44 AM
i have the following code in asp using vbscript replace(str,vbcrlf," ") replace(str,vbcr," ") replace(str,vblf," ") where str is any string i want to convert this code in asp.net using c#.ne - sundar_s121 ----------------------------------------------------------------------- Post...more >>

ArrayList index ToString()
Posted by Jon at 5/9/2005 3:03:20 AM
Hello all, I think I must be missing something here as it seems it should be simple, but I've just tried to do a 'arrExtRep[0].ToString() (where arrItems is an ArrayList) and I get the error: error: 'arrExtRep[0].ToString' does not exist, however arrExtRep[0] kicks out the value; Why'...more >>

any tab example ?
Posted by dollar at 5/9/2005 2:30:11 AM
is there any examples for the tab control in asp.net please give me some detail - dolla ----------------------------------------------------------------------- Posted via http://www.codecomments.co ----------------------------------------------------------------------- ...more >>

w3wp.exe process locks files for a few seconds
Posted by utagger NO[at]SPAM gmail.com at 5/9/2005 1:55:23 AM
Hi All, We have a gallery component that allows us to upload images. An Edit Image Entry user control allows the user to update an image, by replacing the current one. Oddly, after replacing an image, if the user tries to replace again within a few seconds - he gets the following error mess...more >>

Validations for TIME
Posted by PISCES at 5/9/2005 1:03:27 AM
I need user to input time in my specified time: From Time hh:mm:AM/PM To Time : hh:mm:AM/PM But both are free text Any clues, ( other than suggesting me to change free text to dropdowns)...more >>

getting multiple table results question using stored procedure
Posted by Patrick Olurotimi Ige at 5/9/2005 12:42:15 AM
When i run the code below with stored proc :- I get only the first table results :-"templates" even if i fill the dataset with another table for example category,pages etc.. Any ideas? Store procedure below:- ------------------------ ALTER PROCEDURE dbo.webpage AS Select template...more >>

DataGridCommandEventHandler
Posted by Shiju Poyilil at 5/9/2005 12:21:04 AM
Hello EveryBody, How can i assign dynamically the DataGridCommandEventHandler to a dynamically created link buttons command property. as i have been trying to do the following in the ItemDataBound event of the datagrid , I am dynamically creating a link button and assigning the command p...more >>


DevelopmentNow Blog