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

SMTP Email problems
Posted by Srinivas at 4/25/2005 11:37:20 PM
Hi, I am using ASP.NET SmtpMail to send email using the following code public void SendEmail(string From, string To, string Subject, StringBuilder Message, string Attachment, string mailFormat) { MailMessage mailMessage = new MailMessage (); mailMessage.From = From; mailMessag...more >>


Does anyone know a good javascript forum?
Posted by Shapper at 4/25/2005 10:58:59 PM
Hello, I know this has nothing to do with ASP.Net but since I know people in this forum know a lot about programming maybe someone knows this: Does anyone know a good javascript forum? I need to get some help on a preload images function. Thank You, Miguel ...more >>

Must declare the scalar variable '@FirstName'
Posted by Ken Adeniji at 4/25/2005 10:12:04 PM
Must declare the scalar variable '@FirstName' ContactGridViewWebForm.aspx <aspqlDataSource RunAt="server" ID="SqlDataSourceContact" ConnectionString="server=localhost;database=WordEngineering;Integrated Security=SSPI;" ProviderName="System.Data.Ol...more >>

What is the .mspx file type?
Posted by clintonG at 4/25/2005 10:01:59 PM
What is the .mspx file type? <%= Clinton Gallagher ...more >>

set public property in another web user control
Posted by DC Gringo at 4/25/2005 9:37:25 PM
I have two user controls in a web form...user control 1 contains just a label, but I want to set its value from another web user control (2) in the same web form. I am able to set the value from the web form, but not from the user control 2...what am I doing wrong? This is in the web form:...more >>

Child window and repost problem.
Posted by Fernando Chilvarguer at 4/25/2005 9:21:28 PM
Hi, I've been trying to figure this one out for a while and I'm stalled. Here's my scenario: - a Parent window with a datagrid on it. The datagrid has pagination enabled and has an "Edit" link for each record. - Once someone clicks on the "Edit" link, a child window pops-up. The user e...more >>

Calling Events
Posted by Kiran at 4/25/2005 9:18:02 PM
Hi, I would like to call a checkbox's checked changed event from another event. Ho can I do this. Thanks Kiran ...more >>

Culture Questions. en-US.
Posted by Shapper at 4/25/2005 9:09:00 PM
Hello, I am working on a multi-language web site. After a lot of searching and reading I was able to define a way to do this. However, I need some help to put this on. I am working on ASP.Net/VB. I have a few problems which I hope somebody can help me with: 1. How to set the en-US as th...more >>



compilation error
Posted by Carlos Kim via DotNetMonster.com at 4/25/2005 8:59:48 PM
Compiler Error Message: CS1026: ) expected Source Error: Line 12: <body MS_POSITIONING="GridLayout"> Line 13: <form id="Form1" method="post" runat="server"> Line 14: <cr:CrystalReportViewer id=CrystalReportViewer3 style="Z-INDEX: 101; LEFT: 24px; POSITION: absolute; TOP: 40px" runat="...more >>

need to create sql dynamically
Posted by Andy Sutorius via DotNetMonster.com at 4/25/2005 8:40:34 PM
Hi, I remember in classic ASP when you had a webpage with a large number of textboxes and you needed to perform an update sql statement you could loop through all of the fields and dynamically create a sql statement. I have a webform with over 200 textboxes and I need to perform a sql update. ...more >>

ASPJPEG in vb.net ???
Posted by spicy NO[at]SPAM pandora.be at 4/25/2005 7:03:31 PM
Hello I have a working code for asp that I want to use now in asp.net. The code is included below. With this code I create a red bar on the bottom of an image, in which I give some comment on the image and the URL of the website. In the code image.asp I define the file name of the image (img),...more >>

remove a selection from a dropdown list box.
Posted by Paul at 4/25/2005 6:49:06 PM
Hi I have a dropdown listbox that is populated by binding to a dataset. Anyhow just wondering if anyone knows how to remove one of the items in the dropdown list in code after the dataset has populated it? thanks. -- Paul G Software engineer....more >>

Copy Folders via ASP.NET
Posted by Johnny Fugazzi at 4/25/2005 6:03:57 PM
I have a relatiovely simple need. I would like to have a webpage that a user can go to, fill out a couple of fields, and then hit OK where the result is that a Folder Template is copied and a new folder is created. The folders in question are on a IIS based FTP server. I am locking dow...more >>

set focus on postback/textchanged
Posted by Kurt Schroeder at 4/25/2005 5:57:02 PM
I'm setting focus depenting upon which field has changed value. I'm doing this with the following: Page.RegisterStartupScript("SetFocus", "<script language=""Jscript"" > document.getElementById(""txtCity"").focus(); </Script>"). This is being called on the textChanged event for textboxes. for ...more >>

Paging index position
Posted by david at 4/25/2005 5:44:28 PM
I have a question about paging index position. When I setup view position of paging index for DataGrid, I can only select the page index position at bottom or on the top. However, The .NET IDE tools automatically layout it in the right top or right bottom. If there are so many colunms, we c...more >>

AJAX + .net
Posted by darrel at 4/25/2005 4:51:40 PM
Anyone using Ajax with .net? Are there any controls/tools that make building with ajax easier or is it, for now, just a matter of connecting the javascript to the back end manually as needed? -Darrel ...more >>

Form no longer submits - client validator problem?
Posted by Wysiwyg at 4/25/2005 4:30:44 PM
I'm going back to a previous asp.net (C#) web project after a few months of inactivity and my first form, the login, won't submit. I ran with the debugger and still can't see how to resolve this. I am developing with VS2003 and on Windows 2000 Server and have all of the service packs for .NET an...more >>

DropDown List Custom Control
Posted by Steven at 4/25/2005 4:14:05 PM
This one should be a fairly simple one for you guys. I want to create a small dropDown list (custom control) and when the user selects anyone of the value, the control should pass back the Selected Value. This is what I did till now and I do not know how to pass back the selected value .. Plea...more >>

running an .sql script from an asp.net web page
Posted by Steve Richter at 4/25/2005 4:00:51 PM
I have the asp.net source of a web application. ( from a great asp.net book by Wrox ) http://www.amazon.com/exec/obidos/tg/detail/-/0764558900/qid=1114469495/sr=8-1/ref=pd_csp_1/002-6140610-0826411?v=glance&s=books&n=507846 The source code includes an sql script that is run to create the da...more >>

Handling Dates....
Posted by Child at 4/25/2005 2:59:07 PM
I am trying to insert some data into a table and keep gettting the error: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. Its me testing the database so the dates should be dates. In the CodeBehind page of the form that calls this AddEvent function I...more >>

Reading Value of Controls Added To A Page At Runtime
Posted by Guadala Harry at 4/25/2005 2:24:22 PM
I will be creating a new ASPX that requires many controls to be inserted into the page at runtime. The controls include things like TextBox, RadioButtonList, CheckBoxList, DropDownList, etc. Validators will be added dynamically as well - for some of these controls. When the page is posted ba...more >>

using databind on InsertItem template field
Posted by Daves at 4/25/2005 2:19:23 PM
I have a FormView (2.0) with Item-, Insert- and Edit template. I'm viewing a product so I have ID, Title and Description fields and also Category field. When Inserting a new item all fields are empty but I need the Category field to be set automatically since the user is browsing products unde...more >>

How to call VBScript function from DataGrid control in ASP.net?
Posted by Vadim Vulfov at 4/25/2005 1:16:07 PM
We have DataGrid control and hyperlinkcolumn column type in ASP.NET application. We can successfully trigger javascript function on the hyperlinkcolumn click by using: <asp:HyperLinkColumn headertext="" text="Profile" DataNavigateUrlFormatString="javascript:editaccount('{0}','history');" ...more >>

How to call vbscript from javascript function in ASP.NET?
Posted by Vadim Vulfov at 4/25/2005 1:12:11 PM
We have VBScript function that we need to call from Javascript. How can we do that? Vadim *** Sent via Developersdex http://www.developersdex.com ***...more >>

Readonly textbox with scroll
Posted by pv_kannan NO[at]SPAM yahoo.com at 4/25/2005 12:40:55 PM
Hello, I am stuck with a problem trying to mimic the behavior of a Windows Forms Readonly textbox in HMTL/ASP.NET. Basically, I would like the text to be readonly and overflow the textbox (overflow attribute) with the user being able to scroll thru the text using the arrow keys within the tex...more >>

How to create a 2 languages web site? Thank You.
Posted by Shapper at 4/25/2005 12:23:34 PM
Hello, I am working on an ASP.NET / VB web site and I need to have 2 versions: In English and French. I could create two versions of the web site by duplicating all the pages. Is that the right way? All my contents come from a database so I can duplicate the the fields so I can have 2...more >>

open new browser window - asp.net
Posted by sri_san NO[at]SPAM mailcity.com at 4/25/2005 12:17:54 PM
Hello, I am working on a page where I need to open a new webpage on a button click. I tried using javascript's window.open but with popup blocker enabled, it doesnt seem to work. Any way to get away with the popup blocker? This is being used to generate some business reports and no...more >>

How to use a datareader instead of a dataset?
Posted by Shapper at 4/25/2005 12:16:00 PM
Hello, I have this ASP.NET / VB code which uses a dataset: ---- For Each row As DataRow In dsContent("index").Tables(0).Rows Dim div As HtmlGenericControl = CType(Page.FindControl(row("name").ToString), HtmlGenericControl) If row("content").ToString <> "" Then div.InnerHtml = r...more >>

weird bug with ImageButton.. i think??
Posted by Brian at 4/25/2005 11:54:54 AM
I replaced my submit buttons with image buttons on my forms.. I need to display the results of the fields that were entered. On my test server, it works great, but on my live server, I am seeing Button1.x and Button1.y. Here is my code. Can someone tell me why i can't stop them from showing o...more >>

ASP.NET application and GAC
Posted by Amelyan at 4/25/2005 11:51:52 AM
What is the deal with ASP.NET and signed assemblies? I have experienced some weird behavior of my web application where it looked like my asp.net application wasn't even looking into GAC. Then, I saw a brief mention on the web "ASP.NET doesn't pick up signed assesmblies from GAC". Does anyon...more >>

ASP.Net 2.0 and partial classes
Posted by Patrick at 4/25/2005 11:49:04 AM
Hi all, I was playing around with ASP.Net 2.0 and recognized that in case you use Code-Behind/Beside (how is it called in future?) the parser still creates TWO classes one partial class under the global namespace which is called the same way than your codebehind class and another class unde...more >>

FormsAuthentication works as expected on a couple older websites, but not the same on a new website...
Posted by Dean R. Henderson at 4/25/2005 11:38:22 AM
I setup FormsAuthentication on a couple websites where it has been working as expected for a long time. I used this code to setup the same type of authentication on a new website I am working on and the Cookie Name is not getting setup the same way. In my Web.config file, I use the following ...more >>

urgent-changes getting reflected in other folder also
Posted by monika at 4/25/2005 11:37:14 AM
hi i simply copied my project , and pasted in another directory. now what's happening is that when i change in one it starts reflecting in another also...why is this happening and how can i avoid this thanks a lot ...more >>

sys.web.mail err: The requested body part was not found in this message
Posted by SMG at 4/25/2005 11:34:01 AM
Hi All, My Send mail system was working very fine, today suddenly it started giving me following error. Can any one suggest why this is happening so. I am using system.Web.Mail "The requested body part was not found in this message. " Note : here XXXX and YYYYYYY are company specific ...more >>

asp:Panel tag
Posted by Pietro at 4/25/2005 11:20:07 AM
The asp:Panel tag renders a DIV in IE and TABLE in Firefox, where can i configure it to render DIV in both. Thanks Pietro...more >>

Temporary user files under IIS - FAQ?
Posted by Rob Nicholson at 4/25/2005 11:13:07 AM
What's the usual way of handling temporary user files under ASP.NET running on IIS? On a normal Windows client program, you'd probably store the documents in the %TEMP% folder. However, aren't all users running under the same ASPNET account so they're sharing the same TEMP folder? Also, you real...more >>

strange but true
Posted by Carlos at 4/25/2005 10:52:19 AM
Hi all, I have been working on an Asp .Net project that reports from a database. The project was going great, until all of a sudden the results stopped displaying!. I do not know if it is a buffering problem, the thing is that I did not get any warning at compilation time, and when trying to ...more >>

Creating User Accounts with or without Active Directory
Posted by J'son at 4/25/2005 10:46:48 AM
<REPOSTED> Guys, I need to build a web intranet application that can automatically create a user account when a new user registers on the site. The user account will be on the web server, member of the guests group (or some other limited group), and get read permissions to a special folder....more >>

Text Message Data
Posted by Manny Chohan at 4/25/2005 10:36:01 AM
HI Guys, I am quite puzzled at the following issue: I have a .net application linked to SQL database in back end. In database we have records for clients and their associated Projects.There is a need that came up and the company wants us to provide SMS based functionality where an exec can...more >>

Placing an "icon" in the address field for the browser
Posted by Ray Stevens at 4/25/2005 10:18:35 AM
Is it possible to place a company icon (logo) in the browser address field so that if a user copies it as a shortcut to his desktop the icon will be there. For example, like this: http://espn.go.com/ ...more >>

Which installer program is good for aspnet
Posted by ad at 4/25/2005 10:14:02 AM
I have finished my web application which useing MSDE as database. I want to packet my web application and MSDE, dotFramework .. together as an installer program. How can I do that? Are there any good packet program like install shield for web application? ...more >>

HOWTO: Stop BIN Folder From Opening
Posted by Dan Sikorsky at 4/25/2005 9:54:21 AM
How can I stop the bin folder from automatically opening and showing all its contents upon startup, moving from project to project, etc.? It should only open when you click on it to expand it. ...more >>

stop VS.NET 2003 IDE automatically insert <font> tag
Posted by Darren Li at 4/25/2005 9:52:59 AM
Hi: Can I stop VS.NET 2003 IDE automatically insert <font> tag into the asp.net web form design view? It just keep inserting that tag with the font I don't want to use. I search document property, body property, tools/options, I just can not find a place to turn it off! Please help! Thanks...more >>

HttpHandler Redirection
Posted by Brian Patterson at 4/25/2005 9:51:27 AM
I have an HttpHandler that I use for processing file downloads. This files are currently contained within a database and everything works great. The problem I'm having is that if someone requests a file that doesn't exist - they are currently getting and emply file rather than the standard E...more >>

Invalid file name for monitoring
Posted by Brad Quinn at 4/25/2005 9:39:06 AM
I'm undergoing an audit where my web application is supposed to handle (gracefully) a bunch of garbage being throwns at it. When I use the following url I get an error; http://localhost/myapplication/~Home/Page.aspx where the offending character is the tilde. [HttpException (0x80070...more >>

What is significance of IsReusable property in IHttpHandler Interface
Posted by Angrez Singh at 4/25/2005 9:27:06 AM
Hi, If you just want to implement your own HttpHandler using the IHttpHandler interface you have to implement a function and a property of the interface. The function ProcessRequest() is used to implement your own custom request handler which returns the response according to your code. No...more >>

How can I invoke the File System Dialog box
Posted by Edward F at 4/25/2005 9:17:49 AM
I am using the following code and it works fine. Instead of hard coding the location for saving the file I will like to use the file dialog box in windows. So that the user and give a name to the file and also select a location to save it in. I then would like to grab the path and file name ...more >>

Firefox and IE browser
Posted by Diffident at 4/25/2005 9:00:02 AM
Hello Guys, I am posting my weird experience on firefox by a piece of code I have written. That piece of code is supposed to be executed when the page is not posted back i.e., for the very first time. In IE, my code is doing what it is supposed to do i.e.., it is not executing that piece...more >>

httpmodule question
Posted by rajaher NO[at]SPAM hotmail.com at 4/25/2005 8:44:05 AM
Hi there, I have written a small httpmodule which basically scan the incoming request on a perticular domain and pass the url based on mappings. more like a url rewriter e.g. http://www.abc.com/joe.block/index.html will actully be mapped to c:\root\docs\somedir\joeblocks\index.html for this...more >>

Age-old "SQL Server does not exist" error
Posted by Roy at 4/25/2005 8:26:26 AM
Judging from the sheer number of posts on this topic, I'm sensing this is a fairly common problem. Only problem is, I've tried just about every recommendation in all the posts I've found thus far and none have worked. I have XP on my workstation and two servers that run server 2003. I have sq...more >>

CheckSuspiciousVirtualPath
Posted by J at 4/25/2005 8:21:03 AM
Hi group, I can't seem to find any msdn references to this, but our event log for an ASP.NET web application is filling up with the error "CheckSuspiciousVirtualPath." I believe it's more informational than anything. Here's part of the stack trace: ******************************************...more >>

Repeat an ASP:Image button
Posted by VK at 4/25/2005 8:19:09 AM
Hello, I need to repeat an asp:imagebutton whch has an onclick event associated it. Is there a way to do it?...more >>

get day of the month
Posted by poppy at 4/25/2005 8:04:39 AM
Does anyone know how I can get an integer from a date representing the day of the month ? TIA...more >>

VS.net formats by html BAD
Posted by sklett at 4/25/2005 7:49:03 AM
Is there a tag I can use in the editor or something so that VS.NET won't reformat my HTML so poorly? I can I mark a section of code for it to ignore? I'm running 2003. Thanks ...more >>

Error: Specified cast is not valid
Posted by Web Team NO[at]SPAM Borough of Poole at 4/25/2005 7:01:22 AM
Hi All, When I run the below code, I get error 'Specified cast is not valid' on line 163 Dim Address As OldInfra.BS7666.Address = BS7666AddressCollection.GetSingleAddress(str_UPRN) 164 Dim easting As Integer = Address.Easting 165 Dim northing As Integer = Address.Northing Address.No...more >>

setup associate application with file type
Posted by david at 4/25/2005 6:43:02 AM
I have a basic problem about MS. I can not change the associated application with file type. I have done the following. go Tools -->Folder Options-->File Types. However, the buttons such as New, Delete, Change, and Apply are disabled for all file type items in the file type list. Anyone ...more >>

ASP.Net Chat
Posted by Jarod at 4/25/2005 6:31:06 AM
Hey I have to write ASP.Net Chat - a real time one. I don't have any idea how to do it, can you give me some light at how it should be done ? Maybe some articles / examples ? I found some simple chat chattyways, but I didn't tried it yet. I really don't know how to start with it. Does it need...more >>

Session state management with SQLserver and custom DB?
Posted by ML at 4/25/2005 6:14:05 AM
Hi NG! I wish to use SQLserver sessionstate mode with my ASP.NET application, since reliability is a big issue and performance less so. However, it is hosted at an external hosting partner who does not allow me to have the ASPstate db on the SQL server (or to create another, for that matter...more >>

if there is data in DataGrid1
Posted by JIM.H. at 4/25/2005 6:07:10 AM
Hello, After doing DataGrid1.DataBind();, how can I check if there is any data in DataGrid1 in C#? Thanks, Jim. ...more >>

Data grid column
Posted by asad at 4/25/2005 5:58:02 AM
Hello, i'm using datagrid control to fetch a greeting card Data, but i have a problem in datagrid coulmn, all the greeting card images showing in one Column but i want to show these in atleast 3 columns what technique i use for doing that pls tell me. thanks...more >>

SQLParameters and loops???
Posted by Tim::.. at 4/25/2005 5:34:01 AM
Is there an easy why to build this in a loop rather than having to declare every single SQLparameter, value etc etc I would be really grateful for any advice! Thanks ... CODE ... Sub UploadData(ByVal sender As Object, ByVal e As EventArgs) Dim MyConn As New SqlConnecti...more >>

Subclassing a user control containing UI elements
Posted by Charlie NO[at]SPAM CBFC at 4/25/2005 5:33:10 AM
Hi: When I derive a new user control from an existing user control that contains UI elements (buttons, textboxes, etc.) and put derived control on a form, UI elements don't appear when I run the form. Why doesn't derived control inherit them? Thanks, Charlie ...more >>

Invoke event of Frame page
Posted by fb at 4/25/2005 4:06:07 AM
HI, I encountered problem in using iframe. In my Main.aspx, i have a toolbar user control, together with a frameset. The frameset has 2 separate pages. However, i wonder is there any way to pass trigger/invoke events/procedure in frameset page when I click the toobar button from the Main.aspx? ...more >>

BULK INSERT WITH ADO.NET & ORACLE
Posted by Shiju Poyilil at 4/25/2005 3:54:03 AM
Hi, I want to do a bulk insert of around 25k records into oracle databse . can anyone help me out with some work arounds, I have used the bulk insert in SQL SERVER , but in ORACLE I am unable to do. your expert advice and support would be highly appreciated. Rgds Shiju ...more >>

Program
Posted by antonio.echalecu NO[at]SPAM gmail.com at 4/25/2005 3:26:50 AM
Hi, I'm looking for a free program that can convert 1 asp.net application or asp.net class to a class diagram or graphic where I can see methods and attributes. Does anyone know where can I find this? Thank you very much....more >>

How to identify a control that fired a event
Posted by LongRunner at 4/25/2005 2:58:01 AM
Hi, I am a beginner on the ASP.NET. I created some custom controls (Control Library) and used in a WebForm (ASPX), I found that when a control fired a event in a ASPX, all the other controls will be execute the Render method. Rendering the unneccessary things will make the result incorrect...more >>

ASP.Net 2.0 and the annoying <div> wrappers
Posted by Patrick at 4/25/2005 2:40:02 AM
Hi you all, I've just downloaded the latest beta of the .Net Framework and Visual Studio Expression 2005 edition. I only created a simple ASPX file with some code-beside/behind (however you want to call it). First thing I checked was the generated html-output and I was shocked! I found <div...more >>

SqlDateTime overflow when running procedure
Posted by poppy at 4/25/2005 1:27:48 AM
I set up my parameters in code as follows : [code]lTTState.startDate = Today.AddDays(-10) lTTState.startDate = Today lSqlCmd.Parameters.Add(New SqlParameter("@startDate", SqlDbType.DateTime)) lSqlCmd.Parameters("@startDate").Value = lTTState.startDate lSqlCmd.Parameter...more >>

how to share the connection?
Posted by dollar at 4/25/2005 12:03:12 AM
thanks for your reply Kevin, but I don't understand what do you mean t "NOT to do that", you mean to declare the same connection and sam class in every web form ? and what is the built-in connection pooling please describe it more detail , it is better to show me some simpl examples, thanks ...more >>

how to save the XML file into the database
Posted by buran at 4/25/2005 12:00:00 AM
Dear ASP.NET Programmers, I am saving the tables of a dataset into an XML file. I want to save the XML file into the database, then retireve it as a dataset. I use the following code: ds.WriteXml("C:\Inetpub\wwwroot\database2\richtext\burak.xml") where ds is my dataset. When the page l...more >>

FormView: last inserted item ID?
Posted by Daves at 4/25/2005 12:00:00 AM
how can I get the ID of the new record FormView just inserted? ...more >>

Any good Shopping Carts out there?
Posted by Chuck Yeager via DotNetMonster.com at 4/25/2005 12:00:00 AM
Is there any good Open Source code for a shopping cart which uses C# and code behind? -- Message posted via http://www.dotnetmonster.com...more >>


DevelopmentNow Blog