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 > july 2003 > threads for thursday july 17

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

data binding problem
Posted by Lloyd Dupont at 7/17/2003 11:56:05 PM
I have developped a custom user control (code at the end of the mail) which is an <input> tag with a customized source and onclick method. This custom control is in a repeater (in a template column of a datagrid, in fact), when the user clicked it and the web form is updated its Filename propert...more >>


autopostback - javascript intercept and cancel
Posted by Susan van Houen at 7/17/2003 9:17:59 PM
Hi All, How do I intercept an autopostback on the client side and prevent it from executing the submit? In classic ASP I used to intercept the on_submit and just return false; but it doesn't seem to work anymore. Any ideas? Sincerely, S ...more >>

How to have toolbox icon appear for custom control?
Posted by Showjumper at 7/17/2003 8:39:29 PM
I want my custom control to have its own toolbox icon. I create the bmp file and it has the same name as the control class. I then set it to embedded resource but it still doesnt appear in the toolbox. What could i be doing wrong? ...more >>

javascript on click
Posted by memememe at 7/17/2003 7:16:37 PM
So I know this is not the right newsgroup but im kinda lazy to add another newsgroup to my outlook. Is there a way for meto know where on the page someone clicked using javascript? and by where I dont mean XY, I mean they clicked on the ltter "Z" which is on element blah blah blah, so if they th...more >>

Best place to hold dataset between postbacks?
Posted by Gandalf at 7/17/2003 7:12:38 PM
I have a page with a datagrid that is bound initially to a dataset. As the user changes items on the grid, I want to cache the changes until a final submit. Ideally I wish to update the dataset on each postback and at the end, submit the changes to the database. But where should I store the data...more >>

dateTime = Null problem
Posted by Jake at 7/17/2003 7:12:32 PM
Hi All, I have an object that ahs a property of time dateTime, this property is set to the contents of a DateTime field in the database(SQL Server). The problem I am haveing is that if the dataabase field is Null and the object property is set to the contense of that field. And I then...more >>

UpdateCommand with Datalist
Posted by Mark at 7/17/2003 5:31:39 PM
Hi, I have a datalist that I use to display and edit records to a user. Datalist shown below; visual basic code:----------------------------------------------------------------------- ------- <asp:datalist id="dgContributors" runat="server" DataKeyField="PersonID"> <ItemTemplate> <%#...more >>

ASP.NET is "butchering" my code
Posted by Chris Mahoney at 7/17/2003 5:17:04 PM
Hi I have two machines, one running Win 2000 and VS.NET 2002, and one running Mac OS 10.2. I can develop web apps on my Windows machine, and look at them in IE, and they look fine. But if I try to view my pages in Safari (Apple's web browser) on my Mac, there are various formatting problems...more >>



The right way to Encode html output
Posted by ViperDK at 7/17/2003 4:40:35 PM
What is the best way for that? I store all Data in the original form in the Database. To prevent output fields (especially the fields everyone can use) to do bad things like killing the page-design or even worse attacking my site with javascript directives i use stuff like (WebControls.Label)Ou...more >>

Problems with Enterprise Localization Framework and .NET FW 1.1
Posted by murphy NO[at]SPAM murphysw.com at 7/17/2003 3:43:23 PM
We had downloaded the Enterprise Localization Framework a few months ago for evaluation and were using it under .NET Framework 1.0. We've just now upgraded to .NET Framework 1.1 and have started having problems. When attempting to generate resource dlls with LocalizationManagement.exe, I ge...more >>

Page_IsValid issue
Posted by PCH at 7/17/2003 3:06:02 PM
Testing on localhost.. i can get the jscript value from the page validation without any problems. a simple alert(Page_IsValid); is all it takes to get true or false. when i put my project on another dev machine (same new version of .Net) it cant get the value.. it just does the "javascript i...more >>

how to downloas xml file
Posted by Emmanuel Kahn at 7/17/2003 2:57:57 PM
Hi Sreejumon and thanks I would like to download xml and the user must select the path of the downloaded file the user will select where the file will be saved !!! two problems: 1)I know that I can create a XML file on my server using writexml method of the dataset. To download the file...more >>

Codebehind problem
Posted by Francisco Carvalho at 7/17/2003 2:47:00 PM
I have created a user control that gets loaded by a page. The user control has a codebehind, but when I change the code on the codebehind, it never runs. If on the other hand a run the same code on the .ascx file it runs with no problems. The directive(see below) was added automatically by ...more >>

Using string format
Posted by William F. Robertson, Jr. at 7/17/2003 2:42:43 PM
I have a question about the string formatting function. I have a field in a database that is coming back as a 6 digit date: 061503 I would like to format this out to 06/15/03 to be displayed on a page. What StringFormat parameter do I apply to the Column to get this desired result? Or ...more >>

Session_Start in Global.asax
Posted by DesignerX at 7/17/2003 2:28:04 PM
Is the Session_Start() sub executed on every request or just when a new users session is started? Thx for the help, stan ...more >>

Default button inside a custom control
Posted by klj_mcsd NO[at]SPAM hotmail.com at 7/17/2003 2:20:54 PM
I have seen examples on how to set the default button on a ASPX page with asp server controls Sub Page_Load() Page.RegisterHiddenField("__EVENTTARGET", "btnSearch") End Sub But that does not work if your default button is inside a custom control on a ASP.NET page. If someone think is d...more >>

without postback?
Posted by Salim Afþar at 7/17/2003 12:34:17 PM
Hi, I've got a textbox and a label.When the user enter a character to the textbox I'll display the number of character in the textbox in the label. How can I do that without any postback? Thanks in advance. Salim ...more >>

Javascript and server calls
Posted by Ric Pullen at 7/17/2003 12:02:40 PM
Is it possible to have a button run client side script and then depending if its valid allow the postback to continue otherwise it prompts the user. I know this sounds like a validation issue but its not possible to do it with the validation components. I use infragistics webgrid and i want...more >>

soundex function
Posted by arthur benedetti white at 7/17/2003 11:58:58 AM
has anybody already developed a server side soundex function?...more >>

Problem with Autopostback
Posted by Jesse at 7/17/2003 11:33:43 AM
I have a relatively long page with a number of webcontrols with "autopostback" set to true. The contents/items/datasources of the subsequent webcontrols are dynamically populated depending on the selection of previous webcontrols' selected item. My question is : everytime the user selects an o...more >>

Regular Expression Woes
Posted by Stephajn Craig at 7/17/2003 11:20:17 AM
I'm working for the first time with Regular Expressions. I'm trying to return a match only when the word I'm looking for is on its own without any characters before or after it except for punctuation marks. So here is the pattern I've built so far. [\s*.*.\w*](England)[\s*.\w*] This seem...more >>

Response.Write and Response.Redirect
Posted by Matthew Wieder at 7/17/2003 11:13:41 AM
On my Page_Load event, i need to do some validation and then either let them proceed, or display a error message and boot them back to the previous page. Here is the code: Response.Write("<script>alert('Error Message here');</script>"); Response.Redirect("Configuration.aspx"); Problem ...more >>

Subclassing UserControl makes the Visual Studio designer does not work
Posted by S Guiboud at 7/17/2003 10:58:29 AM
I want to subclass the System.Web.UI.UserControl to make a common control for my site. Then, when I create a new UserControl from the Visual Studio I changed the base class System.Web.UI.UserControl to my UserControl class (a.k.a MyUserControl). MyUserControl is only a .cs file with a class...more >>

Replace characters in a Field when bindig data
Posted by Satish Appasani at 7/17/2003 10:48:49 AM
I have a drop down field on a form. When binding data to the DataValueField property of the drop down, I need to replace "&" with "%". In code behind I tried DataValueField='<%# DataBinder.Eval(Container.DataItem, "CATEGORY_VALUE") %>' I get the following error: Compiler Error Message:...more >>

debbuging Problem
Posted by Linda at 7/17/2003 10:29:17 AM
I'm getting the following error when trying to debug a asp.net program. I have domain user rights and belong to the local "Debugger Users" and "VS Developers" groups. I do NOT have administrator privileges on this machine. It will work if I do have administrator rights, But this is something we...more >>

Save Dialog
Posted by JP at 7/17/2003 10:20:36 AM
I would like to be able to select a location (folder & file name) to save data when I click a button on a web form. Obviously I can't use a "Save Dialog" control on a Web Form. How do I do this? Thanks! JP...more >>

Infragistic webgrid Column collection
Posted by miqbal at 7/17/2003 10:06:50 AM
How can I loop through the columns collection in client side javascript? Or how can I get a column by the key, not just by the index in the collection? in Infragistics webgrid Thanks ...more >>

DataList.DataKeys problem
Posted by Marina at 7/17/2003 9:51:38 AM
Hi, There is a component that is binding the results of a search to a DataList. By clicking on an image in the datalist, the user can download that particular item. We are using the DataKeys property to retrieve the ID (as stored in the database), to then locate the item, and do some other st...more >>

HttpModule
Posted by PJ at 7/17/2003 9:49:39 AM
Is it possible to capture a request as it hits the server and before the post data has been completely sent to the web server? Thanks~ ...more >>

Can I open a new window with a new SessionID?
Posted by Robb Smith at 7/17/2003 9:49:22 AM
I need the ability to open a new browser window from both IE 5.0+ & Netscape 6.0+ and also creates a new Session. IE does this each time iexplore.exe is run, but not from a JavaScript window.open. Netscape doesn't appear to work when running the EXE multiple times. I can get this to work with ...more >>

Can't step into webservice from webform when in separate solutions
Posted by Vikram Sinha at 7/17/2003 9:09:27 AM
Hi, I am unable to step into a method call on a webservice(WS) from a webform(WF) when WS and WF are located in separate VS.NET solutions. When I try to step in, step over occurs. BTW, I am able to do this if both the client and the service projects are in the same solution. Any clues...more >>

Pipeline
Posted by ghanta at 7/17/2003 8:49:05 AM
Hi, Can any one explain me in detail all the steps involved once the request reaches the worker process from the IIS....more >>

DataGrid Field Formatting Question
Posted by Duppypog at 7/17/2003 8:48:14 AM
I want the contents of a textbox to be ALL CAPS when added to the database. How do I do that? And on the flip side - if I have existing data, what's the data formatting expression for ALL CAPS in the Datagrid Property Builder? Thanks much!! Lynnette ...more >>

object reference not set to an instance of an object
Posted by tim.cavins NO[at]SPAM sitel.com at 7/17/2003 8:46:05 AM
My code is posted below. I am getting the error shown in the subject on the last line that does the Replace method. I've verified that the hidden field exists on the form itself. I am not sure why this is happening. Any help would be appreciated. -Tim string strCreateView; protected H...more >>

session state
Posted by chris w. at 7/17/2003 8:37:54 AM
The situation: We have a table that contains usercontrols. In the usercontrols, there is input that we want to keep throughout the session. But are finding it difficult to get the variable values from other usercontrols. What does .NET suggest we do now that we are discouraged from u...more >>

Too many assemblies asp.net
Posted by lance NO[at]SPAM parsecorp.com at 7/17/2003 8:33:54 AM
I have been developing several web applications in VB.NET. I have started to notice that when I run one of the applications, all the assemblies for that application get loaded PLUS all the assemblies for the other applications. I do not like this behavior and want only the required assemblies to...more >>

Modifying output in Repeater
Posted by AspDotNetDeveloper at 7/17/2003 8:15:32 AM
I am having trouble figuring out how to modify the databound field data that is bound to a Repeater control, before it is output to the browser. I'm trying to add a hyperlink, with some querystring parameters, and one of the parameters would be the record number of the row that is being processed...more >>

How can I time out the page.
Posted by Mike John at 7/17/2003 7:06:48 AM
How can I time out the page ,if the pc was idl for 5 minutes. Also, how can i make use of the session so the files are only open from the login form.so if the second page was opend from the first page, this second page can not be open from another browser window. sincerely yours ...more >>

why window.open script not firing? just postback...continuation of previous post
Posted by KathyBurke40 NO[at]SPAM attbi.com at 7/17/2003 7:01:33 AM
Hi, In the pageload of my aspx file I have the following (in both not in postback and is postback)... btnList.Attributes.Add("onclick", "window.open('Scanned.aspx', 'Serial Numbers', 'width=200, height=300');") When sent to the browser (ie 6) it appears as: <input type="submit" name="b...more >>

Web.Config ? for the experts!
Posted by Deasun at 7/17/2003 6:16:52 AM
Good morning, We have connection strings in our apps web.config file in the apps folder. We would like to make one config file where all our apps can get the info from. ?'s; 1] Do we have to use the machine.config for this ? 2] Could we create a web.config file and have our all projects ...more >>

ASP.NET application wrong culture picked up
Posted by questaly NO[at]SPAM mailandnews.com at 7/17/2003 6:10:35 AM
Hi, I have an asp.net application that is using the wrong culture. I cant figure out where does it get its setting from. My web application runs as a specific user since so that I can give it some more rights. I can login to the web server using this user identity. Now I go to the regiona...more >>

Is this a stupid question?
Posted by Steve at 7/17/2003 5:56:54 AM
I'm looking for the command to direct a user to a new URL. For example, in ASP, when you created a dropdown box, the item selected could open a file - using the form action="MyFile.asp" How do you do a similar thing in ASP.NET?? ...more >>

Verifying a URL
Posted by julian at 7/17/2003 5:45:00 AM
Hi, I have situation where I want to use a stylesheet stored in one of two possible urls. Basically I need to say if the first url doesn't exist, use the second url. I can do this by creating a WebRequest and intercepting the exception raised by the GetResponse if the first url doesn...more >>

Popup Window
Posted by Rob at 7/17/2003 5:39:12 AM
Hi all, is there a way to show a popup window with additional information without calling the page from the server again? Cheers Rob...more >>

AutoPostBack question.
Posted by Domien Holthof at 7/17/2003 5:15:59 AM
Hi, I'm having a straight HTML <input type="text" onkeypress="CheckKey();"> within a <form runat="server">. When I press ENTER when in the textbox, the client-side CheckKey() function is executed but still the form or page seems to do an AutoPostBack to the server. Any ideas on how to ...more >>

Dynamic HttpTableRow not rendering cell content...
Posted by intrepid_dw NO[at]SPAM hotmail.com at 7/17/2003 4:56:16 AM
All: I have a control that renders a table. As the table is rendered, each row in the table is constructed by creating a run-time (dynamic) object that is derived from an HtmlTableRow. The row has three HtmlTableCell objects, and each cell contains a single control added to the HtmlTableCell'...more >>

Power Consumption
Posted by Jenny at 7/17/2003 4:02:53 AM
Hi all, does anyone know a got information source for indentifying the resource consumption of aspx pages? Thanks Jenny...more >>

Crystal reports not running on system with .net framework
Posted by SivaKumar at 7/17/2003 3:57:36 AM
Hi All, I have developed a web application using ASP.NET which contains crystal reports. The reports are running fine on my development machine.When i deployed my application on the production server at the client place, the server does not have visual studio.Net installed. But .Net ...more >>

(Important)QueryInterface for interface Interop.SQLXMLBULKLOADLib.ISQLXMLBulkLoad failed
Posted by Von Shean at 7/17/2003 3:39:00 AM
I am trying to user Bulk loader component in asp.net. The code runs perfectly fine in a test harness but gives the following error when used in a strong named dll called from asp.net using c#. The error is QueryInterface for interface Interop.SQLXMLBULKLOADLib.ISQLXMLBulkLoad failed If anyon...more >>

return binary content from within ASPX page
Posted by michal januszczyk at 7/17/2003 2:04:41 AM
my aspx page gets binary data with ms-word file. (just byte[] array). I want this data to send back to the browser, but when i try to do this with the following method: byte[] binaryData =.... Response.BinaryWrite(binaryData); the binary data is appended with some html header . Obviousl...more >>


DevelopmentNow Blog