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 2005 > threads for wednesday march 2

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

SQL Server does not exist error when no network connection
Posted by BobRoyAce at 3/2/2005 11:06:49 PM
I have an ASP.NET application set up on my local hard drive with all pages, dlls, and SQL server on local machine. However, I have discovered that if I reboot my machine without a network cable plugged in, and then try to run the application, I get the following: Microsoft OLE DB Provider f...more >>

Weird asp.net problem
Posted by spilo101 at 3/2/2005 9:39:01 PM
I am experiencing a weird problem with my .aspx pages. I have just got stated with asp.NET and have installed everything. when I call the webpage (.aspx) at first time, it works fine, if I refresh it, it's fine, but if I modify it any way it will make windows crash/hang. none of the software s...more >>

SqlDataAdapter Question
Posted by Patrick Olurotimi Ige at 3/2/2005 9:17:10 PM
Am using a string to do select from a table string strCon ="select subject, name, email, message ,date FROM newpost WHERE postid="+postid But i want to use it with a SQLAdapter like this:- da = new SqlDataAdapter("select subject, name, email, message ,date FROM newpost WHERE postid =+posti...more >>

Crystal Report with parameter problem -Pls help
Posted by Kapil Shah via DotNetMonster.com at 3/2/2005 7:31:08 PM
Hello everybody, I am trying to create a web application to generate Crystal Report with Parameters. However I noticed that ReportDocument.Load is used twice when the parameter page is loaded . 1) The first time ReportDocument.Load is used when the Crystal Report is loaded and the parameter ...more >>

Help needed accessing methods of ActiveX controls in ASP.NET
Posted by Bob Hanson at 3/2/2005 6:07:27 PM
Hi All, I would appreciate any information regarding the ability to access methods of ActiveX controls using ASP.NET. Thanks in advance, Bob Hanson *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

I've stopped using Server.Transfer
Posted by Andy Fish at 3/2/2005 6:05:22 PM
Hi, I just thought someone reading this might be interested to know that I've just decided to stop using server.transfer and replace it with response.redirect instead. The app had several places where you would click on a button, it would go away and do something and take you to the next...more >>

HTML string conversion
Posted by Mike at 3/2/2005 6:02:05 PM
What are the functions to convert to/from escaped versions for proper HTML viewing? E.g. "< is lt" <--> "&lt is lt" thanks ...more >>

viewstate for a File Input Control
Posted by Robin at 3/2/2005 5:57:06 PM
On an ASP.Net page that has viewstate enabled. How do you enable viewstate for a server side file input control? Currently I have in the HTML view. <INPUT id="myID" type="file" name="myID" runat="server"> ...more >>



How to avoid lifecycle hacks?
Posted by Homam at 3/2/2005 5:57:03 PM
The ASP.NET model is touted as a clean OO approach to developing web pages, yet sometimes the page lifecycle poses silly obstacles that forces you revert to the Olde ASP 3.0 Ways. Here's a rough outline of an ASPX page: .... a bunch of criteria controls... PagingNav ResultSetDisplay Sub...more >>

Hyperlink in a TextBox - Possible?
Posted by theintrepidfox NO[at]SPAM hotmail.com at 3/2/2005 5:50:18 PM
Dear Group Simple question or maybe not. I have a text box that contains a hyperlink e.g. http://www.mysite.com. Is it possible to get that hyperlink to work so when a user clicks on it it brings up this website? I know about link labels etc but in this case this is a contact form which is...more >>

<asp:Hyperlink> question
Posted by Joo Park at 3/2/2005 5:32:52 PM
How do you have a hyperlink that will open up a new window which passes in selected items from a listbox that is on the same page as the hyperlink using <asp:Hyperlink>? thx in advance! ...more >>

Form Name, ID and validator.w3.org
Posted by Brian Cryer at 3/2/2005 5:31:11 PM
I originally posted this on microsoft.public.dotnet.languages.vb but didn't get a response. I suppose that whilst I'm using VB.NET this is probably I generic .NET issue so I'm hoping someone will be able to help ... I'm working on a web site (using VB.NET) where the customer is keen that all ...more >>

Macs
Posted by Paul Mason at 3/2/2005 5:23:00 PM
Hi folks, I know this isn't really the right forum for this but we've drawn a blank in the other forums. We have a number of users who have Macs and they are not able to connect to our IIS based web server....even when they type in the IP address it says it can't find the server. I'...more >>

Don't Understand This error?
Posted by Wayne Wengert at 3/2/2005 5:09:38 PM
I am using a datareader (dr1) to read through rows returned from a query. I am getting the error: "No data exists for the row/column." at the "If IsDbNull..." in the code below. The field "Photo1" does exist and in some rows it is null, in others it may be an empty string and in others it may h...more >>

Email by form on hosting service
Posted by Goober at 3/2/2005 4:54:41 PM
I use Ipowerweb as a host service, and am wanting to create a form to send email from. I don't have access to my smtp server, like I do on a local box, so I can't authenticate a domain or otherwise make changes to Ipowerweb's configuration that I could if it were my computer. Is there a ...more >>

header - please advice...
Posted by Bad_Kid at 3/2/2005 4:53:58 PM
Need to have a custom generated header on my site which will stay ONTOP of the site whenever I scroll?? I know it can be done with another frame, but then I don't know how to BUILD header, and pass it events from "main" site... Now, header is on my "main site" and from it (main site) I generate ...more >>

dynamically created codebehind - howto add to .dll
Posted by Dan at 3/2/2005 4:35:38 PM
hi ng, in my asp.net application, users dynamically can create aspx files and codebehinds (and other source files). how can i enforce .net to add these sources to the .dll? til now, the user gets the error Parser Error Message: Could not load type ''. thanks you very much. dan...more >>

Connection Object in ASP.NET
Posted by Keith Norris at 3/2/2005 4:33:02 PM
I cannot successfully create a connection object in a web form. In the page_load event I try the following code: Dim sConnection As String = "server=MIDATLANTICUS;" & _ database=Pubs;integrated security=SSPI" Dim conTest As New SqlConnection conTest.ConnectionString = sConnection conT...more >>

using a global variable set by master page
Posted by Davids at 3/2/2005 4:24:57 PM
I am not having any success, in my master.cs page I assign a variable to be used within all other pages: public partial class MP_master { public string MyString = "this string is global"; } well accessing it from other pages brings a "CS0103: The name 'MyString' does not exist in th...more >>

need help with error message
Posted by TJS at 3/2/2005 4:21:32 PM
When trying to delete a row from a datagrid I get this error on every record regardless of record selected to delete. "Index 7 is not non-negative and below total rows count." there are 8 rows in the table being edited so index 7 should be a valid number ========= the offending code ===...more >>

NUnit and Session state
Posted by Mark at 3/2/2005 4:10:28 PM
I'm building some NUnit tests for the business classes in my ASP.NET application. Some of the business classes use Session to store information. NUnit does not generate a Session, so the code below bombs when a HttpContext.Current.Session["some_key"]; Any suggestions on the best alternative...more >>

Check if Background color is empty
Posted by tshad at 3/2/2005 3:31:24 PM
I have tried all kinds of combination to test for an empty color. I have set a datagriditems background color to some color and need to later loop through all the items to find the one that is not empty and to set it to empty. This one: if oDGI.BackColor <> Color.Empty then gives m...more >>

COVAD Referral Program!
Posted by COVAD at 3/2/2005 3:21:03 PM
To Whom It May Concern: Good morning. I am Seann P. Courtney with Covad Communications an the reason that I am contacting you is because I am looking for referral partner to do some business with. I will pay you $400.00, free and clear, if during the normal course of your days business yo ...more >>

Using the Cache object vs. letting .net or IIS handle it
Posted by darrel at 3/2/2005 3:18:36 PM
I had a conversation with a friend today. I'm working on a project where I have an XML file that stores the site structure and some page-centric variables. I have a handful of controls that will be reading from this XML file. My initial reaction was to load the XML file once, and then set it...more >>

Problem using DataGrid - Validation
Posted by Shankar Mani via DotNetMonster.com at 3/2/2005 3:17:50 PM
Hi folks, I am facing a problem while using a DataGrid. I have a webform with a datagrid containing two text boxes for edit viz., countrycode and country name. Like wise I have two more text boxes for Adding a new row in the grid, remember these all the four text boxes are inside the ...more >>

Something between Page and IHttpHandler?
Posted by vimakefile NO[at]SPAM yahoo.com at 3/2/2005 3:12:02 PM
I'd like to have the concept of a Page (different code-behind file for each url, session state, etc.) but be able to specify my own custom HTTP payload. (I don't want to use any Asp.Net forms, controls, etc.) (Happens to be binary - but although I need to use HTTP, it's not going to a browser.)...more >>

Forced Download of PDF
Posted by darren NO[at]SPAM yellowpencil.com at 3/2/2005 3:06:19 PM
Dear Groups, I am attempting to allow the end user to save or open a pdf document from the server. However, when the file is downloaded it is not a pdf, but rather nonsensical garbage. Also, if attempting to save the file, it only gives the option of file type "text document". I've run th...more >>

Need to ignore Enter key in Form
Posted by Lars Netzel at 3/2/2005 3:05:23 PM
I really need to stop users from reposting the form with Enter or Return keys. It bypasses so many onClick validations that nothign works if they use Enter. I must force the user to CLICK on the "Save" button on my aspx page and instead totally ignore the Enter Key. I figured I could use th...more >>

How to detect when request from local computer (server)
Posted by Rafael Leonhardt at 3/2/2005 2:35:55 PM
How I can to detect when a user access a site from the server? I need to control someting like "remoteonly" on custom errors in my aspx to show some information when local and other wen remote. ...more >>

Adding a Dataset to the viewstate
Posted by Craig G at 3/2/2005 2:30:33 PM
is it a wise idea?? the dataset would only be one table (2 columns), but it might have upto 1800 records other possibilites would be to write an XML file on the server but there might be upto 100 users using system which would mean the possibility of upto 100 XML files or just hit the da...more >>

Visusl Studio bug ?
Posted by ashish at 3/2/2005 2:02:13 PM
If i type following code in the html view of a form or a web user control <asp:panel="someid" runat="server"> <asp:panel> i know this is not correct, but if i then try to view the control in design view, visual studio would hang !, can someone confirm that this is an issue ? Regards -...more >>

dynamic content from SQL
Posted by Andrew Robinson at 3/2/2005 1:57:00 PM
Given HTML text (likely from SQL), is there any method that could be employed to render server and/or custom controls that are contained inside of that text? I would be loading content from a database and would like to 'expand' the server controls. Possibly even recursively. Hope this makes se...more >>

hyperlinks in label control
Posted by Carlos at 3/2/2005 1:54:24 PM
Hi all, Can a label be formatted to contain a hyperlink ? are there any examples available? Thanks, Carlos ...more >>

Slider / Trackbar Control
Posted by ACaunter at 3/2/2005 1:11:01 PM
Hi there, I was wondering how i could have a slider control on my asp.net page. Is this possible for asp.net?? or do i have to use javascript?? can anyone provide any code or links on how i could do this.. thanks so much! -- AdamPC@hotmail.com...more >>

FTP or HTTP to upload files through ASP.NET?
Posted by RayAll at 3/2/2005 1:05:22 PM
I am using HTTP to upload files to a database ,I'm just curious if I can do it through FTP too and what would be the advantages and disadvantages of these two method? Thanks ...more >>

Little question on Global.asax
Posted by Amirallia at 3/2/2005 12:15:10 PM
I developped a WEB application for a customer. All is ok. Now I have made changes in the Global.asax.vb file My question is what files must I send to the customer for having this changes ? Only the *.dll ? -- Ceci est une signature automatique de MesNews. Site : http://www.mesnews.net ...more >>

Test-Driven Development with Databases, what is the best way to do it?
Posted by Sasha at 3/2/2005 11:29:04 AM
Hi everybody, I am starting a new ASP.NET/SQL Server project and this time I want to do it through Test-Driven Development (TDD). The problem that I ran into is this: How do you test data access logic with a database in the backend? I do not want to use mock objects because if the schema ch...more >>

How to ... ?
Posted by Allen Smith at 3/2/2005 11:23:55 AM
How to disable the client side script in IE6+? Thanks, Allen ...more >>

formsauthentication
Posted by Grant Merwitz at 3/2/2005 11:19:34 AM
Hi, i am using forms authentication in an ASP.NET project I am setting the Forms authentication cookie by using: FormsAuthentication.RedirectFromLoginPage(UserName.Text, false); Now when i review my trace on my page, there are two cookies created that look identical. When i FormsAuthen...more >>

How to read source programatically
Posted by Kevin Vogler at 3/2/2005 11:11:53 AM
I need to read the value of a hidden field on a remote HTML page and then use that value in a form submit on my local page. How can I read the hidden field programatically? Thanks in advance. Kevin Vogler ...more >>

decrypt viewstate
Posted by Josh at 3/2/2005 11:10:19 AM
anyone know a way to decrypt the viewstate on postback. I want to check whats in there. Can I cast it into a hashtable or something like that? ...more >>

What user is executing the SP to use xp_cmdshell
Posted by darrel at 3/2/2005 11:08:12 AM
I have a simple Stored procedure that I'm using to call the command shell to execut DTSRUN (which, in turn, calls a DTS package): CREATE PROCEDURE updateDB AS Exec master..xp_cmdshell 'DTSRUN my paramaters...' I'm calling this procedure from an asp.net page. I'm getting the following error...more >>

Session Question HELP!!!!!!!!!!!!!!!
Posted by SouthSpawn at 3/2/2005 11:07:55 AM
Ok, Let's say I have two asp.net projects. So basically, these projects will have two different assembly .dll files. Now, let's say I have a session variable in a page called page1.aspx in project one. On this page, there is a button that redirects the user to page2.aspx which is apart of "...more >>

Newbie with Datagrid
Posted by Wizard at 3/2/2005 10:53:19 AM
Hi All, Im rather new to this so please excuse my ignorance. I have 2 Access Tables in a Access DB. I would like to have these viable via a Web Page. Could somebody point me in the direction of a Simple Tutorial what I can learn this or maybe a demo, there must be the ability to Search ...more >>

Forms Authentication and Session Variables
Posted by Jim at 3/2/2005 10:39:17 AM
Hi, I am using forms based authentication for my website. Whilst testing I have noticed that occasionaly it appears that the Context.User.Identity.Name is valid however the session variables that I have created as the website is used have been lost. I think it is something to do with the...more >>

Using SQL trusted connections with ASP.NET
Posted by Adam Getchell at 3/2/2005 10:33:03 AM
Hello all, I've read over: http://idunno.org/dotNet/trustedConnections.aspx I would like to use a trusted connection vice using encrypted database strings: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT11.asp http://msdn.microsoft.com/library/...more >>

redirection page
Posted by pad at 3/2/2005 10:10:48 AM
i have two pages. one is mainpage.aspx and antoher one is login.aspx. everytime i try to run the mainpage.aspx it redirected automatically to login.aspx. where it supposed to run the mainpage.aspx first. button members should link to login.aspx this it to allow the user to login. the co...more >>

Problem with creating an event from a dropdown lsit
Posted by GMK at 3/2/2005 10:08:18 AM
Dear all i would like to create and event whenever the user changes the value of a dropdown list how could this be done? i tried to use the "SelectedIndexChanged" but it didn't work, i could not run the code within this event? can anyone help me? Thank a lot ...more >>

Restrict users using Application_AcquireRequestState?
Posted by Dave at 3/2/2005 9:59:06 AM
We have an intranet application that is under Integrated security. So in theory, anyone who has an Active Directory account in the company can access my app. So, to allow only certain users, I created a user table of domain accounts and check these in the Application_AcquireRequestState ...more >>

Scripts does not execute but simple passthru
Posted by cody at 3/2/2005 9:37:51 AM
I have an aspx file on my local IIS but if I open the webpage from the browser I get a file which still contains asp tags like that: <asp:label id="laFENr" runat="server" cssclass="label">FE-Nr:</asp:label> It seems my IIS didn't execute the script and output html but instead simply passed t...more >>

Datagrid ViewState
Posted by Alejandro Penate-Diaz at 3/2/2005 9:02:04 AM
Hi. I am trying to reduce a DataGrid viewstate info by doing what this = article says: = http://authors.aspalliance.com/JimRoss/Articles/DatagridDietPartTwo.aspx = .. I need to disable viewstate for all columns exept my button columns. = Problem is that I can not access the Label controls within...more >>

Custom Web Form Class
Posted by Nick at 3/2/2005 9:01:06 AM
I am writing a web application for my company (VB.NET). I am adding a custom web form class to prevent all the code reuse as you can see below... Public Class UIWebForm Inherits System.Web.UI.Page Here I have a Public Sub that will use a ASP Literal on the page to display a javascri...more >>

Configuration Error - Access is denied: 'Microsoft.Web.UI.WebControls'
Posted by KMart at 3/2/2005 8:49:09 AM
Hello, I have a ASP.NET/C# application that uses the IE Web Controls. Everything was working fine. Then, for some unknown reason, everything stopped working. Here's the error information: Server Error in '/application' Application. -----------------------------------------------------------...more >>

connection problem
Posted by dap at 3/2/2005 7:56:14 AM
can you tell me what is the problem with this error statements?? Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Sys...more >>

Conection from dreamwaver
Posted by rered at 3/2/2005 6:33:59 AM
Hi all, Im developing website using asp.net and ms sql server in dreamwaver. What I want to ask is how / what code do I need to use to connect from dreamwaver to ms sql server. Im new in asp.net so please anyone have any idea? Thanks...more >>

: an exception raised
Posted by JIM.H. at 3/2/2005 6:25:04 AM
Hello, Dim row As DataRow Dim column As DataColumn For Each row In myDTSrc.Rows For Each column In myDTSrc.Columns myRowDest(column.ColumnName.ToString) = row(column.ColumnName.ToString) Next ...more >>

Case Sensitive URL using Window 2000 Server
Posted by Claire-Louise at 3/2/2005 5:35:02 AM
I have a strange occurrence on a test internal website with a control that appears at the top of every page. The website is on a test Windows 2000 Server running IIS with a domain name 'DARASD06'. Once the URL (below) has been entered, the user clicks a link that takes you to a login page. ...more >>

Java's DOMParser and .NET's XMLDocument
Posted by Carlitos at 3/2/2005 5:17:02 AM
Hi there, I'm a beginner on XML. At this moment I am working on a conversion to C# of a (pretty large) program originally coded in Java. It's not much what the JLCA does when converting XML classes from Java to C# for several reasons, and basically leaves the programmer with the decision ...more >>

dynamic table in user control
Posted by tvkarthick NO[at]SPAM gmail.com at 3/2/2005 4:55:39 AM
Hi, I have a user control which dynamically creates a table with one row and 8 columns. I have got values to display on all the 8 columns. But when I construct the table, I need to create 8 table cells though, is there any other way I can dynamically generate without having to do the new Html...more >>

Dropdownlist ASP
Posted by koumides NO[at]SPAM gmail.com at 3/2/2005 4:47:12 AM
I have the following code: <asp:DropDownList id="Dropdownlist1" runat="server"> <asp:ListItem value="N" text=DateTime.Now.ToLongDateString() /> <asp:ListItem value="S" text="Sweden" /> <asp:ListItem value="F" text="France" /> <asp:ListItem value="I" text="Italy" /> </asp:DropDownLi...more >>

web user controls and placeholders
Posted by cyndie woodster via DotNetMonster.com at 3/2/2005 4:30:53 AM
i had created a web user control named "uscItems.ascx" and a web form named "pkg.aspx" i added placeholder in "pkg.aspx" then in load_page i wrote this code dim usc1 as UserControl=LoadControl("uscItems.ascx") Me.PlaceHolder1.Controls.Add(usc1) inside my "uscItems.ascx" there r few compon...more >>

cultureInfo calendar DateTime problem
Posted by Boonaap at 3/2/2005 3:17:03 AM
Hi all, In a user control, the user can put the cultureinfo to his preference, choosing between "nl-BE","fr-BE", and "en-US". this way all calendar and datetime properties are set in the right structure. In a webform I have two textboxes which are filled in by a CalendarPicker in a Pop-u...more >>

Enforcing that value entered is greater than a specified value
Posted by BobRoyAce at 3/2/2005 3:14:41 AM
Let's say I have a text box on a page in which a user is to enter a monetary amount and that I want to ensure that the user enters a value greater than or equal to a certain value that will be determined by interrogating a database at runtime. There is a button on the page that the user clicks...more >>

looping through controls
Posted by Asha at 3/2/2005 2:57:05 AM
hello, i got many asp.net controls and i want to put the same values into all of the contorls. is there a better coding habit to allow me to loop through all these contorls with different id to have the same attribute. e.g css class name or height or enable/disable it. thanks...more >>

Problem with storing value in Session object/variable
Posted by Al Wilkerson at 3/2/2005 1:56:07 AM
Hey guys, I'm having problems with creating/storing a value in a session variable for later retrieving on another page. Here is the aspx page where I create/store the value <%Session["type"]="programming";%> <asp:HyperLink id="hlnkProgramming"Target="main" NavigateUrl="CategoryResu...more >>

Postback from VBScript
Posted by David at 3/2/2005 1:31:03 AM
Hi I have an asp.net page with embedded vbscript that interacts with Microsoft Word. The script is activated by a client side button (onClick()...). When the script has finished I want to notify the server so that some cleaning up can be done. I can't find a way to do a postback from vbsc...more >>

MSDN Trabstrip
Posted by Asha at 3/2/2005 1:21:08 AM
greetings, i'm using MSDN's tabstrip without the use of multipage. does anyone know how to make the selected tab highlighted when its being click and redirected to another page?...more >>

A PopEndTag was called without a corresponding PushEndTag
Posted by TJS at 3/2/2005 12:55:49 AM
can any one help with this error message ? What's missing ? "A PopEndTag was called without a corresponding PushEndTag" ==============offending code to generate droplist ==================== ...... writer.AddAttribute(HtmlTextWriterAttribute.Id, name) writer.AddAttribute(HtmlTextWriterA...more >>


DevelopmentNow Blog