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 > september 2005 > threads for tuesday september 13

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

Calendar control without postback
Posted by Sathyaish at 9/13/2005 11:57:13 PM
I notice the calendar control in ASP.NET does not have an AutoPostBack property. I want that when I select a date from the control, the control must *not* post back the page. How do I do that? ...more >>


Html code cleaner - Powerful HTML Code Compression Tool
Posted by heren at 9/13/2005 11:48:06 PM
http://www.htmlcodecleaner.com-http.com/ ...more >>

Server.MapPath error
Posted by tshad at 9/13/2005 11:15:15 PM
I am using VS2002, at home and can't seem to get Server.MapPath to work. I get the error: The type or namespace name 'Server' could not be found (are you missing a using directive or an assembly reference?) My code page is essentially: using System; using System.Collections; using Syst...more >>

PLEASE HELP ASP.NET PROBLEM
Posted by Yet another C# coder at 9/13/2005 10:43:56 PM
Dear All, I have encountered a very strange problem with DataBinding a repeater. 1. I have a DataTable that has 100 record (3 columns with number only and the records count is also confirmed) 2.I have created a proper Repeater 3. The Repeater has a databinding with the datatable 4.When I ...more >>

Div server control not working in VS2002
Posted by tshad at 9/13/2005 10:12:28 PM
I have some code that works at work but not at home. I am using VS2002 at home and get the following error: The type or namespace name 'div' could not be found (are you missing a using directive or an assembly reference?) My code behind page as: ***************************************...more >>

Linking to a stylesheet multiple times
Posted by Nathan Sokalski at 9/13/2005 9:05:33 PM
I have user controls that contain a link to a stylesheet. Several of my pages also have a link to this same stylesheet. Because of this, the resulting output contains multiple links to the same stylesheet. Although this does not cause any harm as far as how the page looks, it is unnecessary ...more >>

Error: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'FillMenusByLocation' that has parameters: @locationId
Posted by Dotnet Gruven at 9/13/2005 8:20:23 PM
I've posted this in the adonet group, however it was suggested I might have better luck here.... ============================================================= I'm trying to use a typed dataset and ObjectDataSource binding to a SQLX db using a foreign key to filter the returned result set to dis...more >>

how to bind repeater to 2 datasources
Posted by Fred at 9/13/2005 7:39:09 PM
hi, say there is a product object in an asp.net 1.1 app there is a table in the database containing all the document names in the system, and another table w/ the guid of the object and all the documents guids related to that product how do i display the list of all documents related to a pr...more >>



Events not firing from dynamically instantiated classes.
Posted by AndrewMBaldwin NO[at]SPAM gmail.com at 9/13/2005 7:35:15 PM
Ok, this is going to be a long post, so I apologize in advance, but if it was an easy question I would have probably found an answer somewhere out here by now... The short story of this is that I am creating a "process framework" that allows for common web controls to be linked together in a ...more >>

Is .net vulnerable to this spam attack.
Posted by vMike at 9/13/2005 7:33:45 PM
http://www.anders.com/cms/75/Crack.Attempt/Spam.Relay Here is a snip from the above link. .... attacker is hoping to exploit unchecked fields in a "web to email" form. The attack works by assuming a field used in an email header (such as the "From:" address or the "Subject:") is passed unc...more >>

Convert System.Byte[] to System.String
Posted by Imran Aziz at 9/13/2005 7:23:04 PM
Hello All, How can I convert System.Byte[] to System.String ? When I use Convert.ToString() it just returns me the string "System.Byte[]" Please help me out with this. Imran. ...more >>

Unable to cast object of type 'System.Byte[]' to type 'System.String'.
Posted by Imran Aziz at 9/13/2005 5:52:12 PM
Hello All, I am getting the following error on our production server, and I dont get the same error on the development box. Unable to cast object of type 'System.Byte[]' to type 'System.String'. here is the code that I used to create a table and then add columns to it later, later I...more >>

asp.net login.aspx 404 but no login.aspx needed
Posted by frekster at 9/13/2005 5:42:06 PM
All, Windows xp pro box with vs 2003 and .net 1.1 installed. Downloaded a project from source safe via vpn to my ome pc to work from home. I have three other projects on my pc that works fine with the vpn. This one, however, is being a bugger. Every time I start it, I get a 404 error stating ...more >>

Images Stored in SQL to show on ASPX pages?
Posted by Vonnie at 9/13/2005 5:29:25 PM
I have images stored in SQL (not paths or urls) I need to show them on webpages but the image control only seems to have a imageurl property. Is there another control I should use to databind? is there a way to databind the imageurl property? I am using VS 2005 but if you know how to do ...more >>

Script not working in VS
Posted by tshad at 9/13/2005 5:09:41 PM
I tried to add the following to web page in VS 2003: <style> div { font: 8pt verdana; background-color:cccccc; border-color:black; border-width:1; border-style:solid; padding:10,10,10,10; } </style> and the IDE told me: The active schema does not supp...more >>

Perf issue with PreRender
Posted by bryanp10 NO[at]SPAM hotmail.com at 9/13/2005 5:08:31 PM
I added my own Trace message to the OnPreRender event, and now my trace output is rather interesting: aspx.page Begin PreRender 1.323881 0.000060 OnPreRender start at 9/13/2005 4:08:15 PM 1.357799 0.033917 OnPreRender end at 9/13/2005 4:08:15 PM 1.922175 0.564376 aspx....more >>

Massive Data Input
Posted by Will Lastname at 9/13/2005 5:07:36 PM
I'm creating an application that allows a user to enter multiple items that correspond to a single collection. The idea is that they enter the product in the textbox, hit submit, repeat.... Currently they have to manually move the cursor back to the textbox to continue inputting data. Since hi...more >>

Textbox Cursor Position
Posted by Will Lastname at 9/13/2005 5:06:58 PM
I am trying to place the cursor's default position into a certain textbox on each postback. I have only found Javascript and C# examples so far. Any VB.NET suggestions? ...more >>

client side
Posted by abcd at 9/13/2005 4:36:45 PM
This is more of a HTML/javascript question I have a select control <select> <option value = "1"> abcd </option> <option value = "2"> my&nbsp;Name </option> <option value = "3"> your&nbsp;Name </option> </select> I am comparing the values of the text property of the select control....my...more >>

stuck on this one
Posted by NuB at 9/13/2005 3:51:59 PM
I posted this before and it didn't help. I have a web site in .NET that runs under a virtual directory on my server. In IIS I virtual pointing to the physical path where the .aspx pages. How can I the path of the virtual directory and not the physical path? I have links on my asp.net web f...more >>

asp to asp.net error
Posted by amitbadgi NO[at]SPAM gmail.com at 9/13/2005 3:05:07 PM
Hi I am converting an asp applicattion to asp.net, and I am getting an error as follows, Exception Details: System.Runtime.InteropServices.COMException: Type mismatch. Source Error: Line 350: 'response.Write(sql2) Line 351: rs_getAlarmCount = Server.CreateObject("ADODB.Recordset"...more >>

Stepping through Code in ASP.NET
Posted by Stephen Noronha at 9/13/2005 2:50:12 PM
Hi, I get an error "System.Data.SqlClient.SqlException", after my Stored Procedure runs and i saw an article for debugging through the Stored procedure using VS .Net. http://techrepublic.com.com/5100-10878_11-5161626.html i dont use the wizard and create and write data access components mys...more >>

wondering if ok to ask here...
Posted by rodchar at 9/13/2005 2:39:21 PM
hey all, you know how you can drag a Crystal Report into a web form with a Viewer from the toolbar, so i was just wondering if there was a way to take fields in a datasource and combine them in the report designer? thanks, rodchar...more >>

User Controls Event Lifecycle
Posted by Jonny at 9/13/2005 2:36:31 PM
I have a user control made up of a couple of web controls. I want to be able to set the SkinId on the web controls at run time. To do this I need to set the skin Id in or before the PreInit event. However, I can see no way of hooking in to any events within a user control prior to the OnInit e...more >>

Listbox & "Intellisense"
Posted by Will Lastname at 9/13/2005 2:08:37 PM
I want to create a listbox, or preferably a checkboxlist that is populated from a database. There will be a textbox right above that the user can start to type in a product name and the listbox (or checkboxlist) will populate depending on their typing. For example: They start to type Tu and th...more >>

.NET Web app database
Posted by attitude at 9/13/2005 1:29:12 PM
I've recently taken over a developer's project. She created a .NET web app in VB.NET and SQL Server 2000. The project is up and running fine. But i see one problem. I can't find the database the app is trying to access. Is there a way to find out which database the web app is accessing. I'm sure...more >>

Client Side Validation is Not Happening
Posted by Guadala Harry at 9/13/2005 1:28:20 PM
I hope this is something I can solve without contacting the vendor: I'm implementing a 3rd party component that will, by itself, initiate a PostBack. Apparently it does not support the CausesValidation property - so forms get posted back without any client-side validation. I know I can do val...more >>

Any way to tell what control raised the postback?
Posted by MattB at 9/13/2005 1:20:38 PM
I have a form with multiple text boxes on it and one of several can raise a postback event. Is there a way to easily tell which one raised the event? Thanks! Matt...more >>

Puzzled about viewstate error
Posted by jeff29_b NO[at]SPAM yahoo.com at 9/13/2005 12:25:01 PM
We have in our site the pages tag in the webroot tag like so. <pages enableViewState="true" enableViewStateMac="false" /> But we are still getting errors during LoadPageStateFromPersistenceMedium. The stack trace is like so - at System.Web.Configuration.MachineKey.GetDecodedData(By...more >>

User control not updating
Posted by sqlboy2000 at 9/13/2005 12:02:00 PM
Hello all, I have something very simple going on here and I'm scratching my head as to what the problem is. There are 4 items in my project, 2 webforms, a user control, and a module: WebForm1.aspx ChangeValue.aspx WebUserControl1.ascx Module1.vb Here's the flow: WebForm1 is the start pa...more >>

How do I create my own validation keys?
Posted by darrel at 9/13/2005 11:11:23 AM
I'm trying to read a validation cookie between different applications like this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconformsauthenticationacrossapplications.asp The question I have is how do I make the initial validationKey and descriptionKey? Or ...more >>

static server-side information
Posted by PJ6 at 9/13/2005 10:49:27 AM
OK I now truly appreciate that I can have static information on the server, it is automatically preserved in any DLL static fields. It's great, I'm happy. Only it's a little too good - when I restart a debugging session, static information that I need cleared persists. Is there a way (aside fr...more >>

"Floating Layer" when hovering over a LinkButton
Posted by GD at 9/13/2005 10:41:31 AM
I have a collection of asp:LinkButtons on a web form. Based on some reporting criteria, I will be "highlighting" some of these LinkButtons. I'd like the user to be able to mouseover the LinkButton and get a "floating layer" with some text in this. How can I achieve this on the server side? T...more >>

Stream client side content to server
Posted by Scott Friedrich at 9/13/2005 10:39:01 AM
We have an asp.net application in which we use an embedded activeX control to display an EMF. The control offers a client-side Copy method that copies the contents to the client's clipboard. Is there a way we can then stream this contents back to the server to be saved as a flat file or used...more >>

QueryString with truncated chinese strings
Posted by Lara Grillo at 9/13/2005 10:22:16 AM
In an Asp.Net application on an chinese operative system, the string (in chinese characters) returned by querystring function is truncated. example: in querystring I set Title= ?? C# code: a = HttpContext.Current.Request.QueryString["Title"]; after the call the last char is cutted out ...more >>

Call an event handler programatically
Posted by Ed Chiu at 9/13/2005 10:06:03 AM
Hi, I have an asp button name btnSubmit in a web form Here is the event handler declaration: Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click How can I call this sub programatically? Of course I can just insert one line of...more >>

Is it possible to deploy ASP.NET 2 proj onto PWS on windows2000 p
Posted by Turk at 9/13/2005 9:44:13 AM
Is it possible to deploy ASP.NET 2 proj onto PWS on windows2000 pro. The app runs fne in vstudio2005, but unable to configure asp.net 2 on PWS on my windows2000 development box. Is this possible? Thansks...more >>

Changes for configuration in ASP.NET
Posted by Shimon Sim at 9/13/2005 9:41:23 AM
Hi I converted my existing ASP.NET project to VS.NET 2005. Build gives me some warnings about config file. I have custom section definition in web.config. Were there any changes in this for ASP.NET 2.0. Where can I see what was change and how I can migrate? Thank you Shimon. ...more >>

CheckBoxList
Posted by jase_rw NO[at]SPAM hotmail.com at 9/13/2005 9:06:42 AM
Hi There, Having trouble with a CheckBoxList in VB.NET. I've a CheckBoxList on a webform. I read some data from a database and try and check the appropriate boxes based on the data. Unfortunately, the CheckBoxList seems to behave like a RadioButtonList and only leaves the last item checked...more >>

commented out form tag causing error
Posted by Rod Snyder at 9/13/2005 8:16:13 AM
This isn't a big deal but I'm just curious if someone can explain this. I have an asp.net page in which I was trying out some different options and through copying and pasting I had an extra </form> tag, although it was commented out <!-- </form> --> in the html view. However, when running ...more >>

webservices, return xml without .net injecting xml schema
Posted by Peter Nofelt at 9/13/2005 7:50:46 AM
Hey all, I want to return an xml structure without .net trying to inject any of its xml schema? Can this be done? Here is the scenario: I'm running into an issue with the return string of my .NET webservice. I am attempting to return an xml string similar to this: <?xml version="1.0" en...more >>

Performance and Scalability of JSP and ASP
Posted by tharma at 9/13/2005 7:31:40 AM
I was wondering if some one provides some information about scalability and performance of ASP vs JSP (not ASP.NET). Scalability of JSP vs. ASP (which one is better?) Performance of JSP vs. ASP (which has better performance?) I have been looking for graphs, and charts that compare JSP vs. ...more >>

Content Damage
Posted by athirumurthi NO[at]SPAM yahoo.ca at 9/13/2005 7:16:03 AM
I have a WinINet communicating with an integration server (X-AspNet-Version: 1.1.4322) using form posts. One form post that includes jpeg content. However, the data received at the server is missing bytes from the beginning of the jpeg. It could be that the whole exif header that has been st...more >>

The system cannot find the file specified
Posted by NO[at]SPAM at 9/13/2005 7:05:01 AM
I am running a web server (IIS) on Windows 2003 SP 1. My ASP.NET C# applications run fine. However, my application is a combination of Classic ASP and C#. For some reason when you attempt to access the Classic ASP components of the application you are presented with this useless error mes...more >>

SSL beginner
Posted by dave NO[at]SPAM bluehills.co.uk at 9/13/2005 7:04:06 AM
I have a web application hosted by an ISP that has a login page called "default.aspx" - the user enters username and password which is then checked in an SQL Server database. Everything worked fine until I recently subscribed to a Personal SSL certificate for the web app.from my ISP - now, after...more >>

Javascript input.click() does not cause a Response.Redirect in asp.net
Posted by ahaupt NO[at]SPAM gmail.com at 9/13/2005 7:03:07 AM
Hi all, I have to use some javascript to "click" a search button on my aspx page. The server side btnSearch_Click executes prefectly, but there's a Response.Redirect within the method, that does not get executed. Any idea why it would execute all the code apart from the Response.Redirect...more >>

Help on maintenance state information ???
Posted by serge calderara at 9/13/2005 6:28:02 AM
Dear all, I am beginer in asp.net and I try to understand how the context.handler works I have first web page on which I have 2 text box prefilled with default text Then from the second webform I retrive the value of those text box using: dim LastPage as MyFirstWebFrom LastPage=ctype(Co...more >>

How to persist a dataset to XML using a CDATA field?
Posted by chrisn at 9/13/2005 6:13:32 AM
I want to store text with HTML tags in an XML field, and to do this I plan to use a CDATA field so that malformed HTML tags don't corrupt the XML file structure (I have no control over the format of the HTML). Rather than writing out the XML file explicitly, for simplicity I want to write the ...more >>

How can I use the resource file...
Posted by ReneXYX at 9/13/2005 5:17:34 AM
Hello, I write a user control with same pictures. The pictures I've tranfer t a singe resoucre file. How can I use the pictures on my user control? I think with the ResourceManager, but how to? Thanks Ren -- ReneXY ---------------------------------------------------------------...more >>

Add a button to the Excel sheet
Posted by Jaison at 9/13/2005 4:28:02 AM
Hi all, I would like to add a button to the excel sheet dynamically and this button is to be used to navigate between sheets. Thnx in Advance -- Cheers Jaison...more >>

Unable to do compilation using CodeDom in ASP.NET
Posted by jimjxr NO[at]SPAM yahoo.com at 9/13/2005 4:17:13 AM
Hi, I'm trying to use ICodeCompiler.CompileAssemblyFromSource to compile C# source code (in a string) into assembly dynamically. This works fine in a console program, but fails under ASP.NET, the compilation error I got is CS1619: "Cannot create temporary file 'c:\WINDOWS\system32\CSC201E.tmp...more >>

Passing Array between pages
Posted by Paraki at 9/13/2005 2:07:01 AM
Hi, How to pass the array or arraylist(dataset or any other object in fact) from one page to another. I am using the one page to display 10 records and another page to display and modify the selected record. I want to pass the values of selected record from one page to another. Can someone...more >>

While downloading .CSV it saves as an excel file.
Posted by ksskumar2000 NO[at]SPAM gmail.com at 9/13/2005 1:34:32 AM
Hi Friends, What I want: If the user click a hyperlink, I have to download a .CSV file into the users machine. What I tried: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl="Sample.csv">download file.</asp:HyperLink> The Problem: While clicking the link the file downloading ...more >>

Sessions randomly lost using state server
Posted by AndersBj at 9/13/2005 12:26:08 AM
Hi all, I have a web application that uses State Server for session handling. The web application randomly loses all session variables. The sessions are not always lost, sometimes I can use the application for a day or so, and sometimes the sessions are lost every 5 minutes. I've read so...more >>

Someone must have done this
Posted by Chris Botha at 9/13/2005 12:18:39 AM
Hi, I've tried the SQL Server newsgroups and it seems nobody did it there, I got no replies, or those that did it don't want to tell. I have VS2005 Beta 2 installed with VS2003 and everything works good enough with an occasional Beta hick-up but nothing serious. On the same computer I have S...more >>

How can I make sure that Session_End is called when the user closes the browser?
Posted by Annie at 9/13/2005 12:00:00 AM
Hi guys, I just want to do some clean up in the Session_End at Global.aspx. However, if the user closes the browser window that event is not fired. how can I call explicity protected void Session_End(Object sender, EventArgs e) when the user closes the browser window? possible at ...more >>

No IIS "Web Service Extensions" even after reinstalling .NET Framework 1.1
Posted by Nick at 9/13/2005 12:00:00 AM
Hi there, I despearately need to get IIS working with ASP.NET, but I still can't see any "Web Service Extensions". My previous question regarding this ended in the decision to uninstall .NET Framework 1.1 then reinstall, unfortunately this seems to have done nothing. I've tried ...more >>

Taking account of screen resolution
Posted by Franck at 9/13/2005 12:00:00 AM
Hello, In asp .net is there any way of resizing the component second the screen resolution? If not is there any workaround? thank you Franck...more >>

howto display an empty datagrid?
Posted by Jimmy at 9/13/2005 12:00:00 AM
Hi I want to display an empty datagrid if my datasource has zero results. How to do this? thanks J. ...more >>

Paste image from clip board to send via e-mail
Posted by Ben at 9/13/2005 12:00:00 AM
Hi, I am writing an aspx page which submits data via and e-mail. I want to allow a user to paste and image from the clipboard (screen dump for example) and then this image must either be saved to a database file or insterted in the e-mail and sent (preferable method). Any and all help to...more >>

Up file extension problem
Posted by Frank K via DotNetMonster.com at 9/13/2005 12:00:00 AM
To all, I have written a small file upload program and all works well with .txt .jpg . xls files etc... but when I upoad a .rmvb file (Real player file 200K in sze) It error as "File contains no data". I do not find any threads here talking about this problem and it must be a simple one. Can ...more >>

Question on RegularExpression
Posted by fabrice at 9/13/2005 12:00:00 AM
Hello, In a search form, i want to permit few characters (see below) and some signs as - _ / , . So thios my RegularExpression and it works. ValidationExpression="[a-zA-Z 0-9-_/,.]{4,20}" But i'd would like to permit the sign ? in my string, but only one or two occurence., like t...more >>

register dll problem
Posted by Bishoy George at 9/13/2005 12:00:00 AM
each time I try to register a .dll file I receive the following error message: "C:\..........\file.dll was loaded, but the DllRegisterServer entry point was not found. The file can not be registered." And the dll file doesn't appear at object browser. How to solve this problem? ...more >>


DevelopmentNow Blog