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 > june 2005 > threads for wednesday june 8

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

expressiong absolute paths in aspx
Posted by David Cho at 6/8/2005 11:49:07 PM
This is a simple issue I am trying to figure out. How would I express absolute paths to various aspx files in the aspx page. I am not intereted in relative paths. For example, I want to encapsulate a HyperLink control in a user control. Of course this user control can go anywhere vin var...more >>


Cookies ... monster. Please help
Posted by Calvin KD at 6/8/2005 11:36:01 PM
Hi everyone, Can someone tell me what's wrong with the way that i read a cookie as below: private void Page_Load(object sender, System.EventArgs e) { Response.Cookies.Clear(); HttpCookie cookie = GetSessionCookie("MyCookie", "duh"); } private HttpCookie GetSessionCookie(string coo...more >>

Format text from db into HTML text
Posted by Rigga at 6/8/2005 10:20:01 PM
Hi all, Firstly, sorry for the simple question, as i'm sure i'm missing something obvious. I have a text field (varchar) I am reading from an SQL db, into a string variable, in .NET I am then assigning this string variable to an HTML control, either Label or Textbox, depending on the ...more >>

Can't create projects / open projects
Posted by jaredea at 6/8/2005 9:29:46 PM
I have the following setup: SBS 2003 Server Windows 2003 Enterprise Server (setup as an Application Server) Windows XP Pro Desktop Both the Application server and desktop have Visual Studio 2003 on them as well as the .NET Framework 1.1 I started to use .NET on the desktop to test things...more >>

Dynamic reports
Posted by Diego F. at 6/8/2005 7:36:19 PM
Is it possible to generate dynamic reports with Crystal? I'm having problems printing a datagrid because the last line of each page gets cut, so I was thinking of using Crystal. I want to simply pass the datasource of the datagrid and then get the report. Is that possible? -- Regards, D...more >>

Web Service (Dynamic URL)
Posted by Maziar Aflatoun at 6/8/2005 6:43:07 PM
Hi, Is there a way to connect to a Web Service dynamically at runtime (Web Reference URL)? I have always used Visual Studio to create a Web Reference and then used it in my code. However, that always requires the URL to the Web Service to be the same on the staging site and the production ...more >>

DropDownList in a Datagrid
Posted by Andy Sutorius via DotNetMonster.com at 6/8/2005 6:31:13 PM
Hi, When I place a dropdownlist into a datagrid I receive the page error "Object reference not set to an instance of an object." When I move the dropdownlist out of the datagrid the page and dropdown populate perfectly Any ideas why? Thanks, Andy -- Message posted via DotNetMonste...more >>

ASP to ASP.NET
Posted by sck10 at 6/8/2005 6:12:20 PM
Hello, I inherited the following piece of code. Dim LDAP_CONN, LDAP_COM, RS, sql, strPrint, strFields Set LDAP_CONN = CreateObject("ADODB.Connection") LDAP_CONN.Provider = "ADsDSOObject" LDAP_CONN.Open Set LDAP_COM = CreateObject("ADODB.Command") Set LDAP_COM.ActiveConnection = LDAP...more >>



Web standards?
Posted by Amil at 6/8/2005 6:01:03 PM
Interesting that a "find" on this newgroup doesn't result in any discussion of standards? Anyway, I was wondering if anyone had a good link or guide on developing with ASP.NET and recommended practices to adhere to standards? For example, I know Visual Studio uses inline styles in many places...more >>

Dropdownlist display not displaying current
Posted by tshad at 6/8/2005 5:39:17 PM
I have a dropdown list set up to show 4 items on screen. If you select an item below that 4, it will not display on the screen (but it is selected). When you postback the list shows the first four and you have to scrolldown to see the one you chose. Is there a way to have the dropdownlist...more >>

Keeping position in page.
Posted by Terry Olsen at 6/8/2005 5:31:46 PM
I have a pretty big datagrid with an edit column. I scroll down to a row to click the edit button, the page refreshes, and I'm back at the top and have to scroll down to get to my edit row again. Is there a way to fix this so that after the refresh, i'm still looking at my edit row? ...more >>

Problem using AddHandler for dynamically created WebControls
Posted by Nathan Sokalski at 6/8/2005 5:12:04 PM
I am using the AddHandler statement to add a CheckedChanged event handler to a series of RadioButtons that I create in a loop. However, the handler is not being called for a reason I cannot determine. What is the problem? Here is my code: Private Sub Page_Load(ByVal sender As System...more >>

Money format
Posted by tshad at 6/8/2005 4:54:32 PM
I can't seem to get the money format (String.Format("{0:c}") to work for data coming from my database. If I do WagesMin.Text = String.Format("{0:c}",10000)) This will put "$10,000.00" into WagesMin.Text. But if I do this where WagesMin = 1,000.00 WagesMin.Text = String.F...more >>

Prevent uploaded documents folder from search engine or unauthenticated access:
Posted by bradley at 6/8/2005 3:53:56 PM
I have an \upload folder beneath the web root where I have MS Word and other documents that I would prefer not be available to the public. How can I configure web.config to prevent these files from turning up in a search engine list and prevent an unauthenticated user from typing in the url. This...more >>

Browse for a filename?
Posted by UJ at 6/8/2005 3:11:45 PM
How can I add a browse button to my asp.net page? What I need is a button they can press that will then let them select the file to upload to the server. And if anybody has any good code on how to upload a file to the server I'd appreciate that also. TIA - Jeffrey. ...more >>

popup in asp.net using javascript
Posted by csgraham74 at 6/8/2005 2:25:58 PM
Hopefully someone can help me with this i dont seem to be able to find a javascript - asp.net group. im trying to creat a modal dialog box in asp.net using the following Dim str_JavaPopup As String = "<script language" & "='javascript'>window.showModalDialog('frm_MoreInfo.aspx?ProductImage="...more >>

Disabled copy paste in TExtBox
Posted by Andrés Ortíz at 6/8/2005 2:21:04 PM
Hi I need that my TextBox don't work for copy-paste (Ctrl+C) and other forms that we used for copy text. Thanks...more >>

How to work with graphics in ASP.NET?
Posted by MilanB at 6/8/2005 2:18:05 PM
Hello I want to make some browser application, where user can draw lines, circles and others shapes. (Like small corel draw). How to do this in asp.net? Should I use javascript or which is the best way to do this, but without using ActiveX or Windows Controls? Thanks...more >>

ADODB problems with multiple applications on the same web server
Posted by Steve Mauldin at 6/8/2005 1:27:49 PM
I have Two ASP.Net applications running on a windows 2000 Server box. One is www.abc.com and one is www.dfg.com . They have the same code in them to connect to the same SQL Server 2000 database using ADODB. I restart IIS on the server and Browse to the first application and it connects to the ...more >>

Experts Can you help me solve this dynamic textbox validation prob
Posted by Kum at 6/8/2005 12:34:03 PM
Hi, I need help in asp.net dynamic textbox controls validation. I am creating textbox controls dynamically on a asp.net webpage. Now after creating the textboxes on the page I want to validate these text boxes when the user submits or posts back to the server. My intention was to create a t...more >>

setting IIS authentication methods in web.config
Posted by jeremy.stitt NO[at]SPAM gmail.com at 6/8/2005 12:05:34 PM
Does anyone know if it is possible to set IIS authentication methods (e.g. anonymous access, basic authentication, IWA, etc) in the web.config file? For example, I want to remove Anonymous Access for an entire directory in my ASP .NET project and only use Integrated Windows Authentication. ...more >>

Master Page Control in DataSource Select Parameter, 2.0
Posted by David at 6/8/2005 11:34:06 AM
In ASP.NET 2.0, is it possible to use a control that's on a Master Page as a select parameter in a content page's datasource control? On the content page in the VWD Configure Data Source wizard (which I love!), I was disappointed when adding a WHERE clause that the Control ID list in the wizar...more >>

c# & character problem
Posted by snthampi NO[at]SPAM gmail.com at 6/8/2005 11:29:59 AM
I have a C# asp.net project in which I create meta keywords dynamically. I have a problem with "&" character. When the page is rendered, the "&" character is converted into "&amp;". Is there any way to stop this? Any help with this issue will be highly appreciated. Thanks in advance, Na...more >>

Disable all autogenerated Javascript
Posted by lbolognini NO[at]SPAM gmail.com at 6/8/2005 10:50:37 AM
Hi all, I'd like everything to be done server-side and don't like to see any Javascript on my page source. Would it be possible also to prevent the validator controls render a blank space &nbsp; when no error message is displayed? I'm using WebControls, should I just switch to HTMLControls ...more >>

IsPostBack and Session Timeout
Posted by Sean Bytnar at 6/8/2005 10:24:22 AM
Hello all, I have a problem that I hope someone can help me with. Any webform in my app reports IsPostBack = false if the Session times out. Because of this my users lose any data they have entered in the form. Is there a way to maintain the form values if the Session times out? Thank...more >>

ShowModalDialog
Posted by MW de Jager at 6/8/2005 10:09:36 AM
I want to call ShowModalDialog(...) from my C# code in the code behind page of my aspx page. I do not want to link this to a button, since I want to first do some checking myself before I call the showModalDialog. I also want to receive a result back from the ShowModalDialog when it is close...more >>

CreateFile - Read/Write client's Stroage
Posted by Sean Liong via .NET 247 at 6/8/2005 10:04:32 AM
Hi, Is there any possibilities Read/Write a the storage file from a client system from a ASP.net web application? I think using the activeX component able to achieve this but is there any other ways? -------------------------------- From: Sean Liong ----------------------- Posted by a us...more >>

How to solve this? Thank You.
Posted by Shapper at 6/8/2005 9:57:43 AM
Hello, I got a control which display some data from RSS feed in my page. In my aspx.vb I need to change some Labels and Images properties, used by the control, when the culture is changed. For that I created a function named Build_RSS() Private Sub Build_RSS(Dim Culture As String) ...more >>

Passing back and forth parameters to modal browser windows
Posted by Carlos Alejandro Pérez at 6/8/2005 9:57:16 AM
hi I need to perform this sequence: - a webform A calls another webform B. Webform B should be a modal one - when data is entered in webform B, the user chooses close window - the data must be captured and processed by webform A, if possible, *without* clicking on a button to force this. I k...more >>

Proj too big? Help!
Posted by Tina at 6/8/2005 9:45:05 AM
I have an asp project that has 144 aspx/ascx pages, most with large code-behind files. Recently my dev box has been straining and taking long times to reneder the pages in the dev environment. After addding another Crystal report, vs.net will no longer build the project - it just goes away...more >>

Stream Image
Posted by Jon at 6/8/2005 9:26:10 AM
Hello all, I have an image which is being returned to me as a MemorySteam. I want to dislpay this out onto the browser. Is the below all I should need to do? ThumbnailData.WriteTo(Response.OutputStream); Just that there are no images appearing. Thanks, Jon...more >>

RSS Feeds On My Website
Posted by Brian at 6/8/2005 8:44:04 AM
Hello! I want to add RSS headlines on my web site. I have an ASP.NET host. Can anyone direct me to a FAQ or information on how to get started? Thanks, Brian ...more >>

Can't find a file to do a server.transfer but works on development
Posted by Net Developer at 6/8/2005 8:38:11 AM
I moved some stuff around on our web server and am suddenly getting the following error message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an applicat...more >>

ShowDialogModal postback on close (this is not related to multiple dialogs opening upon postback)
Posted by Jacky Chau at 6/8/2005 8:37:08 AM
I have a modal dialog opened using window.showModalDialog. When that modal dialog closes, it causes the parent form to postback. Is there any way to stop it from forcing the parent page to postback? There's no need for the parent page to postback when receiving data from the modal dialog. ...more >>

VB.Net 2.0 b2 + Web UserControl
Posted by Mythran at 6/8/2005 8:36:46 AM
I upgraded a VB.Net 1.1 project to 2.0b2 and now I can't seem to figure out how to fix my user controls. I have a user control named SecurityControl that contains a few static methods and properties (as well as instance methods and properties). Now that I've upgraded the project to 2.0b2, my...more >>

bitwise comparator
Posted by Random at 6/8/2005 8:28:36 AM
I need to apply a filterparameter to a result set in my GridView based on the selection in a DropDownList control. I want to use the integer SelectedValue property of the DropDownList to filter the grid based on a bitwise comparator. I could just do this in my query select statement, but I...more >>

Datagrid wire SelectedIndexChanged event from linkbutton
Posted by Alex at 6/8/2005 8:05:10 AM
I have a datagrid with some dynamically generated columns containing linkButtons. How can I wire these events to fire the datagrid_SelectedIndexChanged? When clicking a template column defined in the IDE it works fine, the event fires. However, anything that I add in code does not fire this e...more >>

printing to pre-printed page.
Posted by sameer at 6/8/2005 8:04:10 AM
Hi all, i have an ASP.Net page where the user will enters his information and when he hits on submit ,it prints on an pre-printed page ( like a bill of sale or any other application forms) Now my problem is this pre-printer page already has fieldnames name init , all it is expecting are the ...more >>

boundcolumn property for alignment inside datagrid cell
Posted by Chumley Walrus at 6/8/2005 7:54:31 AM
I am trying to have the contents inside a datagrid cell line up properly, either center, align right or align left. But using something like HorizontalAlign="right" is illegal syntax for boundcolumns. Is there something I can use to format alignment inside datagrid cells? thanx chumley ...more >>

Generate HTML form with XML
Posted by Shahid at 6/8/2005 7:43:23 AM
Hi, I have an xml document, example below. I would like to create an HTML form dynamically so all I would do is change the XML form in case a different version comes. I am relatively new to ASP.NET and any help would be greatly appreciated. Thanks, Shahid -----SAMPLE XML FILE...more >>

Best Place to Put Class Accessible to All "Folders"
Posted by Johnny Meredith at 6/8/2005 6:20:09 AM
Warning: Tenderfoot I'm playing around with ASP.Net 2.0 b2. The web app I've created has a default, login, recovery, etc. pages in the root and two folders accessible to authenticated users only. I have a simple class that needs to be accessible to the two subfolders mentioned above. I pla...more >>

Problem with Dataset value persistance across postbacks
Posted by Kiran at 6/8/2005 6:13:17 AM
Hi, This is something weird I noticed recently in ASP.Net. I have created typed dataset and I have filled the data. when a postback happens, the data of the dataset is lost. Is there a = workaround for this. I have a databound listbox. When a postback happens the values in the = listbo...more >>

Best way to do it
Posted by Kiran at 6/8/2005 6:02:24 AM
Hi Guys, I have three textboxes which I use for filling text, value and link. And = I have an Add button in the same form which will add these values to a = table in DB and I then bind a listbox to this table. so every time you add an entry, the items in listbox increases. when an item in...more >>

cfinclude functionality in ASP.NET
Posted by Peter at 6/8/2005 6:01:01 AM
Trying to achieve this functionality in ASP.NET. <cfif NOT session.loggedin> <cfinclude template="loginPage.cfm"> <cfelse> <cfif session.loginType EQ "Instructor"> ... show Instructor menu... <cfif form.menuItem EQ 1> <cfinclude t...more >>

COM object with CLSID
Posted by jose at 6/8/2005 5:41:06 AM
i have a web service, the code uses ShDocVw. In WinXP works perfect but in Win2k : COM object with CLSID {C08AFD90-F2A1-11D1-8455-00A0C91F3880} is either not valid or not registered. why??? any solution? tnk! ...more >>

Is Books 24x7 any good?
Posted by Tara at 6/8/2005 3:45:58 AM
I saw someone make reference to the online book access site. I actually have a job interview with the company and wanted to get some feedback from actual people who use it. I currently work for a traditional book publisher and find the 24x7 opportunity interesting in terms of moving in the rig...more >>

Alignment of a System.Web.UI.WebControls.Image object
Posted by Nathan Sokalski at 6/8/2005 2:51:25 AM
When using a System.Web.UI.WebControls.Image object, how do I control both vertical and horizontal alignment? Both directions are controlled using the ImageAlign property, which prevents setting both a vertical and horizontal direction. Why isn't there something like a VerticalAlign and Hori...more >>

DataBinder
Posted by Daniel Groh at 6/8/2005 1:24:16 AM
Hi, i have the following DataBinder <%# FormatURL(DataBinder.Eval(Container.DataItem,"cdBook")) %> But I'm getting this trouble:=20 Compiler Error Message: CS1502: The best overloaded method match for = 'AdminBooksOnline.ListBook.FormatURL(string)' has some invalid arguments Does some...more >>

Different settings in web.config, based on host
Posted by Daves at 6/8/2005 12:00:00 AM
since I have some settings different on my local host (where I develop) and my ISP's (where I upload my final developments) I need different settings in my web.config. For example the dbase connection strings are different and then I want to have debug=true locally but not on ISP host. How ...more >>

BACK button IE
Posted by Yogesh Kadalgikar at 6/8/2005 12:00:00 AM
I have implemented an Admin Application in ASP.NET.=20 There is a requirement for me not to browse back to a page with the back = button on internet explorer.=20 I want to flush the session variables so that if a uses clicks on back = button the page should re-direct to an user defined error p...more >>

Can someone explain this? I appreciate some help. Thank You.
Posted by Shapper at 6/8/2005 12:00:00 AM
Hello, I have a third party control in my page. I need to set the properties of Labels and Images in this control when: 1. User enters the Page. 2. A button is clicked which changes culture (Change Properties) Usually I would do it this way: Sub Page_Load(...) Set_Properties() ...more >>

Crystal Report export problem
Posted by Pinku at 6/8/2005 12:00:00 AM
Hello guy, I have a problem with Crystal Report. In my report I would use a box with rounded corner, so i put it into the designer and all works fine, but, when i try to export the report to PDF the box became a normal box without rounded corner, why this? is this a limitations? thank...more >>

Noob question about returning HTML
Posted by ToChina at 6/8/2005 12:00:00 AM
Hi, I have a simple web page which has a file upload section, where the user can select a file, hit the upload button, and then view details about the file, which appear underneath the upload section. The information about the file will be returned as XHTML, therefore I want a control on th...more >>

Copy project - strange behaviour
Posted by Mark Rae at 6/8/2005 12:00:00 AM
Hi, I'm currently experiencing intermittent errors when trying to copy an ASP.NET project (VS.NET2k3 + all latest SPs & patches) from my development workstation (WinXP Pro + all latest SPs & patches) to a test server (Win2k3S + all latest SPs & patches). An example of the error is: Un...more >>

Object reference not set to an instance of an object
Posted by Andy Sutorius via DotNetMonster.com at 6/8/2005 12:00:00 AM
Hi, I am pulling my hair out! I don't see why I am getting the error message. There is data in the data reader. Notice that I have actually performed a while/read on the data reader. Does anyone see why I am getting this error? Thanks, Andy private void BindTypeDropDown() { SqlConnec...more >>

RSS and ASP.NET. Need help. Thanks.
Posted by Shapper at 6/8/2005 12:00:00 AM
Hello, I want to load a RSS file and display the content on my web site. Probably the best way would be to bind the content of the RSS(XML) to a datagrid, right? Anyway, can someone help me out with this? Thanks, Miguel ...more >>

generic database class in vb.net
Posted by dave at 6/8/2005 12:00:00 AM
I'm classic ASP developer and trying to switch to .net ...I'm newbie to = ..net... In classic ASP for ADO connectivity i used to put below code in one = separate file and used to include that file whereever I need database = opreation... Dim objDatabase Set objDatabase =3D Nothing '-- Singl...more >>


DevelopmentNow Blog