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 > march 2006 > threads for monday march 27

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

Common problem...Connecto to Oracle database
Posted by Budd at 3/27/2006 11:20:09 PM
I don't know how to connect to oracle database by asp.net Anyone have any simple or step for me to connect?? i have no idea.... i have search from google and get the code But it seen i have miss some step .... My case is....school have provided the oracle for me to connect so i need to inst...more >>

BoundField and DataFormatString
Posted by yefei at 3/27/2006 11:16:57 PM
I want to display a BoundField "Price" in the format of currency in a GridView I set the DataFormatString="{0:C}" in my program However, it doesnot work. I try to add a '$'in from of the brace, it shouw things like "$2500.0000" my data in the database is of 'decimal' with length=9 even i do t...more >>

Using ItemCreated for a Repeater in VB?
Posted by jason.gladstone NO[at]SPAM gmail.com at 3/27/2006 11:06:09 PM
Hello - I am trying to create a repeater control that contains a dropdownlist. A friend of mine sent me a sample in C#. I am trying to duplicate the sample in VB. This is the C# code in the OnLoad event: //bind the items to the repeater this.repeater.DataSource = items; this.repeater.ItemC...more >>

Dump for mcad exams
Posted by muthu at 3/27/2006 9:58:52 PM
Hai Freinds, Can any one help me out to get the latest dump for the following exams. Exam 70-316*: Developing and Implementing Windows-based Applications with Microsoft Visual C# .NET and Microsoft Visual Studio .NET Exam 70-320*: Developing XML Web Services and Server Components...more >>

Setting focus to a text box on page load
Posted by William LaMartin at 3/27/2006 9:21:39 PM
All of a sudden code that had been working at my websites to set the focus to a particular text box on page load now produces an error. The code is: 'put the focus on the first text box Dim strScript As String strScript = "<script>" strScript = strScript & "docume...more >>

problem in rendering the calendar control
Posted by rushikesh.joshi NO[at]SPAM gmail.com at 3/27/2006 8:58:34 PM
Hi All, I want to create custom control by using Web.UI.WebControls.Calendar, in which I want to set few days with different color. I had created two property to set the color and storing in viewstate. I had created 4 methods to Add/Remove my special dates in viewstate. Up to here all seems...more >>

Problems with drag and drop ASP.NET 2.0 applications?
Posted by dejavue82 NO[at]SPAM yahoo.com at 3/27/2006 7:40:06 PM
Dear ASP.NET programmers, I have noticed many asp.net 2.0 programmers mention that web applications created with the use of Visual Studio wizards and by draging and droping fom the toolbox are unstable/unmaintainable (or not enterprise ready). I'm sure I understand this. Isn't the code created...more >>

multiple spaces in html string
Posted by Vikram at 3/27/2006 7:32:32 PM
I have a label control whose text is having multile spaces "Name :" but when this is rendered as html in an aspx page it only shows single space. How to render with multiple spaces. ...more >>



postback problem
Posted by Alexander Widera at 3/27/2006 7:31:45 PM
i have a problem with postback... i don't find an answer ... only the same problem without a solution.... (look here: http://groups.google.de/group/microsoft.public.dotnet.framework.aspnet.webcontrols/browse_thread/thread/c5848b6efd59113d/1994fd614331769a?lnk=st&q=%2Bpostback+%2Btwo&rnum=1&hl...more >>

SqlDbType sizes
Posted by Dabbler at 3/27/2006 6:48:01 PM
Is there a table of sizes to use for SqlDbTypes with SqlParameter constructor such as: SqlParameter("@VanId", SqlDbType.Int, 4")); Not sure which types require a size and which ones can be left blank. Thanks ...more >>

2.0 Themes = Big Fat Humongous Pages
Posted by clintonG at 3/27/2006 6:14:40 PM
Ever tried looking at the source? Holy Mackerel. Is there some strategy to use CSS with Themes that does not result in the framework generating inline styles for every HTML element of the page? I haven't used a StyleSheetTheme yet. What does it do "in this context?" <%= Clinton Gallagher ...more >>

How to enforce registration ?
Posted by Niclas at 3/27/2006 5:59:57 PM
Hi, I would like to provide a "trial version" download on my web page but enforce a registration process before the file can be retrieved. Is there a simple solution to overcome the possibility that the users who happens to know the path to where the file is stored simply bypasses the regis...more >>

Dropdown list in a datagrid
Posted by Waran at 3/27/2006 5:31:01 PM
I Want to add a dropdown box in a datagrid on Page_Load. This Datagrid shares two tables. One table contains Employee details, and the other having the list of projects the employee is working. Table 1 ------- Name DOB Address Emp1 01/01/1976 Address1 Emp2 01/01/1977 Address2 E...more >>

Simple task make difficult with a repeater
Posted by Eniac at 3/27/2006 4:21:24 PM
*argh* ... *pull hairs* I've recently started developing from ASP to ASP.NET The switch was fairly smooth since i had done some VB.net before ... then came...FORMS! :) I find it astounding at how difficult it has become to control a form, something that was so dead easy in ASP. Look, i...more >>

Is it recommended to use datasets in ASP.Net ?
Posted by Luqman at 3/27/2006 3:43:28 PM
Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ? Best Regards, Luqman ...more >>

.NET App to monitor Processes
Posted by Stephen at 3/27/2006 3:36:02 PM
Hi all, Is there a sample application or reference to monitor processes using .NET? Thanks, Stephen ...more >>

Transform Word XML to HTML
Posted by Ruben at 3/27/2006 2:55:07 PM
Hi, My users creates documents in MS Word 2003, thay save the docs as XML files, and I want to load this XML and transform it to HTML (I mean, I don't want Word to be opened in the browser, I want the document formatted be shown as HTML) Is there an XSLT to transform it?...more >>

aspnet_compiler - exclude files
Posted by CuriousGeorge at 3/27/2006 2:47:54 PM
I'm using aspnet_compiler to precompile my web app for deployment. Currently it copies all subfolders from the asp.net projects source folder to my destination folder. I have some files I do not want it to copy when deploying this app, is there any way to exclude them? I like to keep all f...more >>

manipulating datagrid client-side...
Posted by Maarten at 3/27/2006 2:24:48 PM
Hi all, I have a datagrid with questions where the user has to make a choice (yes or no questions) But for some questions there are rules, like if you choose (yes or no) for some questions I need to skip 1 or more questions. e.g. Q1. Do you..... Y | N Q2. Do you..... Y | N Q3. Do you.....more >>

asp.net pages not taking style formatting from themes
Posted by Nick at 3/27/2006 2:19:01 PM
I have a themes css file that has the following settings: ..leftpane { color:Navy; font-family: Verdana; background-color: #ccffcc; font-size: small; width: 81px; padding-left: 2px; } ..mainpane { padding-left: 50px; I am trying to get my asp.net pages ...more >>

Newbe: Redirect and QueryString HELP PLZ
Posted by EDOnLine at 3/27/2006 2:12:40 PM
We have a page which, after inserting a record ID to our database via stored proceedure, redirects the user to a URL on a thrid party site which as passed to that page via QueryString. In other words this is an intermediate counting page between the user's click and their arrival at their sel...more >>

How to create a new session...
Posted by Alex D. at 3/27/2006 1:56:46 PM
Hi guys. I have been trying to create a new session from the server droping the exixting session using Session.Abandon but since the browser doesnt know that the session was abandoned it keeps sending the old session number and then the server uses the same old sesion number to start a new ses...more >>

How to get 2nd Wednesday of each month?
Posted by amit.gaind NO[at]SPAM gmail.com at 3/27/2006 1:35:41 PM
Please suggest something to get date corresponding to 2nd wednesday of each month in VB.NET. ...more >>

How to hide some map nodes from menu
Posted by Shimon Sim at 3/27/2006 1:28:01 PM
I have web.sitemap file that is used in sitemappath control. I also have a menu that uses the same sitemap file. is it possible to "hide" some nodes from menu but still have them available for SiteMapPath control. I need it since some pages could be displayed only if the have some parameters ...more >>

Opening a Word 2003 template
Posted by enak at 3/27/2006 1:21:02 PM
I need to open a Word template so that I can merge some data from a database with the document. I am using ASP.NET, VB.NET. I can not even get MS Word to be visible. I can see that an instance is created in Task Manager. Here is my code: Private Sub createReport() Dim missing ...more >>

ASP 2.0 Menu Control
Posted by Chris Fink at 3/27/2006 1:01:02 PM
How do I set the following style properties with the new ASP.Net 2.0 Menu Control? border-left:1px solid #E6E6E6; border-right:1px solid #E6E6E6; border-bottom:3px solid #CBCBCB; border-top:3px solid #CBCBCB; I am trying to give the HoverStyleItem a different background color that is ...more >>

Recently written record does not show in a descendingly sorted dat
Posted by Coty at 3/27/2006 12:43:01 PM
Here's the problem I'm having. I write a record to backend database and upon the postback my record set is not showing the record I just added. If I close the page totally and reopen the page it will show up, or if I add a second record the first will show upon the postback of the page but t...more >>

Debugging ASPNET 1.1 WebApp Running On IIS with Framework 2.0
Posted by Ing. Davide Piras at 3/27/2006 12:42:10 PM
Hi there, we have a big web application wrote in Visual Studio .NET 2003 (Framework 1.1) which we still use to modify, evolve and compile all the assemblies... on IIS we are trying to set the .NET Framework version to 2.0 for runtime (we've read that we can get up to 30% of performance incre...more >>

Shared Code for Compile on Demand
Posted by Jed at 3/27/2006 12:26:02 PM
I have a quick question about asp.net 2.0 compile options. Here's the scenario: I want to share some code among several websites on the same server, but I don't want to precompile anything. The classic ASP directory structure would look like this. Physical files -> IIS Paths c:\wwwroot\w...more >>

QueryString and Client-side error
Posted by VancouverMike at 3/27/2006 12:14:02 PM
Hi there, I run into a very strange problem. I got the following url and am passing information via query string. The problem when the "sin" key in query string is blank, shown as in the following querystring, I got an error message saying "Unterminated string constant" from IE 6.0 and aski...more >>

Session State not maintained asp.net 2.0
Posted by Iulian at 3/27/2006 11:55:03 AM
I must be doing something fundamentally wrong here. This is what I have in web.config: <sessionState cookieName="SOMENAME" mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="15" /> ...more >>

Custom Validator doesn't work
Posted by Andrea at 3/27/2006 11:17:37 AM
Well, I've tried to create a stupid custom validator to validate a checked checkbox. Really simple, really stupid, but it's just for trying to do something better than standard validator, that works great but has some limits. Ok, this is what i've done (apart from the basic implementation ...more >>

Read data from DataTable on page_load. How?
Posted by D. Shane Fowlkes at 3/27/2006 11:14:54 AM
I have a function that is called in page_load and the purpose of this function is to look up basic data in a MSSQL table and return it in the form of a datatable. The page_load will read the data and then fill a few simple labels. **Assuming** that I wrote the function properly, how exactl...more >>

Could not create 'CDO.Message' object
Posted by Alain at 3/27/2006 11:09:57 AM
Hi, I am trying to figure out why I get the following error when I try to send a mail from an ASP.NET (1.1) application. When I use the same code from a Windows exe then the code works perfectly, so I suppose that is has something to do with security settings for IIS or SMTP Server. Can ...more >>

Creating Threads safe?
Posted by Mike King at 3/27/2006 10:38:26 AM
Is it okay to create a thread in ASP.NET or to get one from the Thread pool? I want to notify a remote server without affecting the execution of my site. My site will update a RFQ log file, then notify a service/deamon on another server that this event has occurred. The sevice will poll the l...more >>

aspnet_wp.exe memory leak questions...
Posted by Rishan at 3/27/2006 10:18:12 AM
Hi, I'm trying to debug a memory leak on a production application for one of my clients. The aspnet_wp.exe, if left to grow, will eventually consume enough memory to throw an out of memory exception. The thing that was unexpected is that most of the memory is not in the heap. The current...more >>

DetailsView - how to capture the click event on Edit and Cancel command?
Posted by K B at 3/27/2006 10:14:45 AM
I have a DetailsView grid, I would like to perform some action (e.g., return to another control), when the user clicks on the Cancel button. How can I capture this event? Thanks, Kit *** Sent via Developersdex http://www.developersdex.com ***...more >>

display empty datetime as blank?
Posted by Dabbler at 3/27/2006 10:08:01 AM
How do I display a datetime field that hasn't been assigned a value as blank instead of the default minimum value? I need to do this in both display and edit modes. Thanks!...more >>

text searching a dynamic ASP.NET site?
Posted by Brian Henry at 3/27/2006 10:04:44 AM
I want to implement a text search on my website that will look through all the pages and be able to search them for text someone says, kinda like google does with the internet, but internally only on the intranet site... how would i go about doing something like this in ASP.NET? ...more >>

ASP.Net 2.0 Static members
Posted by devg at 3/27/2006 10:03:39 AM
I want to have a global variable in my app so I can change my DB connect string for all the pages based on the person's login information. I have a class that has a static string. I can get/set that from any page and it works good. ***Is it OK to use statics in this manner or is there a chance...more >>

multiple sites help and advice
Posted by Mike Read at 3/27/2006 9:38:40 AM
I am creating a commercial site that will have 2 main components. Both being created with ASP.net 2.0 1. Main site which has public access to all pages, this site contains multiple subdirectories one for each topic each with a number of tutorials on the subject. This portion of the site ...more >>

AJAX.net vs. Atlas
Posted by darrel at 3/27/2006 8:30:07 AM
I'm going to be diving into ASP.net 2.0 on a small project. I'd also like to use it as an excuse to start playing with some AJAX techniques. So, that leads to the obvious question: AJAX.net vs. Atlas? Anyone have any opinions on that? It looks like Atlas is still considered 'beta' so perh...more >>

Error connecting to SQLExpress 2005 locally (error: 26 - Error Locating Server/Instance Specified)
Posted by hfk0 at 3/27/2006 8:27:37 AM
Hello, I'm a newbie here and was wondering anyone could help me with this. I have a simple ASP.NET 2 web application running perfectly fine with IIS and SQLServerExpress installed locally on my WinXP as a testing server (I created the app in Visual Studio.NET 2005). When deploying this ap...more >>

debug a custom membership and role provider?
Posted by Ben R. at 3/27/2006 8:26:01 AM
My website uses a custome membership and role provider. I can use a custom login control and user creation control and can debug my providers while doing so with breakpoints. However, when I launch the asp.net website config tool and go to the security tab, I get a polished screen with the err...more >>

Embed UserControls into XSLT
Posted by Sekhar at 3/27/2006 8:09:05 AM
Hi all I am trying to embed a user control into an XSLT.. Can something like be done?? If not, any other better alternative? Thanks Sekhar ...more >>

javascript bafflement in datagrid
Posted by CharlesA at 3/27/2006 8:09:04 AM
Hi folks, I'm using ASP.net with Framework 1.1 and C# to go into my actual problem and fully explain would take more than any of us could take (me writing it, you reading it) however I can boil down one baffling aspect into a nutshell I know about getElementById(' ') and it takes the lite...more >>

Page.Invalid
Posted by Mark A. Sam at 3/27/2006 7:49:59 AM
Hello, I know this issue has been raised many times in the past, but I couldn't find a solution from reading many posts from a google search, so I am posting it again. I placed a RegularExpressionvalidator on a webform to test a textbox for a proper email format. I am trying to test for ...more >>

Javascript to popup ASPX page
Posted by Rusty at 3/27/2006 7:46:10 AM
Hi, I've seen something on a web site that I want to do for our Intranet web site. I'm not advocating pop-ups but for our company app, this would be perfect. Please go to this page and hold your mouse over one of the rings. http://www.bluenile.com/product_catalog.asp?catid=8&oid1=364&track=he...more >>

How to remove Annoying Refresh Message
Posted by Octopus0 at 3/27/2006 7:17:30 AM
hi, i develped a web application and sometimes user of the my application update the page by clicking on the refresh button but a message appear every time they refresh the page : "the page can not be refreshed without resending the information click retry to send the information again or cl...more >>

Starting rsync via ASP.Net
Posted by M_at at 3/27/2006 5:33:14 AM
I'm trying to automate file copying of websites between servers with a web front end to allow our non-technical staff to make changes to sites live in a safe and ordered manner. I'm having difficulty using the System.Diagnostics.ProcessStartInfo technique to start RSYNC If I try to start RS...more >>

How to add an attribute at table level using GridView
Posted by Li Pang at 3/27/2006 5:21:01 AM
Hi, I use GridView to populate the date. I want to know how to add an attribute at table level, for example, onclick="alert('hello');" so when clicking on anywhere of the table, return message "hello" Thanks in advance...more >>

Invalid_Viewstate error with email in the message - second post
Posted by Bill Sempf at 3/27/2006 4:06:02 AM
Trying again on this forum to see if anyone has seen this error: I am receiving an Invalid_Viewstate error on one of my sites, and the error message content has SMTP Mail header text in it! Here is an example from my exception handler: ---------------------------------------------------...more >>

Cannot assign to 'Redirect' because it is a 'method group'
Posted by Chino at 3/27/2006 2:35:21 AM
Hi guys, Sorry but i am new to ASP.Net and C# so please bear with my pleb questions. I have the following in a C# class which is being inherited by my ASP.Net page. In this class i have an event for a button i have on the web page: protected void btnAuthorise_Click(object sender, EventAr...more >>

gridview: selected value of dropdownlist in edititemtemplate
Posted by NH at 3/27/2006 2:09:03 AM
How can I set the selected item in a dropdownlist which is declared in the edititemtemlpate of a gridview? Which gridview event should I use, I cant seem to figure it out......more >>

editable dropdownlist
Posted by joe at 3/27/2006 1:29:02 AM
i want the dropdownlist can enter something...more >>

question
Posted by joe at 3/27/2006 1:28:02 AM
When i insert "" to db (integer type), it will become 0 how to insert null when the text is ""...more >>

How to popup window which will show my one PDF file?
Posted by ABC at 3/27/2006 12:00:00 AM
I want click a button and than to popup window which will show my one PDF file. How should I to coding in C#? ...more >>

How to return the full virtual path if I pass the url as "~/default.aspx"?
Posted by ABC at 3/27/2006 12:00:00 AM
How to return the full virtual path if I pass the url as "~/default.aspx"? I expected this should result as http://aaa.bbb.com/default.aspx. ...more >>

How to use replace function for "/" character?
Posted by ABC at 3/27/2006 12:00:00 AM
I used as: url.Replace("\", @"/") but it showed the error as: error: managed EE does not understand expression's syntax How to fix it? ...more >>

access to page ?
Posted by Jarod at 3/27/2006 12:00:00 AM
Hey I want to setup diffrent access permision to each page maybe even for some elements on the page. What's the easiest way to do it ? I plan do develop something like HasModuleAccess(string pageName,string moduleName) function and depending on this check... Maybe already there is something l...more >>

2 custom webcontrols with postback problem
Posted by Alexander Widera at 3/27/2006 12:00:00 AM
hi, i have 2 custom webcontrols on one page ... both have buttons (of the class Button) on it with different Click or Command Events. But the problem is, that a click on the button in the second control always causes a validation and call of the postbackmethod of the first webcustomcontrol....more >>


DevelopmentNow Blog