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 > february 2008 > threads for thursday february 14

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

document.object not working
Posted by tshad at 2/14/2008 11:59:45 PM
I have some code from before that worked with: document. PictureDisplay.src="c:\\uploads\\" + opener.document.getElementById('CompanyPicture').innerHTML; Now it doesn't. If I take the "document" off, it works fine: PictureDisplay.src="c:\\uploads\\" + opener.document.getElemen...more >>


Problems with gifs
Posted by tshad at 2/14/2008 11:56:24 PM
I have some code where I am trying display either jpgs or gifs. They are going an image tag: <img src="" id="PictureDisplay" alt="" /> This displayed fine under VS 2003 but when I moved this over to VS 2005, it doesn't seem to handle gif, but jpgs work fine. If I have the img tag se...more >>

Is there any way to append some items to List box, without retrieving all items through AJAX?
Posted by Anjan Bhowmik at 2/14/2008 11:28:07 PM
Suppose i have a multi-select list box which loads data from a table in a SQL Server 2005 Database. This list box loads all rows from the table, which has around 2000 rows. So when databinding all 2000 rows will be fetched from database and bound to the List box. Which is fairly a time cons...more >>

How to prevent storing duplicate values
Posted by dotpro2008 at 2/14/2008 4:17:01 PM
In ASP.NET 2.0 project, I have added a dataset and have setup the datatable and configured the datatableadapter (using the wizards). In my code I can use the mytableadapter.insert method to insert a new record in the table. How do I check if the key column value being inserted this time ...more >>

currency format
Posted by Mike at 2/14/2008 3:01:30 PM
I have to format a number in currency format but I don't want the decimals. I want it to look like $4545 and not $4545.60 I have this for my format: dr["GrossExpense"] = Convert.ToInt32(GrossAmount).ToString("c"); but its displaying as $4545.60. How can I get it to show without th...more >>

problem iterating through textboxes
Posted by Elmo Watson at 2/14/2008 1:28:56 PM
I have 10 sections on my page - - in each section I have 2 textboxes, named similarly (txtIn/txtOut), but adding the number to the id - - so it's like txtIn1, txtOut1, txtIn2, etc I'm trying to iterate through them and check to see if each has text in them: Dim iCheck as Integer Dim sNum...more >>

using WebResource.axd to reference .js files
Posted by George Ter-Saakov at 2/14/2008 1:25:08 PM
I always been using .js files directly thus allowing myself to control caching of them... If I add .js files to assembly then reference is looking like this /DragDropTest/WebResource.axd?d=Zi4hg60qpn9AQZGLKlz2Eg2&amp;t=633331472507562215 It's more convenient to have related .js file as a re...more >>

Validation Controls
Posted by dotpro2008 at 2/14/2008 1:24:01 PM
I have creates a webform with multiple textboxes and associted them with some validation controls (like requiredfieldvalidator). There is command button also. There is some code written in the click event of the the button. I want that when someclicks that button then the code should only e...more >>



VS 2003 timed out
Posted by GaryDean at 2/14/2008 1:23:39 PM
I have inherited a 1.1 asp.net project, a rather large one, that gets a timeout message when I try to load it in Visual Studio 2003 on my XP Pro dev box. In the beginning it just got it sometimes then, later, all the time. I rebuilt the project and that fixed it - for a couple days. Now it t...more >>

create new email message from asp 2.0
Posted by Keith G Hicks at 2/14/2008 1:11:18 PM
I'm converting an MS Access app to ASP 2.0. One of the features we have in the Access app is the ability to send PDF versions of reports in an email from the current user. I'm using Ghostscript and some related code to create a new email message on the client machine and attach a PDF version o...more >>

VS2008 Design view doesn't like LoginView!!!
Posted by dan@logicsoft.biz at 2/14/2008 12:50:47 PM
It appears that if you have a ContentPlaceHolder within a LoginView control on a masterpage that you will not be able to use the design feature in VS2008. To reproduce the problem simply place a LoginView control on a master page and place the ContentPlaceHolder within the LoggedInTemplate. ...more >>

Seperate Databases and Business Logic.. SQL vs. .NET code?? Design Ideas/Differences
Posted by wildman@noclient.net at 2/14/2008 12:07:32 PM
RE: Seperate Databases and Business Logic.. SQL vs. .NET code?? Design Ideas/Differences Afternoon. Say a particular shop has a few critical SQL Databases that are not server linked. These DBs while MS SQL based, currently have no connection (SSIS nor Replication). A new project calls fo...more >>

SqlDataSource.Selecting before Page_Load on postback?
Posted by David W at 2/14/2008 12:04:11 PM
I have a pretty simple page with a GridView, a DropDownList as a filter to the GridView, and a filter Button. Both gridview and dropdownlist are bound to SqlDataSources. I am setting another parameter in the Selecting event of the datasource, but the strange thing is the order of the events ...more >>

MultiView and changing views.
Posted by Joe at 2/14/2008 11:27:12 AM
This is another one of those things which I think isn't going to work the way I want... I have a MultiView on a page with 5 views. The use each view as a page. At the bottom of each page there is a Next button. When the user clicks the Next button it just changes the view. This all works fi...more >>

Sharing same cookie between server and client
Posted by arijitdas@gmail.com at 2/14/2008 10:28:26 AM
Hi, We have an ASP.NET 2.0 web application where we want to share few user specific data between server and client side code using cookie. We are seeing a very strange behavior that it does not work consistently. Sometimes we are getting the latest value set from server in client script, some...more >>

XML data in aspx
Posted by Looch at 2/14/2008 9:08:36 AM
Hi All, Is there a VS2005 control that can use an XML file as its source and show the resulting XML file contents? Similar to opening the XML file in a new browser window, but the file data is actually shown within the control that is on an aspx page. Thanks for any suggestions....more >>

Findcontrol on Gridview Boundfield?? Type Label?
Posted by wildman@noclient.net at 2/14/2008 8:59:59 AM
re: Findcontrol on Gridview Boundfield?? Type Label? In the row command event I've been able to pull the value of a cell as follows when the cell was produced from from an itemtemplate as follows: Dim xxx As String = CType(row.FindControl("pointDate"), Label).Text However, the above giv...more >>

Master page question
Posted by Paul at 2/14/2008 8:16:11 AM
Hi I am setting up a web application and am trying to use a master page (vs2005). Just a few questions, is there anyway to resize the ContentPlaceholder as I want to place a menu on the left side of the master page but the ContentPlaceholder extends all the way accross the page. Also depen...more >>

Creating Ajax Web Application in VS 2005
Posted by Wannabe at 2/14/2008 8:09:00 AM
I am using Visual Studio SP1 and just created an Ajax web application. I went to the default.aspx page and changed it to design view and the scriptmanager control says: scriptmanager1:Failed to create designer 'System.Windows.Forms.Design.ComponentDocumentDesigner, System.Design, Version...more >>

loading xmldocument with httpwebrequest object?
Posted by deepak at 2/14/2008 7:02:00 AM
Hi ALL, Is it possible to load a xmldocument(say xmldoc) with a httpwebrequest object? Thanks, Deepak...more >>

converting HTTPWebResponse object to HTTPResponse object
Posted by deepak at 2/14/2008 6:04:02 AM
Hi All, I have a httpwebresponse object(given below) Dim req As WebRequest Dim rsp As WebResponse <....logic to read the http web request object.....> rsp = req.GetResponse() i want to convert in(or read in into) into exsiting httprequest object (say named as 'Response') How t...more >>

Configure SqlDataSource problem
Posted by Lars at 2/14/2008 4:02:21 AM
Hi I have another problem as well. For some reason the Configuration of the SQLSataSource doesn't allow me to select the commands Insert, Update and Delete. They are grayed. HOwever I seam to be able to make INsert by adding SQL commands (with parametrized values). It's when I try to make a...more >>

SQL INsertion problem
Posted by Lars at 2/14/2008 3:32:15 AM
Hi I have the following problem. I want to add the following text in a FormView for adding links easaly to the database I have on my homepage. But I get an error about possible string insertion. When enter the string from the ID every thing goes fine. If I view the field in a DataLost it o...more >>

Unable to cast object of type...
Posted by Roshawn at 2/14/2008 2:06:30 AM
Hello, I'm having a strange problem as of late. I can't seem to retrieve an object from the cache. Here a sample of the code I'm using: 'global variable Dim fItems as Item() 'Item is a custom class Protected Sub Page_Load If Not Cache("FormItems") Is Nothing Then fIte...more >>

Characters non English
Posted by Alhambra Eidos Kiquenet at 2/14/2008 1:17:01 AM
Hi I have two updatepanels on an asp.net page and when there is a postback from one updatepanel it changes the non english characters in the other and displays some crap instead. Characters non english like áÁñÑnº1ªäÄà display like áÁñÑnº1ªäÄà ÃÂ...more >>

dynamic HotSpot
Posted by yo at 2/14/2008 1:04:04 AM
I need to display some geographic related database records on an image map object. So far all the examples I found show hard coded hotspot coordinates. I would like to get some sameple code behind in C# to show me how to do this. Another problem in hand is when the image map is resized, how t...more >>


DevelopmentNow Blog