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 2007 > threads for monday july 23

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

How to tell the type of exception
Posted by Chris at 7/23/2007 11:08:01 PM
I have a custom exception which gets thrown in my business layer. I catch it in the item inserted event of my formview. How do I tell whether it is a custom error or another type of error. Is there a way of saying is "e.exception of type custom error". Regards, Chris. ...more >>


Cannot create ActiveX component : GetObject("LDAP://rootDSE")
Posted by mirin at 7/23/2007 11:06:24 PM
Hi Folks, I'm using .NET framework 2.0 My code errors out on the below line: objRootDSE = GetObject("LDAP://rootDSE") The error message is "Cannot create ActiveX component". The same code works fine in my development Win2000 PC where I'm using MS Visual Web Developer 2005 integrated wi...more >>

why am I getting this error?
Posted by Jassim Rahma at 7/23/2007 9:43:12 PM
here is the error: Literal content ('<asp:TableRow BackColor="white"') is not allowed within a 'System.Web.UI.WebControls.TableRowCollection'. and here is my code: <asp:TableRow BackColor="white"> <asp:TableCell VerticalAlign="Top">Your Message</asp:TableCell> <asp:TableCell VerticalAli...more >>

sqldatasource get value back
Posted by Ganesh at 7/23/2007 9:42:52 PM
Hi There, I've asp.net 2.0, sqldatasource i've a select statement it will return just one record contains 5 fields. How can i get the field values back from sqldatasource Thanks ...more >>

VB2005 execute string
Posted by Jerzy Zielinski at 7/23/2007 9:06:57 PM
Hi all, I would like to execute/evaluate a string that contains a VB script, for example: Dim s as string = "Dim avar as integer = 1" ' Evaluate s... so s can be executed during runtime and avar will be created as a result. Thanks. Jerzy jerzy.zielinski@gmail.com ...more >>

IIS6 doesn't recognize changes to config file
Posted by Roger Martin at 7/23/2007 7:04:01 PM
I have referenced a separate config file in my application using the following syntax in web.config: <galleryServerPro configSource="config\galleryserverpro.config"/> There are several admin pages that modify one or more settings in this file, and I need the application to automatically re...more >>

find control in user control in master page
Posted by Salim at 7/23/2007 6:02:41 PM
Hi, I'm trying to get UniqueID of a linkbutton. I have 2 web user controls. And a master page. In fisrst web user control there is a datalist. In datalist ItemCreated event, I try to find a linkbutton control which is in the second web user control and in another datalist. My code is l...more >>

Membership Class Annoyances or am I just ignorant?
Posted by David Lozzi at 7/23/2007 4:50:39 PM
Howdy, My biggest annoyance with the membership class is that i cannot seem to get to it in my master files. I'd like to setup my master file to check for whether or not the current user is logged in or not, and if they are not, send them over to the login page. But I cannot access the memb...more >>



Where can I download "Coho Winery"?
Posted by Max2006 at 7/23/2007 4:47:44 PM
Hi, I foind that Vertigo built a sample web application built for Microsoft showcasing ASP.NET Ajax (http://www.vertigo.com/Lab.aspx) Can I download that application? Thanks, Max ...more >>

TreeView node style - for an individual node
Posted by Homer J. Simpson at 7/23/2007 4:16:05 PM
Hi all, I just went over a *lot* of tree node style properties (LeftNodeStyle, NodeStyle, ParentNodeStyle, RootNodeStyle, LevelStyles, HoverNodeStyle, SelectedNodeStyle, etc etc etc) but can't find exactly what I want. It seems that I'm in a situation where none of these predefined groups ...more >>

XmlDataSource & XPATH & DataList
Posted by pelegk1 at 7/23/2007 3:28:00 PM
i am using the XmlDataSource +DataList to get xml and in the aspx page itself to extract data i do for exmlae: <%#XPath("LogoBg/text()")%> what i want to do is : Dim index As Integer = XmlDataSource1.GetXmlDocument.SelectNodes("MainPage/ParentsTip").Count index = rand.Next(index) ...more >>

Problem Setting GridView caption from Calendar1.SelectedDate
Posted by Beowulf at 7/23/2007 3:26:38 PM
I have a calendar control on a web form that I am using to allow users to select which date to display a list of scheduled interviews. The SqlDataSource that is the datasource for the gridview has a SelectParameter bound to Calendar1.SelectedDate. This is all working correctly. The one ...more >>

how to validate QueryString?
Posted by Jassim Rahma at 7/23/2007 2:33:38 PM
I have an ID which I pass from the QueryString["id"]. The id is integer only and I want before performing any action to validate if the Id is valid integet. ...more >>

When to override Render
Posted by Allan Ebdrup at 7/23/2007 2:09:44 PM
We're pretty new to ASP.Net 2.0 and we're having a discussion about best practice when developing custom server web controls. I can see that in for example the Wizard control the table contained within is a control and all the children are controls. That seems to be a good practice to me, use ...more >>

running a separate applicaiton within an installation package
Posted by Dica at 7/23/2007 2:07:33 PM
i'm primarily a web developer, so this is probably a pretty stupid question to ask, but i'm trying to figure out how to run an installation package i'm writing in a VS setup project. as far as i've been able to tell, the VS setup template is only responsible for copying my installation EXE to ...more >>

Windows Workflow Foundation Web Workflow Approvals Starter Kit: problem
Posted by Andrzej Jaworek at 7/23/2007 1:28:13 PM
Hello, I'm testing this starter kit and I have a problem with persisting workflow state. In UserActivitiesHelper class there is a method UserActivitiesHelper() with the code block that clears the database data each time the service starts. There is a comment that this block code could be di...more >>

Most elegant way to clear all the text fields on asp.net page?
Posted by Duk Lee at 7/23/2007 1:11:43 PM
What is the most elegant way to clear all the text fields on asp.net page? I just don't think that txtShortName.Text = "" txtYearFounded.Text = "" txtCompanyCode.Text = "" txtCity.Text = "" txtOwnership.Text = "" txtAssetsUnderManagement.Text = "" ...more >>

Now we're getting somewhere...but one thing is a little weird
Posted by Brent White at 7/23/2007 1:09:47 PM
I got this code from the web service site (but of course they have no kind of implied warranty on it) that builds a URL with a querystring and sends it. Naturally, the parameters (of which there are a ton, no idea why they don't want XML input, but I digress) are separated by & signs. I know i...more >>

Page level variables reset during Ajax post back
Posted by radix at 7/23/2007 12:56:31 PM
Hello, I have a aspx page with ajax scriptmanger update panel etc. I also have public string variables on the aspx page. Whenever postback happens from Ajax update panel, at server side all the public string variables are reset to empty string. As if fresh page is loaded. How to preserve th...more >>

First PageMethod blocks second page method from executing
Posted by Roger Martin at 7/23/2007 12:32:05 PM
I am executing an AJAX page method that is a long running task. After starting the first method, I execute a second page method to retrieve the status of the task. It works fine in an empty web application, but when I paste the code into my main application (~10 projects, maybe 100 files) the ...more >>

Best practices around "Page_PreRender" and "Page_Load" events
Posted by Max2006 at 7/23/2007 12:26:09 PM
Hi, Are there any best practices or recommendations around using "Page_PreRender" vs "Page_Load"? We are thinking to completely switch to Page_PreRender event to handle page's controls initialization requirements. I went through some asp.net page life cycle documentations (and diagrams) ...more >>

Could not find file Error
Posted by Amritha.Datta NO[at]SPAM gmail.com at 7/23/2007 10:29:12 AM
Can anyone tell me why the below code returns error? Exception Details: System.IO.FileNotFoundException: Could not find file Dim strLFolder As String = "c:\Temp\F Files" Dim intClientID As Integer = 1221 Dim XMLStr As String = strLFolder & "\" & intClientID.ToString...more >>

Setting the timeout for a specific page.
Posted by Mufasa at 7/23/2007 7:56:59 AM
Is there a way to set the timeouts for inactivity to be specific for a specific page? My memory is the answer is no. I have a script that is on every page at the moment that after twenty minutes of inactivity automatically logs you out. I can turn that off for the specific page but I ass...more >>

Available 2 Java, 1 Sr.Dot net consultant for your DIRECT client reks.......................
Posted by at 7/23/2007 6:59:36 AM
Hi, Let me present list of my available consultants Two Java Consultant One Sr. Dot Net Consultant For more details, contact me on mailto:mandar@kraftware.com or call me on 402 408 6601 I Excellent Java Const having 8+ yrs exp available for your direct client reks. Name : Ram Curr...more >>

Word doesn't create document
Posted by Andreas Hengstebeck at 7/23/2007 6:52:07 AM
Hi, I'm using a Word Interop (Word 2007) in C# to open a document, make some text replacement, save it temporary and then send it to the user. I'm doing this like this: .... app = new word.Application(); doc = app.Documents.Add(ref templateFile, ref falseValue, ref missing, ref missing...more >>

Newbie Question
Posted by S Chapman at 7/23/2007 5:10:36 AM
I am very new to ASP.Net and I am finding it hard to do some fundamental things. Any help would be greatly appreciated. I am developing a web application to store, view and maintain projects that our team works on. For each project the user can specify 1) The Project details like name, desc et...more >>

Getting file permissions
Posted by kratc at 7/23/2007 3:22:34 AM
Hello. I've been wondering for quite a while now if this even is without trying to open the file or something like that? I'm trying to list all the files in a directory (with subdirectories) to which the logged in user has permissions. I'm using forms authentication and the permissions are spe...more >>

How to notify Admin when .NET website is down?
Posted by Omar at 7/23/2007 2:15:18 AM
Hi All, We have several .NET websites running on IIS 6.0. At the moment, if a website is down, Admin will not know until one of the users reports it. Is there a way that we can have the admin alerted when a website is down? Thanks and regards, Omar ...more >>

printing webpage
Posted by Mike P at 7/23/2007 2:05:06 AM
I am trying to use javascript to print my .NET page. I am building up some HTML using a stringbuilder and then using this javascript to try to print it : <input id="Button2" value="Print" onclick="javascript:window.print()"> The page is wider than a standard A4 page but should fit onto a p...more >>

Publishing Websites and Security
Posted by Chris at 7/23/2007 12:08:32 AM
I am looking at publishing websites via VS. One thing I am unclear about is security. These are probably stupid questions... Our network people are really cagey about opening up FTP on the server. I think the bosses have a fear of someone logging on a stealing all the source code so we have...more >>


DevelopmentNow Blog