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 > october 2003 > threads for wednesday october 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

Asp.net server controls
Posted by satish at 10/29/2003 10:34:55 PM
I have placed servercontrols on Webforms , when i view through browser i am not able to see that controls such as buttons,label etc. I have included runat =server also.Is there any config setting has tobe made? I can view html controls when i placed on web forms .So i can view html con...more >>

datagrid columns programatically
Posted by Michelle Stone at 10/29/2003 10:31:13 PM
Hi I use the following code to add a column to a datagrid programatically col = new BoundColumn (); col.HeaderText = "Agency"; col.DataField = "gridGetIsAgency (DataBinder.Eval Container, 'DataItem.Agency').ToString ())"; approvalGrid.Columns.Add (col); "gridGetIsAgency" is a funct...more >>

Microsoft.Web.UI.webControls
Posted by Parthasarathy at 10/29/2003 10:28:30 PM
Hey how to use this namespace Microsoft.Web.UI.webControls in my Asp.NET Page...more >>

what is postback?
Posted by Matt at 10/29/2003 10:22:00 PM
I always see the term "postback" from ASP book, but I am not sure if I fully understand the meaning. Here's my understanding so far, please correct me if any mistakes. Here's a typical html form: <form action="process.asp" method="post"> 'GUI code </form> "postback" action happens when th...more >>

Server Error
Posted by Reb at 10/29/2003 9:48:25 PM
Hi, I am getting the error,Server tags cannot contain <% ... % > constructs for the below html tag. <INPUT id=txtUserName type=text runat="server" value="<% =Request.Cookies["User"].Value%>"> can anyone tell me where i am going wrong? Thanks Reb ...more >>

Would this be possible through ASP.net ?
Posted by Robbo at 10/29/2003 9:24:18 PM
I am scratching my head on this one : I need to install fonts and graphics ( .bmp ) to folders in clients machine. Question is : What is the best way to do this ? what would the correct procedure be in vs.net ? is this possible ? I have implemented activex com objects in aspx befo...more >>

Strip space before page rendering
Posted by vMike at 10/29/2003 9:23:09 PM
Is there any benefit to stripping all the space from the page before rendering by overriding the page render and using the htmltextwriter and stringbuilder to strip linefeeds, tabs and extra space etc. I have noticed that may site's source code is like this. Is this because it is better for the ...more >>

Validating
Posted by Reddy at 10/29/2003 8:42:02 PM
Hi!, I have Two Radiobuttons and a TextBox to write comments. If RadioButton1 is on Comment must be entered in a textbox. If RadioButton2 is on Comments are not necessary. I am using the required field validator for textbox. But it's not working as i wanted. How can i write client script in th...more >>



Cant seem to transalte this VB code to C#
Posted by Ron Vecchi at 10/29/2003 8:26:34 PM
The error Im getting-- The type or namespace name 't' could not be found (are you missing a using directive or an assembly reference?) The error is referencing the IF expression VB.NET to convert ----------------------------------------------- Public Overloads Overrides Function CanConvertFr...more >>

Getting Form id in code behind
Posted by Makarand at 10/29/2003 8:16:46 PM
Hi All I have a asp.net User control which has sime client side client scripting written in it at runtime. Now my problem is, for this client script to woek properly I need a Container form Id (i.e. <Form></Form> tag Id) so that I can use syntax like document.formID.ControlId.value. C...more >>

Uploading ASPX files
Posted by LIN at 10/29/2003 7:23:42 PM
Can someone guide me with an article or advice me on how to UPLOAD ASPx files on the webserver. I am making the ASPx pages by creating a project in VS .NET. I have no clue how to deploy the solution on the webserver - what kind of build do i create to get ASPx pages - what happens to Global.asax ...more >>

undesired behavior in setting hyperlink .NavigateURL property
Posted by Boban Dragojlovic at 10/29/2003 6:48:12 PM
in the codebehind portion of a page, I dynamically create a series of hyperlinks that I add to the page. in that code, I have something like this: dim h as new hyperlink h.NavigateURL = "/somepage.aspx?age=35&gender=M" Unfortunately, when it renders the HTML page, it changes...more >>

webconfig error
Posted by Buz Waitz at 10/29/2003 6:46:37 PM
I have prepared a site on one machine, but when I move the site to the machine I wish to use as a host, I have problems. If I use a default.htm file, I have no trouble accessing the site. However, if I use a default.sapx file, I get an error from the webconfig authentication section. The error ...more >>

ASP Repeater
Posted by LIN at 10/29/2003 6:38:25 PM
i have an asp repeater which is bound at runtime from a dataset ...it looks like this Name Age DOB xxxx 234 7/9/07 yyyy 234 7/9/07 here all rows in the name column are hyperlink column (column with a href tag for linking) now my question is how can make the 1st row of the r...more >>

Outputting in-line image from BLOB in ASP.NET
Posted by Jonathan at 10/29/2003 6:36:39 PM
I have a client solution that requires data and associated files to be stored with data in a database. As such, I have a situation where JPEG thumbnails/images that are stored as BLOBs (image data-type) in a SQL DB need to be written to an ASP.NET page. The BLOB is actually wrapped by a class ...more >>

adding attribute to checkbox
Posted by BK Kim at 10/29/2003 5:26:32 PM
hello. I am trying to add an attribute on the checkbox. In my C# code, chkText.Attributes.Add("onChange", "window.alert('hello');return false"); But the result is like below on the web browser, <span onChange="window.alert('bk');return false"><input id="chkTest" type="checkbox" name=...more >>

Would like to disable validation for entire page
Posted by Mike Hnatt at 10/29/2003 5:08:58 PM
I'd like to conditionally enable or disable the page validation. I was thinking something like; Enummerate through all controls...if control is validation control type, then control.ControlToValidate = "" I think that would work but I don't know how to ennumerate through each control and c...more >>

Windows Server 2003 ASP.NET using .NET Framework 1.0
Posted by Kevin Jackson at 10/29/2003 4:44:26 PM
We built a web app using ASP.NET that is built with VS .NET. This targets the .NET framework 1.0. We are switching over to Windows Server 2003. We have found some problems running our app on .NET FW 1.1 so we want to make sure all of our stuff uses the .NET FW 1.0. We read some tech article...more >>

Extracting matches from Regex.Split
Posted by Stephan Bour at 10/29/2003 4:20:01 PM
I have a string ³Name² in the following format: ³LastName, FirstName (Department)² that comes from Active Directory. I need to extract the FirstName from the string. Substrings are not practical for this so I used a Regex that splits the string at the first ³, ³ and again at the ³ (³. My problem...more >>

asp setfocus and performance
Posted by jamess at 10/29/2003 4:10:45 PM
Please can someone tell me why, when redirecting from a page with a large dataset, the action takes much longer than with a small set? Also, how can I setfocus to a control; (the default being the address bar)? I have tried various tab-index approaches but to no avail? thanks all. ...more >>

Global IP Address
Posted by JimSchacht at 10/29/2003 4:00:45 PM
Hello everyone, i'm only slightly familiar with asp.net but i'm very familiar with c#/vb.net and i'm writing an application that needs to know my machines Global IP address. I'm behind a NAT enabled router so i know it's different than my local ip address. i'd like to do this via an httpreque...more >>

Page.RegisterClientScriptBlock rebuilds Javescript for every control
Posted by Earl Teigrob at 10/29/2003 3:57:55 PM
I have a Web Custom Control that builds javascript to write to the page. The DatePickerJs() function builds over 500 lines of javacript code. Even thought my Custom Web Control does not write it to the client, it regenerates the string very time this control appears on a page. Is there a way ...more >>

datepicker help needed
Posted by TJS at 10/29/2003 3:57:06 PM
found this code but get error message on handles Compiler Error Message: BC30506: Handles clause requires a WithEvents variable. can anyone help resolve this ?? ============================================ 'Just drag calendar control onto the screen and turn it invisible. 'When you click...more >>

IIS v5.0 and ASP.NET v1.0
Posted by Mikey at 10/29/2003 3:36:25 PM
Hello, I've just got finished setting up IIS v5.0 on Windows 2000 Professional with ASP.NET v1.0, but everytime I request an ASP.NET application (.aspx,) from within the browser, I receive an unhandled exception error (With no event log entry.) Here's an example of the error from an .asp...more >>

dropdown list not working
Posted by SSP at 10/29/2003 3:13:16 PM
I have a dropdown list on my page as: <asp:dropdownlist id=ddJobtypes runat="server" ></asp:dropdownlist> <asp:button id=jobtypes_btn runat="server" Text="GO!"></asp:button> This is bound in the codebehind file as: JobTypesDD_sqlDataAdapter.Fill(dsJobTypesDD1); ddJobtypes.DataSource...more >>

post
Posted by Steph at 10/29/2003 3:10:05 PM
Hello, I have a web form with controls and I need post control's values on a remote server and not on this webForm. What can I do ? Thanks for your time Steph ...more >>

Client side HttpRequest or Call WebService.
Posted by Rajesh.V at 10/29/2003 2:23:50 PM
I looked up the following.... 1. mshtml activex object which letts us do http request thru js. But the browser security has to be adjusted so not possible. 2. Htc behaviours enable calling webservices thru scripts. But this is currently not supported. Is there any other method to call a ...more >>

Compiling (JIT and reverse)
Posted by Alex at 10/29/2003 2:20:33 PM
Hi, I have read in quite a few places that it is possible to reverse compile an asp.net app. I'm not interested in finding out how to do this, what I am interested in is finding out how to prevent it (assuming it is possible in the first place) From what I have read you can reverse compile a ...more >>

PostBack Fails
Posted by Nick Wright at 10/29/2003 2:03:01 PM
Hi, I have a client using IE 5.00 accessing an ASP.NET web page The web page works fine in IE 6.00 However on IE 5.00 an odd fault occurs, it intermitantly shows page cannot be displayed...on the press of a confirm button...that performs a postback Does anyone have any ideas...? Re...more >>

Custom Tags???
Posted by EDOnLine at 10/29/2003 2:01:19 PM
Is it possible to create Custom Tags in HTML and have ASP.NET replace these custom tags with info from my database before the page is returned to the client? For example.... In an aspx file I would have plain HTML along with a custom tag like this.... <p>Some text here. Email <MAIL:221>Web ...more >>

form issues
Posted by Dan at 10/29/2003 1:47:05 PM
I don't get it. on page1.aspx I have set the <form action="page2.aspx" runat="server"> but the page keeps referring back to itself...why won't it call the second page?...more >>

Redirecting
Posted by dan at 10/29/2003 1:23:30 PM
How do I redirect a page based on certain conditions? in this case I was to redirect based on what a person has entered on the previous form page....more >>

getting form variables from previous page
Posted by Dan at 10/29/2003 1:19:17 PM
page1 - submits the form, page 2 - how do I grab the form variables ?...more >>

forms-based authentication
Posted by Vic at 10/29/2003 12:34:46 PM
I am trying to implement a forms-based authentication on my website, so some directories will have web.config file which will deny certain users, based on role, etc. The problem I encountered is that it's only asp.net files (or the files with the extension mapped to aspnet_isapi.dll) are the ones...more >>

Refer to Control by ID or Other String (not Index)
Posted by Jeff S at 10/29/2003 12:23:10 PM
Using VB.NET/code behind, I'd like to programmatically access 15 imagebutton controls by their ID (or some other identifying string). The ID of each of the imageButton controls is Thumb0, Thumb1...Thumb14. I'd like to set properties for each one from the code behind module, however, the Page.Co...more >>

newbiew ( debugging question )
Posted by Ashish at 10/29/2003 12:20:31 PM
iam new to asp.net debugging, i was just wondering if there was any option in the IDE which i can change to throw all the exceptions in the IDE while deugging, something like VB 6's 'break on all errors' ? TIA -ashish ...more >>

Web Output Component
Posted by Rafael Veronezi at 10/29/2003 12:07:18 PM
Hello, I need to write a .net component, wich will output data in html. Like, I call a method, and that method must write in the current stream that will be sent to the client, it's pure html that will be written... I would like to know what's the best method to do that... It's a component, bec...more >>

Anonymous login and Windows Authentication
Posted by Darren Oakey at 10/29/2003 12:03:57 PM
G'day - I'm going insane trying to solve this proble, and would desperately love some assistance: My problem: I am making a web site usable by both internal users and the general public. Internal users are on a domain, but not necessarily under any known IP structure. Throughout the web sit...more >>

ADODB.Connection error '800a0e7c'
Posted by shows NO[at]SPAM hillstax.org at 10/29/2003 11:56:39 AM
I'm getting an error message when posting information from my asp page to the database. This is the error message: DODB.Connection error '800a0e7c' Parameter object is improperly defined. Inconsistent or incomplete information was provided. /taxapp/installments.asp, line 207 this is t...more >>

Refresh window?
Posted by LL at 10/29/2003 11:55:34 AM
Hi, I have grid's col defined as HyperLinkColumn, I defined the Target as "_blank" to force open a new winodw. When the new window is closing, how to refresh the parent window? Thanks. ...more >>

forms identity problem
Posted by Darin Shaw at 10/29/2003 11:43:00 AM
I'm receiving a "specified cast is invalid" with the following code, though I've used the exact same code in other applications with success. Can anyone tell me what I'm missing or if there are other factors to be considered here? Thanks in advance. ======== Private Sub Page_Load(ByVal sende...more >>

There can be only one 'page' directive
Posted by Poppy at 10/29/2003 11:40:31 AM
I opened an asp page in VS.net 2002 and then saved it as an aspx page, "mypage.aspx". I was prompted if I wanted to create the class file for the page and clicked yes. Now when I try and open the page I get the error message : "There can be only one 'page' directive." I am sick of thes...more >>

user control property
Posted by Steph at 10/29/2003 11:03:08 AM
Hello, I have an user control with any public propertys. I wand set up propertys directlly in a code behind of a page where he will be put in, and not directly in the aspx page. How can I refer this us in my cs page ? thanks for your help Steph ...more >>

PopUp with session variables?
Posted by Eddie B. at 10/29/2003 10:31:59 AM
I am trying to pop up a seperate window with the the details from a datagrid. Can this be done from the code behind form? ...more >>

Newbie question ( global variable definition page? )
Posted by Dan at 10/29/2003 10:30:26 AM
in my series of asp.net c# pages, I wish to create one page that will just contain various variables. Similar to the application.cfm page in coldfusion. how is this done?...more >>

How do I create a Web Application at the domain root?
Posted by David Berman at 10/29/2003 10:22:29 AM
Whenever I want to create a C# / asp.net based web site, Visual Studio always requires a subdirectory for the project. So when I make my site, for example abcinc.com, the web site ends up at http://www.abcinc.com/abcinc/ or some other subdirectory. How can I just setup a project for http//www....more >>

Can't view runtime error
Posted by Roger Cantillo at 10/29/2003 10:19:31 AM
Hi: I included a web.config in the root of the application, which sets the customerrors mode = off, but I still get a message saying to set customerrors = off. Any ideas? -- Axiom Software, Ltd. 400 Columbus Ave Valhalla, NY 10595 (914) 769-8800 ...more >>

App center
Posted by zhou NO[at]SPAM netquote.com at 10/29/2003 10:05:23 AM
Hello there, I have a question regarding to releasing a new version of asp.net application through app center. Let's say currently we are using version 1.0 and want to upgrade to version 2.0. Since our site is a consumer site. We have large volume at any given time. Is there an articl...more >>

SortedLists and Databinding
Posted by Ben Mann at 10/29/2003 10:02:42 AM
Hi There, Ive got an ASP .Net page with a listbox element. This listbox element is databound to a sorted list filled with keys and values from the database: dbReader = lookupUtil.getLookup("country", 0, 0, ConfigurationSettings.AppSettings("DSN")) If dbReader.HasRows Then countries = N...more >>

ASP:DropDownList Question
Posted by Thor1212 NO[at]SPAM aol.com at 10/29/2003 9:24:43 AM
Hi All I have a form in which i build a table for a series of twenty questions, like a survey questionaire. I use the following function in a user control to create the DropdownList from the DB and in the loop that builds the table cells i call the function each time: Public Function...more >>

IE web Controls are not sup
Posted by Reddy at 10/29/2003 9:11:21 AM
Well, I have seen Microsoft® Internet Explorer WebControls are not currently supported. What does it mean. ? I have been using them in my web pages. So is this going to effect my present web pages in future. ? I should stop using them? I am not clear about these issues. Thank You very much Pr...more >>

Catching ChildControl render output and modify before sent out
Posted by Ron Vecchi at 10/29/2003 9:04:04 AM
I have a custom control which has a child control (PlaceHolder) The placeholder will have any number of child controls added to it. I would like to catch the rendered content of the placeholder child control prior to it being sent to the browser and wrap all the HTML content in document.write(...more >>

How to hide a column in datagrid with AutoGenerateCol=true
Posted by Thanh Nu at 10/29/2003 8:51:47 AM
Hi, I would like to hide a column in a web datagrid (with create columns automatically at runtime checked), and I cannot refer to the columns collection like this: DataGrid1.Columns(0).Visible = False (the message at runtime is something like index out of range, and under the debuger, I d...more >>

Ie Web Controls Problem (Not displaying Properly On Production Server)
Posted by Reddy at 10/29/2003 8:11:10 AM
Hi!, IE web COntrols are working perfectly on my local system. But when i moved to production server. That tree is not looking as it supposed to be. I don't know why? It has that dll in the bin folder, It displaying just text, not hyperlinks and buttons everything. My Production server is on dif...more >>

Skip HttpModule Use?
Posted by poi at 10/29/2003 7:44:26 AM
I have an HttpModule defined in my web.config, sometimes I want to use it and sometimes I don't. Is there a way to declare whether I need it or not in my code-behind? Thanks. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for...more >>

Debugging Problems
Posted by Philip Townsend at 10/29/2003 7:44:25 AM
I have a web project and am trying to use the debugger. I am getting an error message saying that it is unable to start debugging because the project is not configured to do so. The only suggestion made is to verify that the debug element in the web.config file is set to 'true.' I checked this a...more >>

Module to notify application when leaving site?
Posted by Kevin Burton at 10/29/2003 6:05:12 AM
I have built a HTTP Module in hopes of being able to trap when a user leaves a site (say from my application to Google). If the user comes back I would like to force them to log in again. So I need to note that they have left and either close out the session variable or somehow cache the f...more >>

asp:dropdownlist
Posted by mariusvdwalt NO[at]SPAM ananzi.co.za at 10/29/2003 5:37:48 AM
Hi all, I need an asp:dropdownlist on a webform that is databound to a dataset. This works fine and returns the data to populate my dropdownlist. In the DB I only have valid data, but I need a option like "< Select a Region>" to be displayd as teh selected value. Currently it displays the fi...more >>

batch compilation
Posted by Wei at 10/29/2003 5:06:01 AM
Hello, How to turn on "batch compilation" of ASP.NET application ? Though by default I think the asp pipeline should compile in batch mode, yet I set <compilation defaultLanguage="vb" debug="false" strict="false" explicit="true" batch="true" batchTimeout="120" maxBatchSize="9999" maxB...more >>

Can you force .NET to use browser errors?
Posted by stuartread NO[at]SPAM totalise.co.uk at 10/29/2003 3:36:20 AM
Hi, - I'm running .NET framework 1.1 on win2k server I'm investigating error pages at the moment. I have found how to: a) display friendly or real .NET errors in the remote browser, by editing the "customErrors" section of the machine.config (or web.config) and setting the value to "On", ...more >>

Validating Date Ranges using Javascript
Posted by C at 10/29/2003 3:26:20 AM
Hi, I have two input fields on an ASP Page. User enters 2 dates. I want to check that the difference in months does not exceed 360 months. Is this possible in Javascript to get the difference in months? Thanks, C. ...more >>

Object reference not set to an instance of an object.
Posted by Jacky at 10/29/2003 2:35:03 AM
Hi, I get the eror "Object reference not set to an instance of an object" when i paste this line of code " Me.DDCompCode.Items.FindByValue(e.Item.Cells (1).Text).Selected = True " .. Can someone help me out? Thanks. Jacky ...more >>

Forms Authentication +Active Directory +Roles
Posted by Marty Underwood at 10/29/2003 1:42:50 AM
Okay the subject line explains a scenario I just had to tackle but I am looking for a better way. The current way: 1) Use forms authentication. 2) Query Active Directory and bind to a user object if no exception create custom authentication ticket. 3) But I also needed Role based security ...more >>


DevelopmentNow Blog