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 2004 > threads for wednesday july 28

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

Architecture question
Posted by William Gower at 7/28/2004 9:52:44 PM
I have the following situation. a.. A web form called UserInfo b.. A controller class called WebUIController c.. A Business Objects class called MemberBO d.. A Typed datasets class called MemberDS e.. A data access layer class called MemberDALC UserInfo calls a method LoadMember whi...more >>


Why put references in two places?
Posted by Bruce W.1 at 7/28/2004 7:41:53 PM
What's the point of putting a reference (eg. to System.Data) in the Solution Explorer AND at the top of the code files (using in C# and Imports in VB)? Is there some purpose to this redundancy? What breaks if one of them is omitted? Thanks for your help....more >>

Duplicate BORDER attribute in WebControl.Table
Posted by Bill Endow at 7/28/2004 7:37:03 PM
I've noticed that the WebControl.Table class always outputs the attribute "border="0"", and I cannot stop it from doing so, no matter what I try. I end up with generated HTML that looks like: <table border="1" border="0"> For example, create a new server control that inherits from System.Web....more >>

Finding a space in T-SQL
Posted by Solel Software at 7/28/2004 7:15:04 PM
Hello, If I have a string "Mr. Bill Gates" stored as an nvarchar variable how would I split it into two strings "Mr. Bill" and "Gates" using T-SQL? I assume I could use Substring but to use that I would have to know the index of the last whitespace and don't know how to get that index. Any su...more >>

Question: wrap text in list box
Posted by VB Programmer at 7/28/2004 6:48:17 PM
Is it possible to wrap the text in a list box if it's too long? ...more >>

Protecting database connection string
Posted by Krista Lemieux at 7/28/2004 6:22:50 PM
Hello, I know this is probably a hudge topic to discuss and there are lots of different ways of implementation, but I still would like to ask and hear the most commonly used techniques for this. Basically I have an ASP.NET application, and my connection string currently is stored in a con...more >>

Timeouts: session and authentication
Posted by mircu at 7/28/2004 5:43:36 PM
Hi, I need a quick solution to make my application behave correctly when one of these timeouts occurs. I have some logic in session_start but when the authentication cookie timeouts the user is redirected to login page and after successful login the session is not started. I'd like to have ...more >>

very strange problem
Posted by Viktor Popov at 7/28/2004 5:41:45 PM
Hi, When I place the following coede in Page_Load method it doesn't populate the DropDownList and when I place it in Button1_Click method and I push the button after the page is loaded the DropDownList is populated. What I should do in order to populate the DropDownList when I reach this WebFo...more >>



dropdownlistbox in a datagrid
Posted by Mike at 7/28/2004 5:29:05 PM
I have a dropdownlistbox in a template column of a datagrid. I need to be able to respond to the selecteditemchanged event of the dropdownlist, but I am having trouble doing that. I thought I would be able to use the OnItemCommand event, but that doesn't seem to work. Can someone please point me in ...more >>

RFC: persisting a dataset
Posted by Eric Sabine at 7/28/2004 5:26:42 PM
I guess this is a request for comment (suggestion) type post. When a page loads, a dataset is filled and databound to a combobox. The dataset has 4 columns. Later in the application the user will do something that requires me to grab the selected data from the combobox and search against tha...more >>

Computing SQL nulls
Posted by Solel Software at 7/28/2004 5:20:08 PM
Hello, I have a table CREATE TABLE [dbo].[RequestedServices] ( [ServiceID] [int] IDENTITY (1, 1) NOT NULL , [Name] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [FollowUpID] [int] NULL ) ON [PRIMARY] and a query Select Name, FollowUpID from RequestedServices ...more >>

win app and web app
Posted by mimi at 7/28/2004 5:15:42 PM
I have a com wrapper used to access a file on remote machine. When I call com object from a win app, it works fine. But it give me an error when accessing the file from web app. I think that must be permission problem, so I set in the web.config file that impersonate=true and username, passwor...more >>

HOWTO: Make Reports that can pass parameters at Run-time? :: ASP.NET + CR.NET
Posted by Don Wash at 7/28/2004 4:35:32 PM
Hi There! I'm using built-in CrystalReport that comes with VS.NET 2003 to create reports for use it ASP.NET. How do I configure a graph in the Report (*.rpt file) so that I can pass the SQL Query as an argument from ASP.NET Application? Please advice! Many Thanks, Don ...more >>

ASPNET Permissions
Posted by Keith at 7/28/2004 4:29:39 PM
I have a small ASP.NET app that someone designed which I need to run on our server. The server is Windows 2000 Server and has the .NET Framework installed. How can I give ASP.NET permission to run? On my dev machine I give the local ASPNET user read/write permission to the folders it need...more >>

Help with validator
Posted by News at 7/28/2004 4:24:53 PM
Hi, I have a page with one <form></form>. This page contains 2 part forms with 2 buttons, one for each part form. <form> Part 1 <date> <requiredfiledvalidator> <button1 OnClick="btn1_OnClick" > Part 2 <name> <address> <button2 OnClick="btn2_OnClick"> </form> Part 1 of the ...more >>

datagrid on aspx
Posted by Tim Wallace at 7/28/2004 4:14:32 PM
I am using the asp:datagrid on an aspx page. I thought that I was able to select items in the grid, similar to a list box (i.e. having the whole row highlighted). Am I mistaken? Or am I just missing some key property settings? Or something else? Tim ...more >>

set web project under source control
Posted by VladimĂ­r_Kolesnik at 7/28/2004 3:57:02 PM
Hi, there we need help concerning setting project under source control. We want to have a project on the server, and developers in the local = network working on this project. We decided to use strategy officialy = called "Isolated Development". We studied help in Visual Studio .NET = called "...more >>

Class Library
Posted by Brian Shannon at 7/28/2004 3:49:43 PM
I am playing around with class libraries trying to understand how they work. I created a class library, library.vb. I placed the library.dll into the bin directory and set my reference. If I update the library.dll can I Just place the new .dll in the bin directory or do I need to recompile m...more >>

What is DESIGNTIMEDRAGDROP?
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 7/28/2004 3:44:00 PM
Hello, Out of curiosity, what is DESIGNTIMEDRAGDROP? I can't find anything on MSDN or Google. It appears in some (but not all) of my table declarations in the HTML view. For example: <TABLE id="tblMain" cellSpacing="0" cellPadding="0" width="100%" border="0" runat="server" DESIGNTIMEDR...more >>

Windows
Posted by Josh at 7/28/2004 3:36:41 PM
Help Please... I have a list window and a details window. Click on an item in the list and the details window opens ok. Click on the list again and the details window repopulates ok, but... the details window is behind the list window. How can I bring it to the front? Help appreciated...more >>

Repeater Control Question
Posted by Z D at 7/28/2004 2:59:48 PM
Hello, I have a checkbox control as one of the items within my repeater control. I've set the AutoPostBack=True on the checkbox. How do I access the event (so that I can run some code) whenever someone clicks on the checkbox? Also, how do I determine which checkbox was clicked so that I ...more >>

Datagrid - moving a row
Posted by Philip Rayne at 7/28/2004 2:51:19 PM
I have a datagrid that is populated with the columns automatically generated. It is bound to a dataset (populated via XML). I would like to physically move a row up and down a grid at run time. I have added the push buttons to do this, and have the ItemCommand event identified as where I nee...more >>

Insert not working.... :(
Posted by Paul King at 7/28/2004 2:41:48 PM
Hi there, I have created an ASPX file that contains two ASP textbox fields and inserts those into my database. The fields are Venue Name and Venue Date: I believe the Venue Name is ok, but when I enter in the Venue Date this may not be working due to formatting etc. For example I enter i...more >>

Unabe to install ASP.NET 1.1
Posted by Alexander Kaplunov at 7/28/2004 2:20:09 PM
I have installed .NET Framework 1.1 I have also installed .NET Framework Redist version 1.1 from www.asp.net site. Now, when I try to create a web application it tells me that the webserver is running ASP.NET 1.0 My question is: how can I install ASP.NET 1.1 on my webserver? I thought that .NE...more >>

Custom Cultures under ASP.NET 2.0
Posted by JezB at 7/28/2004 2:04:25 PM
Could anyone tell me how to implement custom cultures in ASP.NET 2.0, such that it automatically picks up application and page-level resources from the Resources and LocalResources application repositories ? ...more >>

asp.net equivalent for Application("Root")
Posted by TomislaW at 7/28/2004 1:56:02 PM
What is asp.net equivalent for Application("Root") in asp? ...more >>

AutoPostBack CheckBoxList
Posted by tma at 7/28/2004 1:44:25 PM
I'm using the CheckBoxList for customers to choose optional features and a label control to update the price as the user selects options. What I'm wondering is how, after the postback and the new calculation, I can get the browser to scroll down to the CheckBoxList instead of return to the top of...more >>

Two Users Login with same UserID
Posted by A.M at 7/28/2004 1:40:45 PM
Hi, I am using WebForms authentication. What would be the best way to prevent two person login with same userID at the same time? Thanks, Alan ...more >>

Where do you keep your solution file?
Posted by Bruce W.1 at 7/28/2004 1:40:05 PM
I've been keeping my solution .sln files for ASP.NET projects off in some remote location, along with all my other .sln files. This confuses things and I think it really belongs with the web app in wwwroot. It would make more sense anyway. What's the best practice on this, and is this wha...more >>

Two different loginURLs in <authentication>
Posted by Gawel at 7/28/2004 1:31:15 PM
Hajo, I know that I can not have two different <authenication> sections in ONE application. But I need to define two different login pages for two different subdirectories. Is it any workaround that allows me to do it using Forms authenication? thanks in advance Gawel...more >>

Listbox NOT retrieving Selected Index
Posted by Chris Thunell at 7/28/2004 1:26:55 PM
I have a Listbox on an vb aspx web page. When i select something in the listbox i do not get a selected value or selected index. The selected index is always -1. Any thoughts would be greatly appreciated! Chris Thunell cthunell@pierceassociates.com Here is my code: loading: Me.lbPend...more >>

Problem with coding
Posted by Bart Schelkens at 7/28/2004 1:25:16 PM
Hi, I have a datagrid on an asp-page. I build my columns as templatecolumns. One of my columns is supposed to display an image. The name of the image is located in my database (i.e. T6000.jpg) My images are all located in a folder called "Images". Now when the column is created that should d...more >>

Building a Class
Posted by Brian Shannon at 7/28/2004 1:08:23 PM
I am trying to compile a class for the first time and having some problems understanding what to do. Below is my class to start: Imports System Namespace WorkerFunctionsClass Public Class WorkerFunctions Function CreateOrderNumber (ByVal x as String, ByVal y as String) Return x & y...more >>

how can you use one webform to create a multi-view web application
Posted by Shawn at 7/28/2004 1:06:03 PM
Hi All; i am working on a support ticketing system and here is how i am trying to architect it. what i want to do is have a single web form interface that will hold the menu at the top, a view to the left and a view to the right. both views(forms) will change depending on the choices the user make...more >>

Visual Studio .NET - Code Alignment
Posted by Bijoy Naick at 7/28/2004 12:42:33 PM
I noticed that VS.NET starts to format/align code/HTML by itself.. Is there a way to disable this? Also, once a lot of code is pasted into it, is there a way to auto format/align the text so its more readable? *** Sent via Developersdex http://www.developersdex.com *** Don't just participat...more >>

Datagrid sorting
Posted by smay at 7/28/2004 11:20:02 AM
I have a datagrid AutoGenerateColumns=False and the columns are created in code behind. The sort command method is not being fired when the headings are clicked, and then the grid completely disappears. If I use AutoGenerateColumns=True the sorting works fine, but this is not an option for this pa...more >>

referencing asp controls inside java script
Posted by Rea Peleg at 7/28/2004 11:10:17 AM
Hi all I am able to get a forms elements collection through 'document.forms(0).elements.length' But then can not access individuel elements like: document.forms(0).elements(1),value etc. I always get a massage no such object exists (null reference)... These elements are asp controls - does thi...more >>

Another easy one: make a column into a hyperlink.
Posted by Jason at 7/28/2004 11:07:51 AM
I have an asp.net page that has a datagrid on it. The datagrid is populated at runtime from Active Directory. I need to set one of the columns as a hyperlink while appending a mailto to the data within that particular column's cell. That is, if the column is named 'Email' and one of the row...more >>

Weird problem Asp.net, certain users, code behind
Posted by Don Munroe at 7/28/2004 10:58:49 AM
This one has me stumped. I have three web applications running on two different servers. The first that works fine is hosted by a .Net hosting company. Everyone that uses it has no problems hitting the site. The other two applications are running on my personal server which has Windows 2003, ...more >>

Concatenation is dropping a single quote
Posted by Paul at 7/28/2004 10:42:34 AM
I've got some code that adds a single quote to any ad hoc queries that appear to look like hacks. For instance, if somebody enters ' OR 1=1 -- then this code adds another single quote the string to neutralize it. The neutralized string becomes '' OR 1=1 --. The problem is that when I try t...more >>

appSettings key in web.config causes error
Posted by Eric Sabine at 7/28/2004 10:28:18 AM
the second I add <appSettings> </appSettings> to my web.config file (just after the <system.web>), my web application will no longer run. I get an error that reads: Error while tyring to run projectL Unable to start debugging on the web server. Server side-error occurred on sending d...more >>

Optimizing using the IncrementalBuild property
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 7/28/2004 10:27:13 AM
Greetings, I have an enterprise-wide ASP.NET app that I'm trying to optimize as much as possible. MSDN states that the IncrementalBuild property "enables incremental compilation, in which only methods that have changed since the last compilation are recompiled." Is this to just speed up co...more >>

pause a loop
Posted by GrantMagic at 7/28/2004 10:18:14 AM
I am implementing a loop through a dataset. I require this loop to pause for 10 seconds within each loop. I tried this using a while statement within my for loop, but this punishes my processor for the duration of the statement. Is there a way to pause a loop for a given duration? ...more >>

Retrieve a value from a Hyperlink
Posted by Mariame at 7/28/2004 9:37:28 AM
Hi Everyone, i have a hyperlink (client side) that i want it to pass a value to other webpage (server side) , so i use the following code: < a href="url?Variable" > Page Name < / a > So how can i retrieve this value from the other webpage??? Thx in Advance ...more >>

Does session cookie persist when after session times out?
Posted by Earl Teigrob at 7/28/2004 9:25:04 AM
I am trying to find storage mechanism that will store a variable until the browser window is closed. A query string variable would be my first choice for this but that is not easily done in my situation. Would a session cookie do the trick? From what I have read, it is persistent until the browser w...more >>

Editable datagrid
Posted by Gary at 7/28/2004 9:20:33 AM
hi how to make a row editable in a datagrid when the user clicks on any cell. ...more >>

How can i call a Trigger in ASP.NET ?
Posted by Ricardo Corsi at 7/28/2004 9:18:04 AM
Hi, It is possible to call a trigger (inside a sql server..) with asp.net ? how can i do that ? thks! ...more >>

Export from crystal report to pdf
Posted by Mandar at 7/28/2004 9:18:03 AM
I am trying to export crystal report to pdf. but i am getting folloing error: "Error in File C:\DOCUME~1\MKM-BA~1\ASPNET\LOCALS~1\Temp\temp_0c6b2c59-df8a-4b26-a570-a2189ee212ac.rpt: Access to report file denied. Another program may be using it." It works with other reports but not this one. Co...more >>

Debugging stored procedure in visual studio?
Posted by bredal Jensen at 7/28/2004 9:02:46 AM
I have a stored procedure wich is inoked through my asp.net code. The stored procedure failed and it quit extensive. I 'm therefore wondering if there is a way to step through the stored procedure from visual studio.net or maybe from sql server 200 itself? Thanks in advance ...more >>

asp.net source code?
Posted by Jay at 7/28/2004 8:51:40 AM
Is it possible to view the source code for .NET classes? Thanks. Jay...more >>

populate DropDownList from DB
Posted by Viktor Popov at 7/28/2004 8:49:51 AM
Hi, Could someone tell me how can be populated DropdownList from Data Base. I use ASP.NET/C#/MS SQL SERVER. Thanks! Viktor --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.721 / Virus Database: 477 - Release Date: 16.7...more >>

Server Side button calling page_load before calling it's own click event.
Posted by Ryan Ternier at 7/28/2004 8:34:21 AM
I have a button event: Public Sub SwitchItem(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim btnTest As New Button Dim astrTest As String() btnTest = CType(sender, Button) astrTest = btnTest.ClientID.Split("_") strControlsToEdit = astrTest(2) 'Find...more >>

dropdowns
Posted by Brian Shannon at 7/28/2004 8:28:53 AM
I want to use auto postback with a dropdown box. Let's say index 3 is currently selected. Is there a way to reselect the current value so a postback occurs. Right now it only changes with the SelectedIndexChange! Any ideas? Otherwise I need to select a different index and reselect the or...more >>

How to get all information about user from DC
Posted by vaidas gudas at 7/28/2004 8:27:43 AM
I have ASP.NET page, and authentification is by windows, but from system.identity.name I can just user's domain name and user's login name. How to get full description from Domain Controller Like user Name and Surname and E-mail if we using Exchange. DC is on Win2003 and Exchange version is ne...more >>

New window, referenced many times? (Easy)
Posted by Jason at 7/28/2004 8:10:37 AM
I'm using asp.net to create a staff directory based on Active Directory, and I'm sure this is an easy question, but I can't seem to find anything about it in the newsgroups: I know it's possible to create a new ie window when a button is clicked, and then populate it with data from the first w...more >>

AM PM does not appear on page
Posted by Razak at 7/28/2004 8:09:29 AM
I wonder if any of you have had this problem before. I have a variable dt which reads the scmalldatetime field in the database. I want to show the date & time on aspx page in the format 'dd/MM/yyyy hh:mm tt' using this statement: dt.ToString("dd/MM/yyyy hh:mm tt") But the AMPM designat...more >>

Authentication
Posted by Joe at 7/28/2004 7:51:55 AM
Guys, how can I authorize users in an intranet to access a web page without the username/password dialog coming up and at the same time get the NT Login of the user Thanks...more >>

Primary Key in DataGrid
Posted by Ryan Riddell at 7/28/2004 6:45:03 AM
I am using the DataGrid control from 4guys (http://aspnet.4guysfromrolla.com/demos/RowHighlighter.aspx). I want to display 2 columns and allow editing. The only column I want the user to be able to change is the second column. I made this work via ReadOnly="true" for the first column. The seco...more >>

View the ViewState of and ASCX
Posted by ronniek NO[at]SPAM netvision.net.il at 7/28/2004 6:35:03 AM
Hi, I have a web form which contain several ASCXs inside I use the ViewState to keep some data between states one ASCX is a menu bar which provides a menu selection then the Page itself need to get this value and do something then another ASCX need to display some information acording to th...more >>

Re: Two different loginURLs in <authentication>
Posted by Sam Collett at 7/28/2004 4:50:26 AM
You can check the ReturnUrl QueryString paramater on the login page and then redirect to a different page, i.e. private void Page_Load(Object sender, EventArgs e) { string ReturnUrl = string.Empty + Request.QueryString["ReturnUrl"]; if (ReturnUrl!=string.Empty) { // if news admin if (Return...more >>

Difference Between UserControl and Include Page
Posted by Shiju Poyilil at 7/28/2004 4:09:04 AM
what is the difference between UserControl and Include Page . Rgds Shiju ...more >>

User Identity
Posted by Joe at 7/28/2004 3:58:36 AM
I check for the NTLogin of a user by Page.User.Identity.Name, but when I put the app on the server the value for Page.User.Identity.Name is "" I had the <allow users="*/> attribute commented out on my machine and had <deny users="?"/> how do I do this on the server to get the use...more >>

Fire event when clicking on the specific cell
Posted by tenzeel. at 7/28/2004 3:02:02 AM
i wants that the Event would fie when we click on DataGrid using Asp.net without using any select command or hyperlink. i just want that user click on the specific cell of datagrid then the even occurs for cell and tell us which cell have, we click thanx tenzeel....more >>

Problem with datagrid and TemplateColumns
Posted by Tim::.. at 7/28/2004 2:57:04 AM
Hi can someone tell me how I get the values from a datagrid using template columns??? I tried like this but I keep getting Input string was not in a correct format. I don't think I'm doing this the correct why when it comes to using templatecolumns can someone please HELP! Thanks! ...::...more >>

Import reference & Page directive
Posted by Horace at 7/28/2004 2:31:01 AM
Hello Does anyone know how to remove (or make more general) both the Imports clause (in a class .vb file) and the Page directive (specifically the Inherits clause in a web page .aspx file). Because we have a test and production region both residing on the same machine, each time I need to p...more >>

how to reference asp controls in javascript ?
Posted by Rea Peleg at 7/28/2004 2:29:49 AM
Hi all I need to reference web form (server side) controls, inside client side javascript, in order to enable some of them according to some condition. I tried referencing through document.form.ctrlName.enabled = true but got massage ctrlName is null or not an object?? Same with document.all('...more >>

Clear DataGrid
Posted by Lee Price at 7/28/2004 1:57:04 AM
This is with regard to my previous post for resetting my DataGrid, and I was adviced to use the clear function on DataGrid items by Sachan The datagrid does not have a Clear function and I get the following error DataGrid1.Items.Clear(); (186): 'System.Web.UI.WebControls.DataGridIte...more >>

Weird problem IIS 6, Asp.net, certain users, code behind
Posted by Don Munroe at 7/28/2004 1:14:43 AM
This one has me stumped. I have three web applications running on two different servers. The first that works fine is hosted by a .Net hosting company. Everyone that uses it has no problems hitting the site. The other two applications are running on my personal server which has Windows 2003, ...more >>

if condition depending on DataBinder
Posted by Theodor Ramisch at 7/28/2004 1:10:50 AM
Hi there, i got a Repeater control which repeats through some rows and should display a WebControl depending on a value of the row: It should be something like that: <asp:Repeater ID="Filters" runat="server" DataSource="<%#obj.arr%>"> <ItemTemplate> <% if(DataBinder.Eval(Container...more >>

dynamic form generation
Posted by Venus at 7/28/2004 12:58:47 AM
Hello, Thanks for your reply. I understand that a control can be created dynamically in several ways: 1) using StringBuilder 2) using Controls.Add 3) using ASP PlaceHolder But this is just for the controls and not for the form itself. What I am trying to achieve is to create a...more >>

VB Code Example to retrieve SessionID needed..
Posted by Daren Hawes at 7/28/2004 12:33:41 AM
Hi I need a quick code example how to get the Session ID from an ASP.NET page in VB. Thx *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Q : Error While Writing to CUSTOM EventLog
Posted by Marauderz at 7/28/2004 12:32:09 AM
OK this just seems to be a common question being asked around here, I've tried Google Grouping the question but I still haven't came up with a solution yet. So here goes... I'm getting the Security Exception about being Unable to Access a Registry Key when trying to write to my custom event lo...more >>

All I want to do is get the SessionID!
Posted by Daren Hawes at 7/28/2004 12:03:35 AM
Hi Guys. Using VB how can I get the session id? Can I use Request.Session.SessionID? IE Textbox1.value = SessionID *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>


DevelopmentNow Blog