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 > december 2004 > threads for wednesday december 29

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

Forms-Based Authentication for only a subset of pages
Posted by Andre at 12/29/2004 10:13:05 PM
I've got the basic forms based authentication going. A user has to go to my login page before they can access any other pages. The issue is that there are a sub-set of pages on which I don't have to require that a user login in before they access it (the contact/about page for example). ...more >>


datalist not resfreshing after update
Posted by branton ellerbee at 12/29/2004 10:03:53 PM
what is the problem with this pos language? I have run into this problem time and time again and never sure what I do to fix it. I have a update to a database, then I call sub to re-bind the datalist. However, the update will not display the updated data until I physically refresh the br...more >>

Problem updating dataset to database
Posted by Zachary Hilbun at 12/29/2004 9:18:34 PM
The below is some test code to help me learn how to update a dataset. It is supposed to read the value of UserCounter and write it back. The UserCounter is being read correctly as 0, is 1 when written back, but is not being written back to the database. Although I've used a foreach loop t...more >>

accessing a public variable
Posted by DC Gringo at 12/29/2004 9:14:24 PM
How can I access a "public var1 as new string" from a .aspx page's user control? -- _____ DC G ...more >>

Output folder changed
Posted by Peter Afonin at 12/29/2004 8:47:25 PM
Hello, When I build an ASP.NET application, for some weird reason Visual Studio.Net started to put my DLLs into the VSWebCache folder under Documents and Settings instead of usual bin folder under the project directory. When I go to the project's properties and try to change the path to the ...more >>

Converting Excel File to pdf
Posted by thomson at 12/29/2004 8:23:25 PM
Hi All, Is there any way to convert an Excel File to pdf in asp.net Thanks in Advance Thomson ...more >>

can this be done
Posted by Mike at 12/29/2004 8:09:04 PM
I'm creating a dataset and get my data from the db table such as PA, PA, WA, WA CA, DE, DE, DE, FL, WI. is there a way to do a select on that dataset and populate a drop down box such as CT, DE, FL, WI? i don't want to see multiple DE's or PA's, etc. thx ...more >>

Getting to offending code from a stack trace
Posted by murphy NO[at]SPAM murphysw.com at 12/29/2004 7:39:47 PM
My release version of an asp.net has started throwing a NullReferenceException. I get a stack trace in my browser that looks like this: [NullReferenceException: Object reference not set to an instance of an object.] QHOS.MUser.ResetUI(String curUserName) +143 QHOS.MUser.Page_Load(Object sen...more >>



How to implement Diagnostics Trace features in Whidbey
Posted by Mukund Patel at 12/29/2004 6:39:40 PM
Hi Friends, I am working on asp.net in .net studio 2005 (Whidbey). I want to write trace in file in my web application. How to implement Diagnostics Trace features in Whidbey. I have written following code in web.config. But it says System.Diagnostics is not a valid child element. <system.d...more >>

Cross-Browser Mask Edit Control
Posted by Tai at 12/29/2004 6:03:01 PM
Hi all, I have an ASP.NET web project that requires some mask control for entering Birthday, SSN, Phone number. I searched on Google and found some mask controls that worked very well on IE. But with Mozilla they did not work. Any body have any idea about these controls, or know where can i f...more >>

ungültiger_Schlüsselcode."
Posted by Marvin Massih at 12/29/2004 5:51:30 PM
Hallo, ich möchte aus einem Webservice bzw. einer ASP.NET-Projekt einen Crystal-Report drucken. Ich brauche keinen Crystal-Viewer oder ähnlichen Käse. Doch bereits der Aufruf von ReportDocument report = new ReportDocument(); schmeißt jedoch eine CrystalDecisions.CrystalReports.Engi...more >>

asp.net worker does not load up ...SIGH
Posted by sammy at 12/29/2004 5:23:07 PM
ok... so i restarted my server and i get a "Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailin...more >>

string.split and Environment.NewLine question.
Posted by Asha at 12/29/2004 5:21:02 PM
greetings... i want to split a new line from an input text area and here's what i did string.Split("\n \r ", ","); the result, nothing happen... then i tried this string.Split(Environment.NewLine, ","); and got the result what i wanted.. the question here is, why cant the 1st method...more >>

http error 500
Posted by Steve House at 12/29/2004 5:09:03 PM
What does it mean in visual studio 2003 when I try to create an asp web app and I get http error 500? Is there some permission I need to give my local site. Everything seems to be working on my client's web site and I have the most recent sharepoint files running. Thanks in advance, Steve...more >>

Weird behaviour: default.asp missing the dot in sendMail
Posted by Mike at 12/29/2004 4:57:42 PM
Hi We have our IIS5 web site sending out emails from its own SMTP Server. We have a bit of code (copy below if you are curious) which I think is quite standard to send out emails BUT it sends them out incorrectly. All its supposed to be doing is sending out an email with the following tex...more >>

Saving DataTable to database
Posted by Ben at 12/29/2004 4:20:24 PM
Hi All, I am looking for an elegant way to save a datatable to the database. The datatable consists of new rows and rows existing in the database, now i know how to differentiate between the new and old rows, but is there a way to send a DataRow[] collection...do i use sqldatareader..if so ...more >>

showModalDialog and asp.net
Posted by VV at 12/29/2004 3:08:26 PM
I' am having a problem with reloading asp.net page. First time when I open dialog with window.showModalDialog("dialog.aspx", [window], dlgfeat); Everything works fine, Page_Load is executed in dialog.aspx, but the second time, nothing happens and page is retrieved (probably from ca...more >>

Handling Client Side Errors
Posted by chuckdfoster at 12/29/2004 2:59:36 PM
Is there a way to handle client side errors from ASP.NET? For example, I recieve an error when trying to add an Outlook Event (via vCalendar) to a client PC if they don't have any calendar software installed. ...more >>

How do you access an application variable from a class?
Posted by Stu at 12/29/2004 2:30:57 PM
Hi, If I try to access an application variable from a class I get the error 'Name Application is not declared'. Is ther any (fairly simple) way of getting round this or do I have to pass the values in via properties every time I want to use them? Thank in advance, Stu lang: vb.net...more >>

COM Interop messes with IE hosted windows forms control
Posted by Dilip at 12/29/2004 1:59:31 PM
Hi I have a windows forms user control that is hosted in IE. This control uses COM Interop to access some RTC related interfaces. The control does not display itself correctly because of this COM reference. IF I remove all references to the tlbimp'ed COM dll, the control displays just fine...more >>

Question on textbox property.
Posted by Henry at 12/29/2004 1:55:04 PM
Hi. I've also posted this at another discussion board and here is the original question. ------------------------- "I have this problem and I don't know what I can do. First of all, I have a page with [ok] and [cancel] button, and 5 <asp:TextBox>'s and when an user makes changes to each...more >>

Problem doing DataBind on a control within a DataList?
Posted by Olav Tollefsen at 12/29/2004 1:44:56 PM
I have a Web Form with a DataList. Inside the ItemTemplate, I have a DropDownList control. <asp:DataList ID="ProductDataList" Runat="server"> <ItemTemplate> <asp:DropDownList ID="DropDownList1" Runat="server" DataTextField="PropertyValue" DataValueField="PropertyValueId"> ...more >>

Best way to check a session var on each page?
Posted by Jon at 12/29/2004 1:15:00 PM
I am setting a session var upon login that holds some data about the user. I need to check on every page to make sure the data is populated so if a user bypasses the login page they are redirected to login first! I know on each page load I can do a check of the session var and redirect if it'...more >>

Disable Back button for a particular inputs from user
Posted by rsaishyam NO[at]SPAM hotmail-dot-com.no-spam.invalid at 12/29/2004 1:12:46 PM
hi If a user logs into an aspx applicaiton and in the same browser goes to some other site say google.com and when he presses back button, he is able to come back to the application since the session values are still alive. How to make redirect the user to another page if he tries to enter in...more >>

Question
Posted by Manny Chohan at 12/29/2004 12:59:03 PM
I have a hyperlink column in the datagrid as follows bound to a column in thr database. How can i add another query string to it to send Row number of the datagrid to the target page: <asp:HyperLinkColumn Target="_parent" DataNavigateUrlField="HREF" DataNavigateUrlFormatString="detailspage....more >>

User Control Maybe ?
Posted by JJ at 12/29/2004 12:51:03 PM
Hi, I need to have a control that has a predefined list as a dropdown but with the ability to add a value to it all in one control. It would have a empty textbox part with a down arrow dropdown showing predefined list in it. Has anybody heard of one or created one like the one I describe?...more >>

date picker
Posted by ven at 12/29/2004 12:50:26 PM
Hello, I found a source of datepicker who opens a new window using java to select a date, but i saw a datepicker who doesn`t open a new window (dynamically opened on click), and i have a question maybe there is a tutorial how to write that datepicker? Ven ...more >>

regex: how to loop through individual matches
Posted by darrel at 12/29/2004 12:30:18 PM
I have some vb.net code that is running a regex, matching groups, and replacing them. I'm trying to come up with a simple script that will strip all attributes from all HTML tags. This is what I have: ============================================================= function stripAllAttribute...more >>

listbox problem
Posted by Bala at 12/29/2004 11:51:02 AM
Hi, i am getting this error when check the list item. below is the error message and code i am using. this line i am getting error.. If Trim(cmbGroupNo.Items.Item(j)).... error: BC30311: Value of type 'System.Web.UI.WebControls.ListItem' cannot be converted to 'String'. code: ...more >>

how to take a data from one window to another
Posted by Vadivel Kumar at 12/29/2004 11:46:42 AM
I have a aspx file which contains a listbox and text box, the functionality what i need here is, when i click that button, a window will opened and it will show lot of details with the checkboxes, and user will select appropriate checkboxes and presses the close button. once the close button is ...more >>

Centering popup windows
Posted by Chris Leffer at 12/29/2004 11:37:03 AM
Hi. I wrote a small routine that opens popup windows. The code works well, but I did a small change to center the popup window and this change does not work. I can't understand why. That's the code: Public Shared Sub Popup(ByVal page As Page, ByVal url As String, ByVal title As String, ByVa...more >>

Question for datagrid
Posted by Manny Chohan at 12/29/2004 11:29:02 AM
i have the following situatin: In datagrid i click on hyperlink button to navigate to the detail.aspx page which displays detailed information regarding item id passed from datagrid. Can i put arrows(up/down) on detail.aspx so that i can retrieve next/previous corresponding item in datagrid?...more >>

DataGrid ItemTemplate naming questions
Posted by Jim Bancroft at 12/29/2004 11:26:55 AM
Hi, I have a DataGrid that contains an ItemTemplate. Within the ItemTemplate I have a DropDownList. The relevant code looks like this: <asp:datagrid id="DataGrid1" runat="server"> ................ <Columns> <asp:TemplateColumn HeaderText="Division"> <ItemTemplate...more >>

Align right increasing height of cell
Posted by tshad at 12/29/2004 11:26:49 AM
I have a cell with 2 items in it: a textbox and a link. The link is actually a button (image), but for the example I am using a link, which is doing the same thing. Here is the stripped down version of my page that shows the problem: *******************************************************...more >>

Session timeout
Posted by Arne at 12/29/2004 11:15:05 AM
In the <sessionstate tag win web.config I set the timeout to 60 minutes. In the When does it expire? 60 minutes after the login, 60 minutes after the last session variable set or 60 minutes after the last page accessed?...more >>

Error
Posted by saf at 12/29/2004 11:15:05 AM
error on line 216???: if Trim(nyarr(1)) <> "" then Error after opgrading webserver on B-0ne look: http://www.klokkervej38.dk/default.asp, and see Error! <% arr=split(strMyNav,"|") max=ubound(arr) for j=0 to max nyarr=split(arr(j),";") if ubound(nyarr) = 2 then target = true els...more >>

alert pop-up box when closing the browser window
Posted by buran at 12/29/2004 11:03:48 AM
Dear ASP.NET Programmers, I am developing an intranet application using ASP.NET. I want to add such a functionality that the application displays a pop-up box to confirm when the user tries to close the windows using X box. I want the pop-up to be displayed when the user clicks on the X box of...more >>

load array into combo box
Posted by Bala at 12/29/2004 10:59:02 AM
Hi, In my module i have an array. i need to load this array value into my combo box. anyone give me a sample code. thanks bala array: ReDim GroupN5(299) GroupN5(0) = "214 PARTS " GroupN5(1) = "460 products" .... .... ...more >>

Obj Ref Not Set
Posted by JJ at 12/29/2004 10:31:04 AM
Hi, I am trying to feed retained values from an object i created into some textbox's. I get a Object Ref not set error. Plz take a look at the code: I have this in my main class global section: protected BLL.HoursEntry _userInput = new BLL.HoursEntry(); The following is in the Edit...more >>

Intranet Login using ASPdotNET (advice)...
Posted by The Eeediot at 12/29/2004 10:27:52 AM
Hello, folks! I am trying to design a login script / page for a set of = administrative functions on my company's Intranet. I need something = that is reasonably secure and I've been trying to rack my brains to come = up with a scheme. These functions are for a bunch of look-up tables, a...more >>

working in Visual Studio .NET and ASP.NET, the IDE
Posted by Chris at 12/29/2004 10:01:05 AM
does anyone know of a way to highlight a page of code (HTML) and have it "auto-formatted/structured" for better readablity? Instead of going back and tabbing all the indents myself, etc. (being lazy) When you have a lot of page code it would be nice to have this capaiblity, as sometimes my for...more >>

how to handle events fired on one page on another aspx-page
Posted by Ralf Müller at 12/29/2004 10:00:08 AM
Hi folks! I'am trying to figure out a way on how to keep my scolling position of the page AND all of it's scrollable divs during postbacks. Sadly it seems that div-scrolling can only be done in conjunction with absolute positioning of the divs which is definitely not what I want. But when usi...more >>

ConfigurationSettings in Class Library
Posted by Random at 12/29/2004 9:45:17 AM
I'm writing a class library for my web app data access, but don't want to hard code the database connection string in the class. Nor do I want to pass the connection string in from the web app every time I access it. I want to define the connection string in the web app ConfigurationSettings...more >>

ASP.NET 1.1 on 64 bit?
Posted by Bob at 12/29/2004 9:43:09 AM
Is ASP.NET 1.1 available on the 64 bit extended version of Windows 2003 Server? When I install VS.NET 2003 I then get Service Unavailable from IIS when navigating to the main under construction site (http://localhost) and I get error 'HTTP/1.1 503 Service Unavailable' when trying to start a ne...more >>

easy one I think! Property not recognised in HTML view
Posted by louise raisbeck at 12/29/2004 9:43:07 AM
Hi there. I am a little confused. SelectedValue is a property of ListBox and dropdownlist. However it isnt in the list of properties in intellisence (html view i am not talking about code behind where it does list it). So when I create my asp:ListBox and try to set SelectedValue=(to a databind...more >>

Binding
Posted by Kiran at 12/29/2004 9:37:17 AM
Hi, I am a newbie to asp.net. Can someone explain me (1) what is binding, types (2) differences between late and early binding. (3) Is this late and early binding same for VB.net and C#.net, if no what are the differences. one last question, is there any link that gives me detail...more >>

using EXCEL SHEET with ASP.NET
Posted by pmud at 12/29/2004 9:33:06 AM
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the SQL DATABASE, probably by the click of a button. Is this possible? & what is the BEST APPROACH ...more >>

The remote server returned an error: (401)
Posted by Paul at 12/29/2004 9:19:05 AM
Hi, This is driving me crazy. I have a solution that works great on one site, but doesn't on another site. Same exact code on two different windows environments. Here is the code: Private Sub DoStuff() Dim sURL As String Dim XMLnews As XmlDocument = New XmlDocument...more >>

datareader - connection leaks in DB
Posted by sri_san NO[at]SPAM mailcity.com at 12/29/2004 9:10:30 AM
Hello, I have a bunch of similar functions as listed below. This one returns a string but lot of functions return datareader. I close the reader, the connection and set it to nothing but the connection still seems to be hanging. ------------------------- Public Function Login(ByVal email...more >>

how do i display a date field using databind.eval ?
Posted by natalie NO[at]SPAM write-image.co.uk at 12/29/2004 9:06:38 AM
Hi How do i display a date field using databind.eval ?...more >>

Microsoft Data Access Blocks (SqlHelper) - Executing 2 SQL commands
Posted by FyinsFlip at 12/29/2004 8:26:18 AM
Microsoft Data Access Blocks (SqlHelper) you can do an insert and get the new row ID without using a stored procedure? DataMembers.Car_IDObject = SqlHelper.ExecuteScalar( _connectionString , "INSERT INTO tCar (name) VALUES ('Ford') SELECT CAST(@@Identity AS INTEGER) ", FillSqlParameter()); ...more >>

disable the back button provide the users with my own button to go back.
Posted by sylvia sil at 12/29/2004 8:26:11 AM
Disable the back button instead provide the user with my own button to go back. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Maintain Single Login in different Live Servers
Posted by Pronojit Roy at 12/29/2004 7:53:07 AM
Hi Xperts, I have multiple Web Sites in different Live Servers. I want to login any of the sites, and then I will access all the other sites without giving any more login information (i.e I want to maintain the session state in all the web servers).Web Sites are developed in ASP.Net using C...more >>

multiple Web Sites in different Live Servers
Posted by abhijit at 12/29/2004 7:53:03 AM
Hi Xperts, I have multiple Web Sites in different Live Servers. I want to login any of the sites, and then I will access all the other sites without giving any more login information (i.e I want to maintain the session state in all the web servers).Web Sites are developed in ASP.Net using C...more >>

Viewstate for a control
Posted by louise raisbeck at 12/29/2004 6:45:01 AM
Hi I know there are many posts on this but cant seem to find simple answer. I have lots of text boxes in a datalist edittemplate control. i dont want to do an update statement for all of them, as the user may only change one value. I know you can use viewstate to check if value has changed be...more >>

Validating Page Dynamically
Posted by matt.torline NO[at]SPAM bissell.com at 12/29/2004 5:53:49 AM
I would like to use validation controls when certain events are fired and turn the validation off when other events are fired. I have sent the page attribute for validateRequest="false", and used the Page.Validate and Page.IsValid in the events that I want to use the validation, but the validati...more >>

Converting a String to a Date in VB.Net
Posted by CG at 12/29/2004 5:25:01 AM
Hi, This seems quite simple but I don't know what I am doing wrong. I have a string as "15122004" I want to convert this to a date. I have Option Strict On. How can I convert this string to a date in format ("dd/mm/yyyy") without turning off Option Strict? Thanks....more >>

can't run aspnet_setreg on xp i get a "not valid win32 error"
Posted by Tom at 12/29/2004 4:23:06 AM
I can't debug my asp.net projects. for some reason i'm getting an error saying that i don't have permission and i should be added to the debuggers group. I added my domain user, my aspnet user and the iisuser to the dubuggers group and administrators group but nothing helped. I read here that...more >>

username
Posted by Bart at 12/29/2004 3:05:04 AM
our users are always logged on in a windows domain. I made a webapplication, and i have to get the current username from the person who is logged on. I tried this Dim currentUser As String = User.Identity.Name Response.Write(currentUser) But it returns an empty string. The strange thing is : ...more >>

Image.FromFile
Posted by bsmalik at 12/29/2004 12:15:02 AM
Hi All, I am trying to do a simple thing. ----------------------------- Dim NCImage As System.Drawing.Image = System.Drawing.Image.FromFile("NC.jpg") ---------------------------- I have the image NC.jpg and its a valid image but the error i get is FileNotFound. Can u plez tell me whats wron...more >>


DevelopmentNow Blog