Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net > december 2003 > threads for friday december 12

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

pass value of a variable to user control
Posted by Hermit Dave at 12/12/2003 11:43:31 PM
Hi, Trying to pass a value to user control within a page. 1. Couldnt find a way to pass it from code behind file. 2. Trying to pass it from aspx page... using EditURL='<% "mypage.aspx?myvar=" + myvalue %>' assigns value of EditURL='' I have tried using a local variable... directly trying to r...more >>


Passing 'Variable" into ASP project using VB
Posted by Larry at 12/12/2003 10:50:24 PM
Very new at ASP in dotnet. If I put a variable in the URL such as http://mysite/myapp.aspx?variable=123 how do I retrieve the variable from my asp code so that I can use that value to determine what I send on my page??? Thanks, Larry ...more >>

using class library in web application
Posted by Saifee at 12/12/2003 10:16:58 PM
Hi, I have a class library project in which i have made some classes.I compile it into a dll and reference it in a asp.net web application. But each time I make changes in the class library project, for cahnges to reflect I have to remove the refernce form the web application and add the r...more >>

Preventing page load directly
Posted by VJ at 12/12/2003 9:05:39 PM
I have a ASP.NET page Main.aspx with 4 frames. The center frame loads the login.aspx file. The other three load gif file or html files. The Main.aspx is the start page for my website Now I am able to re-direct to this Main.aspx when the user tries to navigate to any page in the website. I am n...more >>

Render HTML text in the Response object
Posted by Paul Turley at 12/12/2003 8:56:46 PM
I have a string (or byte array) containing an entire page definition not contained in a file ("<htm><head>...</head><body>...</body></html>") that I need to render when the user clicks a button. Can I send this string to the Reponse object? This "page" is the response. FYI, this is the conte...more >>

I can't debug asp.net app in DC at windows 2000
Posted by moon at 12/12/2003 8:32:43 PM
hi. i have a big problem in solving compile asp.net app. compiling without debugging is running well. but, when compiling with debugging , I emereged that situation. " there is an error during processing project. webserver can't start debugging . access is denied " I search and ...more >>

A simple question
Posted by luca at 12/12/2003 8:23:20 PM
How can I read the value of a TextBox (id=TextBox1)control during the InitializeComponent (OnInit) stage? TextBox1.Text property is stll null (I can get its value in PageLoad stage) and the same is for: Request.ServerVariables["TextBox1"] and Request.QueryString["TextBox1"] which are always empt...more >>

Newbie: Where to start
Posted by John at 12/12/2003 8:13:22 PM
Hi I have an asp background. I need to start a long term project with access backend that would be evolved over a period of time. A flexible and easily extensible infrastructure is highly desirable. Is there a site that I can use as model of good practices or a template that I can start with? ...more >>



Writing to database before HTTP POST
Posted by Erik at 12/12/2003 8:02:03 PM
I'm building an e-commerce app. I need to write the user's order data to a SQL Server database before sending the order data to the credit card processor's secure server (which is a different domain) via an HTTP POST. I have the database routines working, but haven't figured out how to se...more >>

Init event does not fire
Posted by J.Marsch at 12/12/2003 7:39:36 PM
I must be missing something here: The Init event for controls does not seem to fire. What I did: Drop a textbox on a blank webform, hook the textbox's Init event. Code: this.Textbox1.Value = "Hello World"; The textbox comes up blank, and if I set a breakpoint on that line of code, I find...more >>

Persisting a table web control
Posted by John Smith Jr. at 12/12/2003 7:36:48 PM
I am looking for some way to persist a table web control so when page_load event comes up, i can display the table as it was. I tried using ViewState with the rows collection but that didn't work to well as I got an error trying to put rows collection in the viewstate. My problem is this: ...more >>

session id
Posted by Shawn at 12/12/2003 6:01:39 PM
Hi. Is it possible to get the value of the session id when a session is created? Thanks, Shawn ...more >>

Error running ASP page after 1 hour time span
Posted by Roy at 12/12/2003 5:46:13 PM
I have an ASP page that I an using to read from one data base and load into another. This ASP takes more than an hour to execute. After abount an hour to an hour and a half I get the error "Cannot find server or DNS Error". I think that the ASP is still running since I can query the data base and ...more >>

Event firing with dynamically added server controls
Posted by MS Newsgroups at 12/12/2003 5:28:18 PM
Hi, I have a scenario where I am dynamically adding a control from code when a controls event is fired. The problem I have is that when the newly created control is clicked, the click event does not fire. I have written a simple demonstration that reproduces the problem and would appreciate if s...more >>

.style.display = "None" won't stick
Posted by Sue at 12/12/2003 5:10:10 PM
Help! I have an asp table with an embedded table. The asp tablerow that contains this table has a static ID assigned of "FilterRow2" (see snippets of code below). When I click on the button to set the tablerow style property to "None", the row (And embedded table) briefly disappear, but th...more >>

Download from button click
Posted by John Smith Jr. at 12/12/2003 5:04:11 PM
Is there a way to have the server send a file to client (ie download) from a button click and a filename string? ...more >>

File.Delete from ASP.NET
Posted by John Smith Jr. at 12/12/2003 4:55:17 PM
I am trying to do a File.Delete(filename) from ASP.NET and I keep getting an error access denied. I have granted Full Control over the entire directory the file is in to ASP machine account. ...more >>

(newbie) insert into linked tables ?
Posted by neverstill at 12/12/2003 4:35:01 PM
Hi- I have 2 tables [prod_Main] ProdId int Name varchar ImgId tinyint [Prod_Imgs] ImgId tinyint ProdId tinyint PathTn varchar PathBig varchar OK, when I want to INSERT a new record with a sproc, I have a bit of a challenge he...more >>

MS DataAccess Block and Stored Procedure Output Parameter
Posted by Craig Buchanan at 12/12/2003 4:11:47 PM
Has any one been able to get MS DataAccess Block code to populate a return parameter in the ExecuteReader method? If so, how? Thanks, Craig Buchanan ...more >>

Image download upload display problems on aspx (code pasted in)
Posted by akarchm01_nospam NO[at]SPAM yahoo.com at 12/12/2003 3:51:52 PM
I am having difficulty retrieving images from a SQL database. Here is the code I use to UPLOAD the image to the database: <form id="Form1" method="post" enctype="multipart/form-data" runat="server"> <INPUT id="UploadedImageFile" runat=server type="file" size="86"> </form> Codebehind ...more >>

Server.Transfer( ... ) between apps
Posted by mg at 12/12/2003 3:42:45 PM
I have two apps off wwwroot: App1/WebForm1.aspx App2/WebForm1.aspx In the code behind of App1/WebForm1.aspx, I have private void Button1_Click(object sender, System.EventArgs e) { Server.Transfer("/App2/WebForm1.aspx"); } But, App2/WebForm1.aspx doesn't load. Any help...more >>

please help with the publising a .net web app.
Posted by Sedat Eyuboglu at 12/12/2003 3:30:34 PM
How can i publish my .net application to the remote server. i developed classes and build the all application on my server there is no error. All thigs ok. but on the server i couldn't run it. i think there is an error with the publishing. What is the rules for publishing a .net app to the remot...more >>

a CrystalDecisions error!!
Posted by Volkan Karaboưa at 12/12/2003 3:30:33 PM
I have an aspx that contains a report prepared with crystal report, when I try to run myapp. on another server which has no crystal report tool installed on it. I receive following error code even I copid crystal's dll files bin directory of myapp. Error:"CrystalDecisions.CrystalReports.Engin...more >>

How to put Applet code in aspx page?
Posted by Amil at 12/12/2003 3:20:24 PM
What's the best way to place a Java Applet into an aspx page. I use code-behind and pretty much use all .net controls to insert stuff. I figured I could use a LiteralControl object, but didn't know if there was a better way. Amil ...more >>

System.Web.UI.Page Inheritance
Posted by dan at 12/12/2003 3:11:52 PM
I have created a class called BasePage that inherits from System.Web.UI.Page so that I can implement a "template" for all pages in an app. My BasePage class is in a class library project and there is also a web app in the same solution that has a project reference back to the class library...more >>

Problem with missing button clicks
Posted by John Smith Jr. at 12/12/2003 2:41:48 PM
I have a very strange problem, I am dynamically creating buttons and events, when page loads the first click works fine, every click there after the event only fires every other click. I made a listbox, and showed when each method fires, and it shows First Click: Page_load, Click Event, Next...more >>

Maximizing an aspx page
Posted by Scott at 12/12/2003 2:38:06 PM
Anyone know how to make sure a screen is maximized everytime it is opened by a user? Scott ...more >>

Recommended book
Posted by Peter Larsson at 12/12/2003 2:32:18 PM
Hi, I'm an experienced ASP programmer who want to learn about ASP.NET. I'm looking for a book that is preferably tailored toward people with previous ASP experience, and I'm wondering if any of you out there could give me a good recommendation? The most important thing is that it's a good bo...more >>

3-Tier Development
Posted by Bernardo Heynemann at 12/12/2003 2:29:05 PM
I´m building a web project manager in ASP.net. So i´m using the 3-tier architecture... I´m using an interface layer, a business layer and a database access layer... I need an opinion from you more experienced guys. I have a class DBObjects that returns the correct ADO.NET object for the data...more >>

Web Form Performance Versus Single File Performance
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 12/12/2003 2:28:53 PM
Those of you who use Visual Studio, do you find a big performance difference between the single file model and the web form / class behind form model? I am trying to justify purchasing Visual Studio ..NET and want the "extended features" (compiling the .net page) to be one of the reasons. Th...more >>

get the selected value of the asp:dropdownlist in javascript
Posted by Thierry at 12/12/2003 2:20:14 PM
Hi, Is it possible to get the value of an asp:dropdownlist in javascript. I need to get that value to assign it to a hyperlink. This does not work: document.FormEditCustomer.DDListVatCountry.selectedIndex <script language="javascript"> function GetVatPopup() { VATChe...more >>

datagrid/list vs. roll-your-own ASP templates?
Posted by darrel at 12/12/2003 2:14:26 PM
I'm new to ASP in general. Have been doing a bunch of stuff using classic ASP and a bit of stuff with ASP.NET (all with VBscript). The .NET stuff i've been doing has been fairly simple...generating a report from an Access table. The Datagrid along with some TemplateColumns seemed to work well ...more >>

Code Behind Class File Question Do Most People Use This Design?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 12/12/2003 2:02:29 PM
I am still migrating from old ASP to ASP.NET with VB.NET. I created an app as a single file type application and later found out about Visual Studio and code behind class files. Is that the predominant design method? Or just with Visual Studio (guess they are the only ones who can do it)? Do...more >>

Error while trying to run project: unable to start debugging on the web server
Posted by Matthew Louden at 12/12/2003 1:59:20 PM
When I created ASP.NET application, I tried both VB.NET and C#: Build | Rebuild Project is ok But Debug | Start yields the following error dialog: Error while trying to run project: unable to start debugging on the web server. The web server has been locked down and is blocking the DEBUG ver...more >>

Persist DataTable Values
Posted by Paul Perot at 12/12/2003 1:39:46 PM
Hi All: I have a DataTable that I have defined Globally. I populate this datatable dynamically with file/folder information that I read directly from the server. I use this datatable information to bind mainly to a DataGrid, but I would also like it to persist for the duration that I have a ...more >>

VS .NET 2003 and Dreamweaver
Posted by E. Wise at 12/12/2003 1:11:42 PM
I'm seeking some solid information on how I as a programmer can work with a Macromedia designer on my ASP .NET applications. Here's the specific scenario: Company has a intranet area that is standard html made in dreamweaver, this is all maintained by another person. Currently, I have 7 or s...more >>

Can't set 403 status?
Posted by Steve - DND at 12/12/2003 12:50:04 PM
When certain conditions are met on my ASPX pages, I want to set the status of the response to 403, and have it handled by the custom 403 page I have specified in my web.config file. Unfortunately it's not working. In my ASPX page I have: .... Response.StatusCode = 403; .... In my web.conf...more >>

secure a download
Posted by TJS at 12/12/2003 12:47:44 PM
does ASP.net have a way to secure a delimited text file download ? ...more >>

multi-threading issues, ideas to solve?
Posted by Peter Row at 12/12/2003 12:21:44 PM
Hi, I have a VB6 webclass app that was ported to VB.NET. However due to multithreading now being used the global variables used have come to haunt me. Problem: I have a handful of global variables: A asp context wrapper object A database wrapper object A couple of others. ...more >>

Binding an ASCX?
Posted by cmay NO[at]SPAM walshgroup.com at 12/12/2003 11:59:32 AM
I have an ASCX (I think thats called a user control), with a public property of "TextStatic". I want to put this ASCX into a datagrid's template item and bind a data sources to the TextStatic property. Is there any way to do this? I tried setting <Bindable(true)> to the property, but that ...more >>

windows authentication to SQL Server
Posted by Mark at 12/12/2003 11:56:24 AM
Is there a way to use ASP.NET's windows authentication so that the user that is using our web page is the user that is connected to our SQL Server? This will allow us to leverage our domain roles/groups. Our connection string is below. The options I've found so far I don't like: 1. Imperson...more >>

custom client-side onClick events for asp:button
Posted by dinosaur8000 NO[at]SPAM yahoo.com at 12/12/2003 11:51:30 AM
Hi, I'm writing an asp app. I have a text box with a validator and a submit button. Here is code from my .aspx file.... <asp:TextBox ID="txName" TextMode="SingleLine" Runat="server" /> <asp:RequiredFieldValidator ID="vName" Runat=server ControlToValidate="txName" /> <asp:Button ID="btnSave"...more >>

Dynamically created validators - server side validation not working.
Posted by Tony at 12/12/2003 11:46:07 AM
Hi folks, I've got a bit of a problem. I have a situation where I build forms completely dynamically based on a form definition supplied from a database. Anyway, I noticed that required fields weren't validating on the server side, so I've whittled the code down to the example below which illu...more >>

DataAdapter using commandbuilder's commands, not it's own.
Posted by Marina at 12/12/2003 11:40:22 AM
The commands that are generated by the SqlCommandBuilder are not quite right. I am calling GetUpdateCommand and GetDeleteCommand, modifying the results, and assigning them to the UpdateCommand and DeleteCommand properties of the SqlDataAdapter. However, when the update runs, it looks like the ...more >>

Repeater question.
Posted by George Ter-Saakov at 12/12/2003 11:25:20 AM
I am showing a table using repeater control and template for row has a <asp:TextBox id=txtQuantity runat="server"> Where do i keep the record id in database for that row? Should i create the hidden field for each row or is there better solution? so later i could update it in the database. ...more >>

DataGrid and Read Only and autogenerated
Posted by Binny at 12/12/2003 11:13:13 AM
I have a DG with autogenerated columns. can i make a column readonly like the data key column. Thanks ...more >>

Newbie: Propably simple answer Checkbox_checked??
Posted by Norman Fritag at 12/12/2003 10:14:40 AM
Hi there I what to test a stored procedures on a web page using the normal connection string. the controls: Server, username,Password, database allow to select the appropriate Sql server database. Now I would use checkbox = Trusted connection as option to logon to the database. I guess th...more >>

using web control
Posted by serkan ulucan at 12/12/2003 10:10:29 AM
hi, I want to learn that whether we can arrange a text and an image as following, by using controls? Note that image source and text source are defined seperately in databasa. I want to update content independently.(when updating image database only image change, and when updating text data...more >>

Compile Error: The type or namespace name 'SQLDataSetCommand' could not be found
Posted by Matthew Louden at 12/12/2003 10:07:37 AM
using System.Data; using System.Data.SqlClient; //etc... SqlConnection conn = new SqlConnection(connString); SQLDataSetCommand myCmd = new SQLDataSetCommand("select * from Test;", conn); DataSet ds = new DataSet(); myCmd.FillDataSet(ds, "test"); Compile Error: The type or namespace name...more >>

How to clear the contents of a drop downlist?
Posted by Russ at 12/12/2003 10:05:48 AM
I have a page with 2 drop down lists, when a user selects something in the first dropdownlist the contens of the second change. How do I clear out all the list items in the second drop down list before I refill it again with the appropriate data? ...more >>

Submit button does nothing
Posted by johnjjj NO[at]SPAM yahoo.com at 12/12/2003 10:02:00 AM
I have a form with some asp.net fields and some validation controls. Then I added an asp:button. I run the app and when I hit the submit button, nothing happens. The page_load is not called and required vlidation control fon't fire up. All control have runat="server". I looked at the html ...more >>

Display Images In a datagrid
Posted by John Do at 12/12/2003 9:57:49 AM
Hi, I want to store the path and the name of the images in a sql 2000 database and all the images in a folder named images. And then I want to display all the images in a datagrid. Does any one know how to do it? Thanks in advance Jonh...more >>

AutoPostBack & Validation
Posted by Scott M. at 12/12/2003 9:51:09 AM
If I put RequiredFiledValidators on a page and set them up with corresponding TextBoxes everything works just fine. If I add a DropDownList and set its AutoPostBack to True, I am able to post data to the server WITHOUT the validators invoking their validation. It seems that the easiest soluti...more >>

query string too long
Posted by eddie wang at 12/12/2003 9:31:59 AM
The sqlStr string is too long in the following example and the ASP doesn't work. What is the work around? If using post method, any simple samples? Thanks. <a href="ExcelExport.asp?noIncludes=yes&sqlStr=<%=replace(Server.URLEncode( strSQl),"'","`")%>"> *** Sent via Developersdex http://...more >>

Looping through checkboxes
Posted by Amy Snyder at 12/12/2003 8:51:32 AM
This is my firt .NET project so please bear with me. I have a form of checkboxes and all I want to do is loop through them all after the page has been submitted and have their values added to a string. This was pretty simple using classic ASP but I can't seem to do it using .NET. I thought...more >>

Cursor wait, hide or show
Posted by mikee at 12/12/2003 8:46:04 AM
I am developing a program using VB.net. It's a web based program that use web controls. When the system display a checkboxlist, I immedately try to put up a popup screen. The problem is before the popup is complete the user can or may try to select more that a single selection. Is there a way to h...more >>

User Control Access from Javascript
Posted by trinitypete at 12/12/2003 7:06:42 AM
Hi all, I have a user control that uses control literal to build a heading with a link, and a div containing links below. As the link heading is hit, I want to change the style of the div, making it visible or not. Yep you guessed it, expanding tree type functionality. The header has ...more >>

smart nav = no unload event
Posted by hal at 12/12/2003 6:28:15 AM
I have an application that includes an activex component that consumes resources that must be released when the a page is unloaded. Toward this end I subscribe to the unload event of the body of my page in javascript. However, if I turn on smart navigation, any button that does a serve...more >>

Datagrid paging
Posted by enak at 12/12/2003 6:05:52 AM
I can not get my datagrid to page. I have a datagrid that I can sort 2 of the columns. This works great. I added paging and when I display the dg it shows 5 pages. (I am showing page numbers at the bottom of the dg.) When I click on the pages nothing happens until I get to the last page. ...more >>

ASP.net woes
Posted by Bob D at 12/12/2003 5:18:05 AM
2 issues we have run into during heavy volumes. Wondering if anyone else has seen these or knows of fixes/known issues, etc Item #1 We have run into an issue where by the aspnet_wp is stopping. In the event log we see things like "aspnet_wp.exe (PID: 2400) stopped unexpectedly." Inter...more >>

Form Submit Problem
Posted by Myk Quayce at 12/12/2003 5:02:13 AM
I have a small .aspx page that uses old style forms with client-side JavaScript validation. Everything works fine until I try to upate the database with some new information. I must be doing something fundamentally wrong because I can't find any help on this anywhere. Here's my HTML form... ...more >>

Take labels name ???
Posted by Giovane Calabrese at 12/12/2003 3:01:46 AM
( aspx + vb ) hi everyone ! I really need make that function work ! im brazilian , and i want to make a multilanguage system , that function above must look at all ASPX take the labels ID and send as a parameter ,... so Please , help me ,.. cause it doest work ! '-----------------------...more >>

Convert a smail php script in ASP
Posted by Jean Jacques Serpoul at 12/12/2003 12:05:24 AM
Hello, I have this small php script <? $ip=getenv(REMOTE_ADDR); $agent=getenv(HTTP_USER_AGENT); { $c_date=GetDate(time()); $x_day=$c_date["mday"]; $x_month=$c_date["mon"]; if ($c_date["mday"]*1<10) { $x_day="0".$c_date["mday"]; } if ($c_date["mon"]*1<10) { $x_month="0"....more >>

Help
Posted by Rajendra Prasad at 12/12/2003 12:00:22 AM
Hi friends, I am new to the ASP.NET environment. During web application development, I am frequently facing the following problem. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific ...more >>


DevelopmentNow Blog