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 > august 2006 > threads for wednesday august 9

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

Removing items from an arraylist
Posted by David Lozzi at 8/9/2006 11:29:55 PM
Howdy, I have a shopping cart in my arraylist. Works great for adding items but I'm displaying the shopping cart in a gridview and the user can update the qty of the items. If they set it to 0, then I want to remove it. I'm doing the following script: For Each ele In bag Dim qty As In...more >>

CustomValidator ClientScript Parameters
Posted by manfred at 8/9/2006 10:41:33 PM
Hi Has anyone a definition of the parametervalues and properties for a clientscript? MyName(source, args) I know: args.Value args.IsValid and whats the rest??? Thanks for any suggestions. ...more >>

showModalDialog fires Page_Load only for first click
Posted by Tarakeshwar Reddy at 8/9/2006 9:06:02 PM
I am using javascript to open a popup window on a ImageButton click. My Page_Load contains this code btnNew.Attributes.Add("onclick","popNew()"); this is my javascript function popNew() { window.showModalDialog("popNew.aspx", null,"center:yes;resizable:no;dialogHeight:500px;dialogWidth...more >>

Change FormView.ChangeMode to Edit after Insert
Posted by J055 at 8/9/2006 6:50:06 PM
Hi I'd like to do the following with the FormView/ObjectDataSource but not sure of the best approach. 1. Change the FormView mode to Edit if a valid QueryString ID exists or Insert mode if it doesn't 2. If in Insert mode then when the form is posted it should get the new ID from the insert...more >>

FooterRow Visibility In GridView
Posted by Microsoft News Group at 8/9/2006 6:39:31 PM
I am trying to control the visibilty of the footerrow, but having little luck. I am currently at this. if (e.CommandName == "Update") { PropertyGridView.FooterRow.Visible = true; } if(e.CommandName == "Edit") { PropertyGridView.FooterRow.Visible = false; } But I...more >>

Search colon
Posted by Eric at 8/9/2006 5:59:55 PM
Hi: How to i search ":" in a sentence by ASP. For eg: abc efg hij : kkk ddd lll fda fdasf jfdas fdas fsad When i read a line i want to skip those lines where ":" is present data = ts.ReadLine ...more >>

Using Len in C#
Posted by sck10 at 8/9/2006 5:38:00 PM
Hello, I am trying to find the equivalent of LEN in C#: if (Len(this.ddlAudioDate.SelectedItem.Text) != 0) Any help would be appreciated. Thanks, sck10 ...more >>

Timeout on web page is too short, changing web.config seems to have no affect
Posted by Siegfried Heintze at 8/9/2006 4:54:43 PM
I made the following change to my web.config file (see fragment below) but does not seem to affect the timeout on my web page. I have a huge session state but since I'm the only one using it, I'd like to set the timeout to infiinity. How can I do this? Thanks, Siegfried <sessionStat...more >>



Caching asp.net pages
Posted by Bruno Alexandre at 8/9/2006 4:42:29 PM
Hi guys, I built a online Portal that shows results, stock managment, etc... but same pages take long time to display because they are getting the results from the Database. to make it faster I add this line: <%@ OutputCache Duration="5000" VaryByParam="none" %> but I got a problem, ...more >>

Doesn't cross-page posting work without Javascript?
Posted by Alan Silver at 8/9/2006 4:27:14 PM
Hello, I have just discovered that if you turn off Javascript, then cross-page posting does not work. The postback goes to the originating page, which basically means that nothing happens. I thought the whole framework was supposed to degrade gracefully in cases like this? AFAIK other fe...more >>

Object reference not set to an instance of an object.
Posted by Microsoft News Group at 8/9/2006 4:00:55 PM
Object reference not set to an instance of an object. 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: System.NullReferenceE...more >>

css not working in .aspx page
Posted by Josue Maldonado at 8/9/2006 3:17:05 PM
hello list, I have the following code in a pure .html file: http://rafb.net/paste/results/uBHL5J92.html and it displays properly in both FF 1.506 and IE 6: http://img146.imageshack.us/img146/8075/htmlokki0.jpg However the same code in a .aspx file: http://rafb.net/paste/results/6kOI2M88.ht...more >>

Separate two words
Posted by Eric at 8/9/2006 3:05:04 PM
Hi: I have data where first and last name are in one field. I need help how to i separate first and last name in ASP Thanks, ...more >>

Insert Data
Posted by Eric at 8/9/2006 2:30:40 PM
I try to insert some data in my table name customer(Customer_Name, Street, Account_No) from data: [Customer's Name] [Street] [Account Number] How to i do that needs help ----------------------------------------------------- Set con = Server.CreateObject("ADODB.Connection") sConnection ="Pr...more >>

Gridview numeric paging, how to insert 'page:' before numbers?
Posted by Edwin Knoppert at 8/9/2006 2:23:15 PM
I simply want to insert a word before the numerics for paging.. *If* i need to manage this true a template then how to keep the numeric stuff? I was only able to prepare buttons which do adding and subtracting, i want the numerics. ? ...more >>

Required Field Validator Use
Posted by Mike Collins at 8/9/2006 1:33:53 PM
Is it possible to use a required field validator and have it make a user answer a comment field based on a drop down value picked? For instance, if the user selects "It was terrible", make them have to enter comments before allowing that page to be submitted. If that cannot be done, what i...more >>

thumbnail has poor quality
Posted by Narshe at 8/9/2006 12:55:46 PM
I'm creating a thumbnail from an image saved in a db. If I write the data directly to the stream, the image shows up perfectly. Response.Clear(); Response.ContentType = myImage.ContentType; Response.BinaryWrite( myImage.File ); But if i try and make a thumb, the image is distorted. Memor...more >>

Using Web Parts / Personalization as a Web Management System
Posted by alanglois NO[at]SPAM gmail.com at 8/9/2006 12:44:16 PM
Hi, Has anyone come across wanting to use the Web Parts and Personalization features of ASP.NET 2.0 as a Web Management System? For instance, can I set it up so that only an Administrator has access to customize the application while the anonymous users only see what the Administrator has cus...more >>

createuserwizard generated password too complex
Posted by Dabbler at 8/9/2006 12:13:02 PM
I've setup a page for administrators to create user accounts, with AutoGeneratePassword="true" but the generated passwords are too complex.. for instance: D$WtUB+YL I just need letters, one number and one special character. Can anyone tell me where and how I configure a simpler passwo...more >>

Pulling Exchange Global Address Book to use in ASP.NET
Posted by DHamblin at 8/9/2006 11:53:02 AM
Ok, I am sure this is possible but after looking at Google and MSDN it must be well hidden! In a company intranet ASP.NET app; the user needs to select email addresses to send copies of a report to. Rather than copy this data to a database (where it can be out of date quickly...) I'd like ...more >>

Passing parameters best practice
Posted by tshad at 8/9/2006 11:14:27 AM
I need to pass a few parameters to my Windows Service program. The end user will be changing the parameters and settings should be saved. What is the best practice - use app.config - use .ini file - use Registry - write a Windows Application program and save the settings to database t...more >>

non asp.net page accessible
Posted by Kasumo Morris at 8/9/2006 11:03:58 AM
Hi all, I have an asp.net application configured with forms authentication. When I request a non asp.net page (as an example, a crystal report file) without first logging into the application, IIS still serves up the file. I was wondering if any of you out there have encountered this beha...more >>

table cell
Posted by Seema Multani at 8/9/2006 11:01:02 AM
Hi, Actually I have a table cell which has image. I want that when I click on that image a new pop up window should appear. I am creating tables and table cells dynmically. Is there any clickable function or property for table cell. Thanks ...more >>

Newbie: Static Method Instantiating Itself To Acess Non-static Property's. Ok?
Posted by Electric Co. at 8/9/2006 10:50:46 AM
Hello, I am newbie to the group so hi all! My name is Jim and I am a codaholic. Ok so now that is out of the way. I am new to using all things static and I am wondering if what I am doing is going to get me in trouble. I am using the component designer to build my Sql Server objects f...more >>

DataGrid question
Posted by Steve Caliendo at 8/9/2006 10:43:22 AM
Hi, I am populating a DataGrid using an SQLDataReader. My question is: How can I change the properties of a column, or get the data from a field after the DataBind method? When I try to reference a column, I get the error that the index must be non-negative and less then the size of the ...more >>

update question
Posted by Tom at 8/9/2006 10:28:02 AM
On my web form I need to show items that can be 1 item or 100 items, on this web form the user can also update these items. Is there a way to update more then 1 value at one time? Could I use the datagrid or datalist to do this? example: BMW 25,000 Sold BMW ...more >>

Globalization: Non-English characters
Posted by Yuriy Galanter at 8/9/2006 10:26:28 AM
Hi, I am trying to display Cyrillic characters on my ASP.NET page. While doing that on a local server provided by VS.NET - everything looks fine. But when I publish the site to my ISP host - all the characters are out of whack. When I saved my ASPX file with encoding (UTF-8, codepage 65001)...more >>

ExecuteNonQuery returning -1 (vb+asp.net+sqlserver 2000)
Posted by jzogg7272 NO[at]SPAM gmail.com at 8/9/2006 9:59:20 AM
In my code I am executing a stored procedure to do a single row insert. I check the return value of the execution and I am getting -1, whereas a few weeks ago it was returning 0. Actually, I found that all of my insert stored procs are returning -1. The stored proc/insert statement is still e...more >>

default value for LoginUrl
Posted by cashdeskmac at 8/9/2006 9:11:02 AM
I have read that when using Forms Authentication, if you do not specify a value for the LoginUrl attribute it defaults to default.aspx. However, to test this, I create an application, add a new form called default.aspx and set up forms authentication. When I run the program, the exception ...more >>

Looks like there is no easy way to do chain postback
Posted by antonyliu2002 NO[at]SPAM yahoo.com at 8/9/2006 8:35:36 AM
By "chain postback", I mean postback to one page and then another and another. For example, I have page1.aspx, page2.aspx, page3.aspx, page4.aspx in a survey application. 1. Users can only submit the survey on page4.aspx. 2. Users can *randomly jump* among these 4 pages through the navi...more >>

Referencing class without Namespace
Posted by Charlie NO[at]SPAM CBFC at 8/9/2006 8:27:30 AM
Hi: In the project I'm working on there are classes that don't belong to a namespace. Problem is I need to reference a user control so I can use it to cast a control being loaded dynamically to the correct type. Control resides in a subdirectory. So... how do I reference and control in ...more >>

Dynamically Populate Web Page Values
Posted by TCook at 8/9/2006 8:24:29 AM
Hello All, I need to try to programmatically and dynamically populate some lists on a web page. I wanted to know the best advised way to pass the information to the web page. For example, should I use query strings? Is there a way to put some code in the "Page_:Load" event which would al...more >>

Formatting Values In TextBox
Posted by Barry at 8/9/2006 7:42:32 AM
Hi Will someone tell me how to format numeric, date and Phone values in a Webcontrols.TextBox controls TIA Barry ...more >>

How to redirect any page to Login.aspx? I tried but...
Posted by Big Charles at 8/9/2006 7:26:09 AM
Hi, How to redirect any page to Login.aspx? I tried writting this in web.config <authentication mode="Forms"> <forms name="aucoockie" loginUrl="wf_login.aspx" protection="All" path="/" /> </authentication> <authorization> <allow users="?" /> </authorization> ...more >>

DataReader Output as XML
Posted by binder at 8/9/2006 7:07:55 AM
Can a DataReader output XML directly similar to the functionality offered by a DataSet? I have a C# Web Service that returns read-only data and I would like to output it as an XML string without using the overhead of a DataSet. ...more >>

Receiving "Invalid character" error on page when control attempts postback after upg to VS 2005
Posted by DCC700 at 8/9/2006 7:01:03 AM
After upgrading a web application from VS 2003 to 2005 there is a page where any control event that should cause a postback instead generates an Invalid character error on the page. For example a drop down list is set to AutoPostBack, and for OnSelectedIndexChanged should update the values of ot...more >>

TreeView Control
Posted by Joe at 8/9/2006 6:48:02 AM
Does MS currently support a TreeView control for .NET v 1.1? How about 2.0? TIA, -- Joe...more >>

Object Must Implement IConvertible is a BUG non solved?
Posted by lcorrias NO[at]SPAM yahoo.com at 8/9/2006 6:21:14 AM
i try to do a simple insert using SQLDataSource and a Stored Procedure I try all night and always have this error Object Must Implement IConvertible I can't understand where I wrong.. Looking around I understand is maybe a typecasting problema but I not find nothing more u...more >>

Strange character transformations
Posted by CyberSpyders NO[at]SPAM gmail.com at 8/9/2006 6:02:26 AM
Hi, I have an ASP.Net website, which allows users to upload a file which is then inserted into a database. This is all fine until it reads a line with the string +Anu in it. It transforms this to this char =C9=BB (which, if Googled for, is described as Unicode Character 'LATIN SMALL LETTE...more >>

Synchronous form field validation with Atlas/AJAX against a databa
Posted by AECL_DEV at 8/9/2006 5:42:01 AM
Okay, so javascript validation is all well and good, but how would I use that to stay synchronous if I am validating against a server side database? Can I use some sort of modal dialog/loadingscreen? if so, how would I go about doing that?...more >>

hyperlink in gridview
Posted by Mike P at 8/9/2006 4:52:04 AM
I have a template field I want to use as a hyperlink. How do I do this? <asp:TemplateField HeaderText="Company" SortExpression="Name"> <ItemTemplate> <asp:Label ID="lblCompany" Text='<%# Eval("Name") %>' runat="server"></asp:...more >>

Which is better Grid or Table
Posted by kiran kumar at 8/9/2006 4:42:29 AM
Task is there are 200 controls (TxtBoxes,ddlists) which is better Grid r normal table. this table/grid i have to use it for view/update the 2 tables data in database.How can i solve this. Thanks Kiran Kumar ...more >>

atlas error
Posted by majorone at 8/9/2006 2:37:54 AM
hello, i am new to atlas and trying to use it on my user control. but after i implemented the following code, i have got a error in yellow page: "MaintainScrollPostition is not supported on pages with partial rendering turned on" what's wrong? <asp:DropDownList ID="ddlLanguage" runat="serv...more >>

Having Tri-State in Checkbox
Posted by asgars at 8/9/2006 2:13:09 AM
hi everyone, i am designing a web application wherein i am required to provide facility to the user to select one out of three values. i want to use checkbox for it. The values would be something like 'True', 'False' and 'Unknown'. i there any way to implement the same. please pass on the point...more >>

How to prevent text selection on tab key
Posted by bkasmai NO[at]SPAM gmail.com at 8/9/2006 2:05:35 AM
On editing textboxes on a webform, when a user tab to a textbox, the text is highlighted or selected. Any accidental key press will remove the original text. This has proved a problem for the users. Is it possible to set a textbox so that the text is not selected when a user tabs to that textbox...more >>

how do you insert normalized data with the controls?
Posted by mike at 8/9/2006 1:56:46 AM
Hello, I tried to use a DetailsView control to allow me to view, edit, delete, and add records. The data I want to view requires a join of two tables. I created a view that brought together all the data I wanted to access into one table. I can use it to view the data, however I can't get D...more >>

Checkbox unchecked on clickevent in GridView
Posted by Jayender at 8/9/2006 1:53:54 AM
Hi , I have placed checkbox in my gridview .. now when i check the chekbox and click anybutton the checkbox becomes unchecked. but when i normally add checkbox in the page it doesnt happen but it happens when i add it to the gridview. why is that ? i have added checkbox like this in my gri...more >>

Page Expire
Posted by Charles Mifsud at 8/9/2006 12:00:00 AM
Hi All, How can you expire an ASP.Net page when you navigate to another page so that the user cannot go back to the first page? any ideas? Charles Mifsud ...more >>

Global Variables / Masterpages (2.0)
Posted by Thiery Balser at 8/9/2006 12:00:00 AM
Hi Everybody! I'm stuck with the following problem: I have a couple of pages which has all the same 'header', i.e. some common elements. So far I realized that the best thing would be to use master pages. This is all fine and works. Now, there are certain variables stored in the sessi...more >>


DevelopmentNow Blog