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 > september 2005 > threads for tuesday september 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

migrating to asp.net 2.0, namespace problem
Posted by MilanB at 9/27/2005 10:44:03 PM
Hello I try to compile 1.1 project to with new VS. 2005. But namespaces that worked prefectly in 1.1, can be found in 2.0. I noticed that in new 2.0 there are no namespaces for page classes. Can some one explan me how I can access another page in 2.0. Thanks Milan...more >>

Googable Databases
Posted by Wessam Bahnassi at 9/27/2005 9:49:42 PM
Greetings people, I have a forums website built with ASP.NET. The forums data is stored in an MSSQL database. I want to allow search engines (e.g. google and the likes) to be able to display results from the forums data, so when people google for something that has been discussed in my web...more >>

access session from validator
Posted by Fred at 9/27/2005 9:08:21 PM
hi, is there some way to read/write to/from the session object in custom validators TIA...more >>

IMPORTANT! 2.0 Login Control Has No Cancel Button
Posted by clintonG at 9/27/2005 8:26:22 PM
This is an appeal for peer support sent to Microsoft as will be noted in closing. The Login control does not include a Cancel button. The only option is to convert the Login control to a template which is not such a bad thing in itself but it means all other controls in the application m...more >>

Clock on the web page
Posted by MasoodAdnan NO[at]SPAM gmail.com at 9/27/2005 8:01:48 PM
Hi, I want to build a test page where I want to show the time remaining to complete the question, and once the remaining time is 0 seconds, I want to process few things on the page. How can I achieve this functionality? Is there any article that somebody can point me to? Thanks ...more >>

MS Access trouble
Posted by Wessam Bahnassi at 9/27/2005 7:40:40 PM
Greetings, I'm trying to insert values into an MDB with ASP.NET 1.1, and the OleDb Jet 4 provider. However, whenever I issue and INSERT INTO statement I get the exception: "Operation must use an updateable query." This is my code: string connString = "Provider=Microsoft.Jet.OLEDB.4.0;Da...more >>

aspx Error Message
Posted by Mark at 9/27/2005 7:29:03 PM
When the following VB code is executed (code from an aspx page), the following error message is issued: "Microsoft Access can't open the database because it is missing, or opened exclusively by another user. " The Access database is not opened by another so I don't know why it is being is...more >>

Enteprise Library Data Access @@Identity
Posted by Liming at 9/27/2005 7:08:45 PM
Hello all, I have a need to use "select @@identity" to get the auto id on the row that I just inserted. But for some reason, I always get back 0. I used MS Access. Please advice. Database InvestmentsDb = DatabaseFactory.CreateDatabase( "Investments" ); using (IDbConnection connection = Inv...more >>



table vs table
Posted by rodchar at 9/27/2005 6:38:01 PM
hey all, what is the difference between the table on the webform toolbar and the html table? when would you want to use the webform table control? thanks, rodchar...more >>

how do i check this..
Posted by rodchar at 9/27/2005 6:36:02 PM
hey all, i have crystal report on my webpage with the option to print it to pdf. how do i check in my code that if the user doesn't have adobe to let her know that she needs it? what it does now is prompt a download of the aspx page which has nothing to do with anything? thanks, rodchar...more >>

my webform
Posted by rodchar at 9/27/2005 5:48:02 PM
hey all, i have a simple webform that has a textbox on it where i can type in notes and when i try to type <button onclick="++this.value">0</button> "it errors out saying potentially harmful code" how do i get around that? thanks, rodchar...more >>

Long Time To Create New ASP.NET Project
Posted by Scott M. at 9/27/2005 5:39:37 PM
Can anyone tell me what would/could cause the creation of a new ASP.NET Project (VB .NET within VS .NET) to take an excessively long time (over 45 seconds)? We are using Windows XP Pro. Let me rule out right away the PC hardware (we're using brand new machines with plenty of RAM). Tha...more >>

Building a datagrid in code
Posted by Tina at 9/27/2005 5:23:34 PM
I'm developing an asp.net ascx control that will allow editing of any database table. After getting table names and columns from INFORMATION_SCHEMA I have to build a datagrid in code consisting of template columns with a textbox in each ItemTemplate. For each column I build the following c...more >>

The Operation has timed-out calling web service
Posted by Joe at 9/27/2005 4:53:31 PM
I'm running XP and Windows 2003 servers. These calls did work up until a certain point which we can't track back now. There were no code changes at all to the service. The service can be called and tested in the browser from the server and it works fine. Any suggestions? ...more >>

Serializing Collections with Interface members
Posted by Akshay Kumar at 9/27/2005 4:44:48 PM
I have a collection class and in order to make it type safe etc , I only add and retrive members of Interface types. But during XMLSerialization I get errors. Is there any workaround ? public class OrgRatingCollection:CollectionBase { public void Add(IRating item) { this.Li...more >>

Sending email from within a WebService
Posted by Joe at 9/27/2005 4:03:16 PM
(sorry for the dual post here and the webservice NG. I meant to send to both at the same time) I have a method which sends email to & from a specific account. All was working fine until the server was upgraded to an AD/DNS server. Now the email never goes through. I can run the same code fr...more >>

Could not use ''; file already in use
Posted by Miro at 9/27/2005 3:39:02 PM
I've read a couple of threads on this error but none of them could help me so I'm posting myself. When I try open and read (not update) an ACCESS database on a network share I occasionally get: "Could not use ''; file already in use." error. This always happens when the database is op...more >>

Question about Response.Write
Posted by Terry Olsen at 9/27/2005 3:16:09 PM
Is there any way to make response.write NOT be the first thing on the page? I have a page with the title and a sub title (not labels or anything, just typed into the designer). I want the response.write text to appear below the titles and formatted (bold, sized, centered, etc). Thanks. ...more >>

Textbox and OnTextChanged
Posted by MattB at 9/27/2005 3:11:34 PM
Hi. I'm working on an intranet application that requires a user to input information about themselves. I have a user control with a couple of textboxes that I want the user to enter their weight into. One is for Lbs and one is for kg and I'm using the OnTextChanged event to populate the othe...more >>

share files with winforms project
Posted by Steve at 9/27/2005 2:00:06 PM
It would appear that a web app copies files into it's project folder. Is there a way around this? I have source code in other projects that I would like to use in my web app. How do people deal with this? Thanks, Steve ...more >>

Check if user is a member of a domain group
Posted by Vinny Vinn at 9/27/2005 12:51:06 PM
I am writing a C#/asp.net app.I have a requirement to check if the user is member of specific Domain group,how can this be accomplished? I tried the following and it always returns false ,even if the user is part of the group. WindowsPrincipal wp = new WindowsPrincipal(WindowsIdentity.GetCur...more >>

How to only refresh portion of a .aspx web page?
Posted by Andrew at 9/27/2005 12:17:01 PM
Hi, friends, I have a big problem: Based on a user's selection, portion of a web page need to be refreshed. For instance, if a user select Math, all avaible Math classes will be populated in the list. However, the rest of this web page does NOT need to change. Since all info in this pag...more >>

how session cookie is stored?
Posted by jrefactors NO[at]SPAM hotmail.com at 9/27/2005 12:01:51 PM
There are two cookie types: 1) session cookie. 2) persistent cookie is the same as tracking cookie? Is that correct? For windows machine, the files in C:\Documents and Settings\Administrator\Cookies are all persistent cookie, it doesn't have session cookie? How session cookies are store...more >>

Directoryinfo addattribute
Posted by Lyners at 9/27/2005 11:57:04 AM
I have code that retrieves all of the file names within a directory. After retriving them, I display the information in a datagrid. What I would like to do is add an extra output column on the directory info that would contain the file name without the extension. Can I add an attribute or an e...more >>

include HTML code from html page
Posted by Kevin at 9/27/2005 11:14:16 AM
How do I include mb.html if I check file is existed? I'm assuming I do = this in codebehind, but how? Basically if the file exists, it should display the page that will = include mb.html. -------------------------------------------------------------------------= ------------------...more >>

DropDownList selected value in a datalist
Posted by Chris Kettenbach at 9/27/2005 11:09:32 AM
Good morning all, I am sure this has been asked but I did not see anything. I have a datalist control. In the edititemtemplate I have a dropdownlist. I know on the itemdatabound event is where I can set the dropdownlist selectedindex. How do I set the correct value? private void lstDegree...more >>

Object doesn't create seperate instances for each session
Posted by Markus Prediger at 9/27/2005 10:54:07 AM
Hi NG, I have an asp.net project that uses an vb6 com object for some database-manipulation (I cannot rewrite it in .net, sorry, its not my decision). I want it to be instanciated seperately for each session, so that three users can connect to three different databases. But I get crazy beca...more >>

Redirect to root page
Posted by Rudy Soto at 9/27/2005 10:38:33 AM
Can someone please tell me how I can redirect the user back to the start page? Let's say I have the following folders in IIS, with the pages included: Menu login.aspx menu.aspx Customers details.aspx contacts.aspx address.aspx menu.aspx also has other folders. It is basical...more >>

Multiple ASP.NET Forms within the same page
Posted by Jason at 9/27/2005 10:30:19 AM
Hello, I am converting an old ASP website to ASP.Net and I am running into a problem. I have created a header control that I am loading on every page. This control is gathering some information and displaying it on the screen. There is also a drop down that is populated if they have acc...more >>

Color
Posted by Jim Heavey at 9/27/2005 10:30:02 AM
I created a TableCell object and I want to set the BackColor property to #F7DFB5. How do I do this? It requires System.Drawing.Color, but Color has no constructor so I a bit perplexed. Thanks in advance for your assistance...more >>

collaborative working
Posted by Jonathan Crawford at 9/27/2005 10:25:17 AM
Hi I have built a few dot net projects, always working on my own. I have a collaborative project coming up and wondered if there are any guides that might be useful in setting up the new solution thanks jc ...more >>

Calling server side code from teh client...
Posted by Jerry Camel at 9/27/2005 10:20:45 AM
Trying to implement the following: Users is logging in They enter theire username and password and click a login button The page should then display an activity indicator (animated gif) and then call the server side routine that autheticates the user. When the page comes back, the activity in...more >>

Bordering individual tablerows in a datatable
Posted by Shak at 9/27/2005 10:12:37 AM
Hi all, I have subtotal rows in a datatable that I wish to emphasise by adding borders to. Ive isolated the relevant cells pretty easily, but I cant figure out how to add a border to the cell itself. Is there a custom attribute I can use? Thanks! Shak ...more >>

Printing a datagrid??
Posted by Tina at 9/27/2005 10:12:21 AM
Is there any utility or tool or function to print the contents of a web datagrid in report form? If not, does the new 2.0 framework/vs.net have such a capability? Thanks, T ...more >>

Style
Posted by Mr Newbie at 9/27/2005 9:55:14 AM
//This is really fundemental, but I dont seem to be able to understand why my table text wont render as I want it. I have a style sheet which has many styles for all the standard tags etc. The body style for example will change when I change the BODY tag specified in the style sheet but the te...more >>

exporting datagrid into pdf
Posted by Franck at 9/27/2005 9:23:17 AM
Hello, has anyone found a way of exporting the datagrid content into pdf I have look through many examples for excel, word and so on... but nothing for pdf. any helps please? Franck...more >>

State Service error with space in Virtual Directory
Posted by Stu Carter at 9/27/2005 9:23:16 AM
Hi, ENV: Windows 2003 Server SP1 (+all updates), VS 2003, .Net 1.1 SP1 We've got an ASP.Net web application using State Service. All is fine until we tried to use the app through a virtual directory with a space in it. e.g. 'http://localhost/My%20App'. The following exception is thrown...more >>

EditCommandColumn - Adding Row?
Posted by Will Lastname at 9/27/2005 9:20:12 AM
Is it possible to add a row to a bound datagrid? My current application allows editing and deleting of a row but not yet adding a row to input information. The ultimate goal would be to add a row and then have 'Update' and 'Cancel' displayed so that the information could be written to a database...more >>

Can I get RegisterClientScriptBlock to Appear at the end?
Posted by Paul D. Fox at 9/27/2005 9:09:12 AM
I'd like to modularize my code and I like using the "RegisterClientScriptBlock()" routine. However, I need to have a piece of JavaScript registered at the end of the HTML form. My only work-around is to hard code it in the HTML. Can I get the RegisterClientScriptBlock() to write the scrip...more >>

Trigger PostBack from External webpage?
Posted by Lars Netzel at 9/27/2005 9:00:38 AM
I open a popup from an aspx page and when done working in the popup i I need to update the aspx page in the background. I know how to get to the page in the background thru JavaScript (window.opener.. ) but how do I trigger a postback that will keep the viewstate of that page? best regards/...more >>

Setting Textbox Properties
Posted by Will Lastname at 9/27/2005 8:56:15 AM
I am trying to manipulate the textbox properties in my datagrid for when I fire the Edit/Update from the EditCommandColumn. I have set a few attributes such as: Dim tbPhone As TextBox = CType(e.Item.Cells(4).Controls(0), TextBox) tbPhone.BorderStyle = BorderStyle.Solid tbPhone.BorderWidth.P...more >>

custom control: strange event problem
Posted by dan at 9/27/2005 8:31:18 AM
Hi NG, i have have a strange problem with a Click Event in a custom control. The OnClick method assigned to a Link Button gets invoked, but the method called in that method is ignored. Instead, the debugger directly invokes CreateChildNodes(). void SubmitButton_Click(object sender, EventA...more >>

Firefox doPostBack (LinkButton) not working
Posted by Mark Olbert at 9/27/2005 8:11:32 AM
The doPostBack javascript functioning is not submitting the page when called by linkbuttons (or an autopostback checkbox, for that matter). I'm aware of a problem with Netscape browsers and the postback code, but I have a workaround for that installed (and it looks like the code generated by AS...more >>

Calendar Web Control, one per line
Posted by Terry Olsen at 9/27/2005 7:14:06 AM
I have two Calendar Web Controls on a web form. They are for the user to choose a Start Date and End Date. However, the IDE won't allow me to put anything other than the Calendar on a line. I would like to have the two calendar controls side-by-side. Is there any way to accomplish this? ...more >>

Global.asax and Session State
Posted by stewartfip NO[at]SPAM yahoo.com at 9/27/2005 6:24:34 AM
My global.asax file looks something like this: sub Session_Start() [some database activity] session("sessionID") = [value from cmd output param] end sub sub Application_PreRequestHandlerExecute() if session("sessionID") <> 0 then [do some stuff] end if end sub ....which seems...more >>

Prevent access to advapi32.dll RevertToSelf()
Posted by kevin.kenny NO[at]SPAM zygonia.net at 9/27/2005 6:06:58 AM
Hi All, Sorry to crosspost but it's a security and an ASP.NET problem I have. We run each website site under it's own I_<user> account and ASP.NET is configured to impersonate so requests run under the identity of the I_<user> account. In windows 2000 server how do I prevent a user from c...more >>

error: Could not find a part of the path
Posted by rouqiu at 9/27/2005 5:51:11 AM
Hello, My code is this: string fileName = "settings/tabs.xml"; XPathDocument doc = new XPathDocument(fileName); However, instead of searching files under the current IIS directory, the IIS give me this error:Could not find a part of the path "C:\WINDOWS\system32\settings\tabs.xml". W...more >>

How to restart application
Posted by ad at 9/27/2005 5:50:24 AM
I want to renew all values of Application and Session. How can I restart application in program? ...more >>

Best way to pass XML between web pages.
Posted by csgraham74 at 9/27/2005 5:18:31 AM
just one more question .... I have written as asp.net application which reads from XML. I need to have XML available between pages. What is the best and most secure way of doing this ?? my systems manager has told me that i cannot use session state due to security issues. Any help ap...more >>

Enter Press on Text box ASP.Net
Posted by csgraham74 at 9/27/2005 5:15:26 AM
Hello, I wonder if someone could help me. I have an asp.net form which collects data from a piece of XML and displays it on screen. If a piece of data is incorrect i will select the textbox and change the data. If i press enter whilst in the text box it throws an event. My question is ho...more >>

Page.RegisterClientScriptBlock
Posted by Andrew at 9/27/2005 4:12:01 AM
Hi, I have written this code, but I have received an error message for the javascript code. This is written in the html of the page. <a href="default.aspx" id="NoAccessAllowed" target="_parent" type="hidden"></a> The C# code: string NoAccess = " <script language='javascript'> "+ " do...more >>

Not updated Textbox value inside a datalist editItemTemplate
Posted by etantonio NO[at]SPAM gmail.com at 9/27/2005 2:56:02 AM
Good Morning, I still havent solved my problem with a textbox inside an editItemTemplate of a datalist, in fact now it is filled with the word "CIAOOOOOO" , if a runtime in the form I put a different word like "PIZZAAAA" this new word is not available in the Update_Command following : ...more >>

OnLeave event on a textbox?
Posted by ML at 9/27/2005 2:33:05 AM
Hi NG, Can anyone tell me how to create a OnLeave event on a regular textbox in an ASP.NET webform? The only events I have available are: TextChanged, Disposed, Init, Load, Prerender and Unload.. Thanks! regards, M.L....more >>

Out of Proc Session Mode...
Posted by Lucas Tam at 9/27/2005 12:00:00 AM
If I use Out of Proc mode for sessions - do I get all of the in-Proc session features, but it's just slower? Also, if I upgrade the DLLs on the server side, will I lose Out of Proc sessions? Thanks. -- Lucas Tam (REMOVEnntp@rogers.com) Please delete "REMOVE" from the e-mail address w...more >>

Will ASP.Net Applications run on IBM AS/400 Server?
Posted by Luqman at 9/27/2005 12:00:00 AM
Will ASP.Net Applications run on IBM AS/400 Server? Best Regards, Luqman ...more >>

File system
Posted by simon at 9/27/2005 12:00:00 AM
I created web application on file system, which is default by Visual studio 20005 beta2. This gives me some strange port numbers. How can I change, that my application will work on IIS? I can't find this property in project options or settings. regards,S ...more >>

Output DataList Item Index!
Posted by Adam Knight at 9/27/2005 12:00:00 AM
Hi all, I am wanting to display a data lists item index inline in a script. Meaning not from code behind but <%# %> ect. Obviously i can display a dataitem by using: <%# Container.DataItem("qtext") %> What i want to do is prepend the datalist item index to the previous text. Is this po...more >>

Catching Submit Event even called by document.forms[0].submit()
Posted by The Crow at 9/27/2005 12:00:00 AM
i have to catch submit event of the form contained in the asp.net webform. when a button on the page clicked, it works ok, but when i call form.submit() or linkbutton vs. calls __doPostBack() , form.onsubmit() doesnt rise.. ...more >>

New to asp.net
Posted by JX at 9/27/2005 12:00:00 AM
Trying to learn some asp dotnet and can't get an insert into MSAccess to work. Can anyone point out my mistakes here: Access Table is: Users with 3 columns - UserName Text(255), PasswordHash Text(40) and salt text(10) private bool InsertRecord(string asUserName, string asHashedPassword, string...more >>

about using validation with Javascript in ASP.NET
Posted by ugurceng at 9/27/2005 12:00:00 AM
Hi, I have an aspx page that includes both search and insert screen , When I click the the insert button ,if required fields are blank then the validation.js throws an error, but when I click the search button , validation throws error again, how can I prevent from this problem I mean whe...more >>

HtmlEncode and HtmlDecode in windows service.
Posted by Sakharam at 9/27/2005 12:00:00 AM
Hi All, I want to use "HtmlEncode" and "HtmlDecode" functionality of "Server" class in Windows service. Since these are not shared functions, I could not used it in non Web Application. Is there any such functions available in other Namespaces? Please Advise. Thanks and Regards, ...more >>

html button runs javascript: how to make it see server validators?
Posted by Bishoy George at 9/27/2005 12:00:00 AM
I have an html button that reads a text box and runs a javascript. I made a Required Validator on that text box , any web button follows that validator. My html button does not follow the validator I want to force my html button to follow the validator, how to do it? Any help is very appreciat...more >>

Connection Pooling
Posted by ugurceng at 9/27/2005 12:00:00 AM
Hi everbody , I need more info about connection pooling , We are developing a CRM project with ASP.NET and when more users connect to the MS SQL DB at the same time , which problems would be occured ? Our connection structure is like below what should you offer ? ' This is connection C...more >>

asp.net equivalent to TAG property?
Posted by Annie at 9/27/2005 12:00:00 AM
hello guys, I simply would like to store some details within the textboxes most preferably in design time (excluding ID) ... but can't find anything approperiate ... for example I want to store the Data Type of the textbox eg it is String, Number, Date, Boolean etc ... TextBoxes had Tag pro...more >>


DevelopmentNow Blog