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 > january 2004 > threads for wednesday january 14

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

HtmlInputFile control looses information after post back.
Posted by shimonsim NO[at]SPAM talamus.com at 1/14/2004 11:42:58 PM
Hi, I need to upload pictures from client machine and I am using HtmlInputFile control I set validator to make sure that file has correct expention but if one of the files has incorrect extention all information in other controls gets lost. I can't find the way to save pathes and then assign the...more >>

Rectangle object in asp.net?
Posted by Kenneth at 1/14/2004 11:38:07 PM
Hi, Is there in asp.net any object that could be used as a rectangle with borderwidth (and colors)? I can't find any such control in the Toolbox in VS.NET ide. Like a placeholder but with visible borders. TIA /Kenneth...more >>

Server.Mappath
Posted by Onur Bozkurt at 1/14/2004 10:45:11 PM
I can't use Server.Mappath() inside a class file. Is there any way to do this..? ...more >>

newbie: user control question
Posted by Markus at 1/14/2004 10:41:20 PM
Hi all! Currently I have some asp.net pages that nearly implement the same functionality - so I would like to combine them into one user control. My question is: is it possible to pass parameters to the user control's constructor? I would like to specify a parameter that tells the control what...more >>

Header/Footer Block Control Idea, but not Templated Control
Posted by John Crowley at 1/14/2004 10:35:50 PM
I keep running into this over and over again... I want a block server control that renders a header and footer, and child controls in between. But I don't want a templated control, for the following reasons: 1) Render blocks are not allowed inside a templated control. 2) I want the inner cont...more >>

How To Call Javascript function in asp.net
Posted by hrishikesh at 1/14/2004 10:32:05 PM
hi all can you tell me how to call javascript function in .aspx page i want to call it on onclick of button this codebehind code giving me some other problem like The viewstate is invalid for this page and might be corrupted. but it goes to that page Private Sub Button1_Click(ByVal send...more >>

What does the 'Pointer' Web Server Control do?
Posted by Bruce W.1 at 1/14/2004 10:25:38 PM
It's there on the Visual Studio toolbar. The framework docs and a Usenet search turned up nothing. What is the Pointer Web Server Control? What does it do? Thanks for your help....more >>

Adding WebControls in HttpHandlers
Posted by Rajagopalan at 1/14/2004 10:15:56 PM
Hi, Can I add Web controls from HttpHandlers? say In Handler's ProcessRequest ProcessRquest(HttpContext context) { TextBox t1 = new TextBox(); I want this control to be rendered ... } Thanks, Rajagopalan V...more >>



DoPostBack from Popup (Child) Window
Posted by nathan_burleson NO[at]SPAM yahoo.com at 1/14/2004 9:55:30 PM
Hello, I have a custom control that is used to select a location from a list of locations. When put on the page it creates an asp:textbox (used to display the name of the location), a hidden field (which stores the primary key of the location from the DB) and an image button. When you click t...more >>

**BUG** Loading Images from Stream into aspx-Webform
Posted by Detlef Hüttenbach at 1/14/2004 9:34:26 PM
Whereas loading tiffs and pngs from file into an Image WebControl work, the images aren't shown when loaded from streams: In a WebForm, the image's property "ImageUrl" is set to a handler, and this handler gets the image from a database. Please check the various image formats. (The images are ...more >>

Anoying Message
Posted by Andrew J at 1/14/2004 9:31:33 PM
I have a site created with asp.net & viewing through IE 6.0.2 browsers. My javascript code submits a form of one of the pages and after that everytime you do a refresh or submit you get the message "The page cannot be refreshed without resending the information. Click Retry to send the in...more >>

data binding in label field
Posted by Grey at 1/14/2004 8:52:28 PM
I want to know how to dynamically bind the data in label field. My requirement is that I need to display a label with a data which is retrieved from preceding page and I want to use the data binding method to do that. Can I use ViewState to store the value in the preceding page and then pass to ...more >>

UserName always shows ASPNET
Posted by moid at 1/14/2004 8:47:17 PM
im getting "ASPNET" user when im WindowsIdentity.GetCurrent().Name.ToString how shud i get username that is currently connected to web based application (webforms) im not using active directory and im also unchecked Anonymous Access from IIS Regards Moid Iqbal ...more >>

OWC on Server
Posted by Stefan Hirtbach at 1/14/2004 8:21:50 PM
Hi, I have to generate excel-files which have to include macros and color on a Server with my C#/asp.net-program and save them to disk. As it is a Server there must not be any office application installed. the Files must be Excel 2000+ compatible. I thought QWC might be the answer but it seems t...more >>

Consistent Look and Feel
Posted by Nick at 1/14/2004 7:56:19 PM
Hi, I am wondering what people do to achieve a consistent look and feel for their websites? Does anybody here do anything similar to the Composite View design pattern, where a view renderer effectively reads a configuration and builds up the HTML by choosing particular views based on state and...more >>

INserting Text
Posted by Yama at 1/14/2004 6:13:14 PM
Hello, Can someone tell me how to insert text into a table containing a TEXT field? How to update? I would like to create a stored procedure that take a text parameter and inserts it into a new column in my table. Then do the same stored procedure but this time to update the TEXT field. ...more >>

How to show Confirmation message box?
Posted by Ron Clarke at 1/14/2004 5:27:38 PM
I have a small web app that displays data from a SQL Server database. Using a DataGrid control on a page, the user can delete a row from the database. This works fine. But I want to prompt the user for confirmation ("Are you sure...") before deleting the record. How can I do this from the ASP.NET...more >>

Different DataList fields on PageLoad (Repost)
Posted by Stephan Bour at 1/14/2004 5:17:04 PM
I repost this since I know how much some list people hate html posts ;-) Hi, I have a query page were users can check previous orders according to a number of parameters. The query results are presented in a datalist and the datasource is a sql query. Since I capture the user name at logon, I...more >>

Page_Load event
Posted by Roger at 1/14/2004 5:12:06 PM
My page_load event doesn't fire if I close my browser and reopen it to the same page. Any reason why? Is there something I need to set in my web.config or global.asax? Right now, I don't have anything in either of those files? Thanks, Roger ...more >>

Query returns nothing
Posted by Bijoy Naick at 1/14/2004 4:49:36 PM
I am new to asp.net and having some trouble with a page.. First, here is the code.. The script section goes in the head. The body contains the datagrid line.. <script language="vb" runat="server"> Sub Page_Load(Source as Object, E As EventArgs) Dim myConnection as SqlConnection D...more >>

CS1595 - defined in Multiple places; using definition
Posted by jhe at 1/14/2004 4:47:24 PM
I have a user control HeaderControl which was shared by multiple Asp.Net Pages (.aspx), sometimes when I make some changes to our website and restart iis, it will have the CS1595 error, but when I change something (for example, add a space) in the HeaderControl.ascx, it will work correctl...more >>

Array property
Posted by André Almeida Maldonado at 1/14/2004 4:32:30 PM
Hy guys... I'm creating a class (class.vb), and need to create a property that will be an array... How can I do it???? thank's ...more >>

Users and groups on windows server 2003
Posted by Steffen Loringer at 1/14/2004 4:07:07 PM
Hi, my asp.net application is running fine on my development system. The application opens an access database and needs therefore write permissions. If I copy my complete folder on a Windows Server 2003 environment it's not working anymore. The website is accessible till the point when the...more >>

get Server path
Posted by Grey at 1/14/2004 3:51:47 PM
How to get the server application path in ASP.NET. Suppose I create a = application called "TestASP", what function in ASP.NET I can use to = retrieve the "C:\Inetpub\wwwroot\TestASP\". Milliion Thanks.....more >>

How to allow my ASPNET application to create a file?
Posted by SWu at 1/14/2004 3:21:44 PM
Hi all Could someone tell me how to give my app permission to create a file in a subfolder? At the moment, I am getting 'Access to the path "C:\Inetpub\wwwroot\myWeb\uploadedfiles\temp.pdf" is denied'. Any help anyone can give me urgently would be greatly appreciated. Thanks, Stephen ...more >>

C++ Runtime DLL's needed in application.. best way to grant security?
Posted by James Radke at 1/14/2004 3:21:11 PM
Hello, I have an asp.net application (using vb.net codebehind), that is calling some older c++ dlls. These dlls require the use of the c++ Runtime which is in the windows/System32 directories. What is the best way to get access to these directories for the web application? Add the securit...more >>

Date Formating
Posted by Fabiano at 1/14/2004 3:18:55 PM
Please, how can i format a date/time when presenting it to the user? My problem is that i get the date information from my SQL Server database and then show it at my web page. I need to show it in a specific format like DD/MM/YYYY tks in adv. Fabiano ...more >>

Casting!!!?!?!?!?
Posted by André Almeida Maldonado at 1/14/2004 3:07:34 PM
Hi, I need to pass an array to my class property and when I call the class constructor, I receive a cast error: "Conversion not specified" I am declaring my array of the following way: Dim arrCampos() as String and my constructor is: Public Sub New(ByVal strCons As String, ByVal arrA...more >>

Validator positioning.
Posted by Frank Rizzo at 1/14/2004 2:56:53 PM
My web page is in the FlowLayout Mode. I have 2 validators for a textbox field: a RequiredFieldValidator and RegularExpressionValidator – essentially to make sure that the user entered something into the Email textbox and to make sure that whatever is entered is syntactically a valid email....more >>

How to make other browsers work well with my asp.net app?
Posted by Frank Rizzo at 1/14/2004 2:55:41 PM
I am trying to make sure that my app works fine with browsers other than IE. I am finding that many features simply don’t work on other browsers. For instance, the Validators are actually doing validations on server, rather than on the client. I know for sure that Mozilla or Opera or what...more >>

Renaming IIS wwwroot directories
Posted by Jason B at 1/14/2004 2:44:01 PM
Hello, I have been trying to figure out how to rename my IIS directories and still have the project be able to run through VS. I have renamed the directories listed in the csproj.webinfo file and this allowed me to at least load the project into Visual Studio. However, if I try to run the asp.ne...more >>

Dropdownlist
Posted by Douglas Gage at 1/14/2004 2:40:36 PM
Hi All I have dropdown list want to look like this Select Here A B C D E My database has A B C D When I bound this to my dropdownlist I have this A B C D I would like to know how i can make it look like the one i described above without inserting "Select Here" into the d...more >>

Print
Posted by brian at 1/14/2004 2:34:35 PM
I see on some pages that you read the text articles of a page. But then there is an option to print the article. The option formats the text into a printer friendly version. Does anyone know what is happening at that point? Thanks...more >>

Problem Running ASP.NET
Posted by jdmurphy666 NO[at]SPAM netscape-dot-net.no-spam.invalid at 1/14/2004 2:19:22 PM
Hi, I am running Visual Studio .NET 2003 on a Windows XP Professional machine and when i try to create a new ASP.NET Web Application it comes up with the following message... "Visual Studio .NET has detected that the specified server is not running ASP.NET Version 1.1. You will be unable t...more >>

Variable Definition...
Posted by jdmurphy666 NO[at]SPAM netscape-dot-net.no-spam.invalid at 1/14/2004 2:19:19 PM
Hi, I'm new to ASP.NET and have a problem which i'm hoping will be easy to answer... i have only used VB, HTML and Flash up until now! I am designing an ASP page which uses OleDb to retrieve data from an access database and show it on screen... however, i want the viewer to be able to selec...more >>

What is Page.DataBind doing? For what is this useful?
Posted by Andreas Klemt at 1/14/2004 2:17:47 PM
Hello, for what is Page.DataBind useful and what is it doing? Thanks for any answer! Andreas ...more >>

For what use LABELS (left of the code) in Visual Basic Code?
Posted by Andreas Klemt at 1/14/2004 2:10:29 PM
Hello, for what is the LABEL good when programming in visual studio like this: Sub xxxx Label1: xxxx xxxx xxx Label2: xxxxx End Sub For what do I need or can use "Label1" and "Label2" in my Visual Studio Code ? Thanks...more >>

Memory Copy in C#
Posted by tashr NO[at]SPAM kc-automation.com at 1/14/2004 1:55:12 PM
I am new to C# and have searched for an answer to this problem, but haven't found anything that I understand. Maybe someone can point me in the right direction. I have a VB6 project I am trying to rewrite in C#. It talks to a specific device using a COM server component. There is a method to...more >>

Data Sets
Posted by brian at 1/14/2004 1:51:43 PM
I tried opening 2 readers with the same connection and soon found out that can't be done. I found out I need to use a data set because that is a disconnected set. Can someone tell me how to create a data set? And also (mainly) to search through the data set for a particular record as yo...more >>

JIT on ASP.Net
Posted by John at 1/14/2004 1:34:33 PM
Hi, We have a large asp.net app and have a copy out on the web on a shared server. I believe that the first time you run any portion (.aspx) of the app for the first time the code gets compiled. I have observed that the second time I run the same .aspx it fires up much faster. I guess ...more >>

Slow entries
Posted by John at 1/14/2004 1:28:48 PM
Hi, We have a large Solution that compiles to one application. Lately it has become very slow when you enter some new code. If I type in a line of code and hit the Enter key it sits for a few seconds every time. I suspect it has to do with the real time error checking that VB does. ...more >>

Uploading files using WebClient
Posted by Mariela at 1/14/2004 1:27:31 PM
I am trying to run the following C# code: ---------------------------------------- String uriString = "http://10.1.1.100/images/"; WebClient myWebClient = new WebClient(); string fileName = "C:\\agoodfriend.jpg"; byte[] responseArray = myWebClient.UploadFile (uriString,"POST",fileName); ----...more >>

Clietn ID
Posted by John at 1/14/2004 1:15:28 PM
Hi, I have an asp.net application. I'd like to limit the companies using it to a set number of users logged in at any one time. However, some users, on a single client PC might want to have multiple browser sessions open at one time and I only want to count this as one user. I was h...more >>

Visual Inheritance with ASP.NET
Posted by Gopal Prabhakaran at 1/14/2004 1:14:02 PM
Hi Pls Help me to do Visual Inheritance with ASP.NET -- Thanx Gopal Prabhakaran ...more >>

SQL Query good practices?
Posted by Russ at 1/14/2004 1:00:30 PM
In what situations is it a good practice to use a transaction with a SQL query so you can rollback the changes if necessary? ...more >>

Problems using a winforms control as an object in Internet Explorer
Posted by John Boghossian at 1/14/2004 12:56:18 PM
I know this isn´t spot on for this group, but the problem relates to an asp.net project i am working on. I am trying to develop an windows forms control to be used in IE in an intranet solution. The control lists documents attached to an specific item. The control supports drag/drop and autom...more >>

Registering
Posted by AWD at 1/14/2004 12:33:03 PM
I have an ASP.NET 2003 application taht is contains MSXML5.DLL in the reference list. SO far I have only seen this library available with Visio 2003. My problem is that when I attempt to install my app on the server I get the following message taht does not permit me to properly install ...more >>

Web Servers
Posted by Timothy V at 1/14/2004 12:27:28 PM
Hi, I probably shouldn't ask this here :-p but i don't really know where else to ask. Are there any other web servers other than IIS that run ASP.NET pages? (its a research question) Thanks, Timothy. ...more >>

How do you get the getElementById in a DataGrid?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 1/14/2004 12:15:03 PM
They have no id name to get it from? So if I have row how do I reference its data? I want to return the data to a calling window. Thanks....more >>

Why can't I execute Javascript in a modal dialog window?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 1/14/2004 12:12:06 PM
I have a parent window: <script language="javascript"> function doSearch() { result=showModalDialog("searchmni.aspx?lastname=smith"); alert(result); } </script> <input id="btnOpenSearch" onclick="doSearch();" type="button" value="search" runat="server" text="Button" /> <...more >>

setting <body> attributes
Posted by James Cooke at 1/14/2004 11:43:36 AM
I want to set body attributes programmatically, from the module file: I can go into the .aspx file and say <body onload="myFunc()"> but I don't want to. Like you do with a textbox control: txtCustomer.Attributes("onblur") = "myFunc()" I would like to do the same with the <body> tag. An...more >>

ASP.NET Button and VB.NET Windows Form EXE
Posted by IntraRELY at 1/14/2004 11:31:14 AM
I am using the following command to launch and .NET VB Executable, which is a simple Windows Form (printCheckClient.exe). I am using a HyperLink Control and works perfect. hlPrintChecks.NavigateUrl = "javascript:var newWindow =window.open('printCheckClient.exe', 1,'height=350,width=350,menubar=...more >>

Display img from database
Posted by Shawn at 1/14/2004 11:25:26 AM
Hi. I need to display images stored in a Sybase db. I know I can do it like this: Response.ContentType = "image/gif" Response.BinaryWrite(objRS("Picture")) But then I have to show the image in it's own page. What I need to do is be able to show the image in an image control. Is that possi...more >>

Autocomplete combo box in ASP.NET
Posted by Grey at 1/14/2004 11:24:13 AM
I want to know that how to design an autocomplete combo box in ASP.NET = with C#? There is no combo box control available for use in the ASP.NET. = Is it possible to design such kind of combo box in ASP.NET with C#. If = so, what additional controls I need to add?? Million Thanks.. Eric...more >>

WebControl ZOrder problem
Posted by Mike Hardy at 1/14/2004 11:18:07 AM
Hi, I have a page with dropdown menus in layers. In this page there is also a IFrame loading another page with some combobox in it. My problem is this, when I hover on my menu to show the dropdown the combobox is on top of the layer. Is there a way to have the layer on top of the combobo...more >>

Getting the network login
Posted by Fabiano at 1/14/2004 11:01:07 AM
Please, I need to control the user acess into my intranet pages. Is there a way i can get the current user logged at my network, that is acessing a specific page? My idea is to get the user login, if it was nnn let the user access otherwise block data. Tks in adv. Fabiano ...more >>

asp:Table DataBind method?
Posted by Marty McDonald at 1/14/2004 10:55:36 AM
I have <asp:Table... </asp:Table> on my webform. In codebehind, I populate a DataTable whose data should appear in the asp:Table. I created my own code to populate the asp:Table with the DataTable, then I discovered the asp:Table has a DataBind method. But the method takes no args and so I'm ...more >>

User control from Form to ASP.NET application
Posted by drewtenn NO[at]SPAM yahoo.com at 1/14/2004 10:49:28 AM
I have a user control written in C#. This user control uses some of my mixed mode C++ libraries. My user control is currently residing on a .NET Windows Form. Everything works nicely. Now I am trying to use this control on a ASP web page. I use the wizard (VS 2003) to create an ASP application...more >>

create and edit xml file.
Posted by Guoqi Zheng at 1/14/2004 10:44:51 AM
Dear sir, Dataset offer and nice method to write an xml file. However, I do not know how can I add extra attribute to this xml file. The following is my script to creat a XML file, I want to add <?xml version="1.0" encoding="UTF-8"?> <productFeed version="0" timestamp="20040105:22:00:05"> on ...more >>

aspnet wp recycling.
Posted by adam at 1/14/2004 10:32:46 AM
Hi I Have a problem with and asp.net application recycling. ON the development machines it works fine, but on the clients machine it keeps recycling. When some users access the app, the browser returns a Server Application Unavailable message. In the event log there is an error asp...more >>

Newbie Question
Posted by b_naick NO[at]SPAM yahoo.ca at 1/14/2004 10:31:26 AM
I am new to .net and have a question about a very simple aspx page. I have a form in the body section of my page.. <form runat="server"> <asp:Button ID="Go" Runat="server" Text="Go"/> <br> <asp:Label text="Default" ID="UserName" Runat="server"/> </form> In teh head section of th...more >>

Sessions across multiple projects
Posted by Stanley Glass at 1/14/2004 10:30:08 AM
Ok I have our Intranet up and I want to add a new project to run under the intranet, making use of its sessions.However, when I move the new project to the dev system (removing the globabl.asax and web.config) the session variables are not there in the second app. The second app is a virtual dir...more >>

Problem with System.Diagnostics.Process in ASP .NET
Posted by Ron Fidel at 1/14/2004 10:22:33 AM
Hi, I'm not able to run external applications from ASP .NET (C#) with the Process class. The program appears in the Windows Task Manager but doesn't run. ...more >>

User control instead of include
Posted by Andrea Williams at 1/14/2004 10:21:12 AM
I'm trying to set up a user control and change some values from the aspx page, but I keep running into trouble. What I really would like to do is be able to set a Label.Text in the user control from an aspx page. If I open up a static method to set the Label in the code-behind of the user con...more >>

ASP App. Not Showing ASP Controls
Posted by G. Howard at 1/14/2004 9:42:56 AM
We are just beginning with ASP.NET. I've got a test app. I'm running on a Win 2003 Server that gathers input from a user and updates a database. None of the .NET controls (text boxes, etc.) are visible on the Web page, only the HTML code seems to work. The .NET Framework SDK is installe...more >>

How to show dates in yyyy-MM-dd format
Posted by Kenneth at 1/14/2004 9:29:38 AM
Hi, I have installed VS.NET 2000 on an english version of windows 2000 professional and in control panel I've chosen Regional Options and on the general Tab I have Swedish in Your locale(location). In the Input Locales tab I have Swedish as the only language and set as default. In the D...more >>

Redirect User to another page after some interval
Posted by New ASP.NET User at 1/14/2004 8:41:47 AM
I want user to redirect to another page after some interval. I used Httpresponse Page object (Response.redirect("default.aspx") but it transfers right a way... Any itdeas... Thanks in Advance......more >>

Request.QueryString.Set() Read Only?
Posted by Steve at 1/14/2004 8:31:43 AM
Hi- I'd like to set values in the QueryString if I detect that a user submits a bad value, say... ?id=333 where there is no id '333', I would like to set it to '0' for example. I tried to use Request.QueryString.Set("id", "0"); it says it is Read Only. How can this be done? Why is there a...more >>

Showing a Please Wait page
Posted by matt NO[at]SPAM mattculbreth.com at 1/14/2004 8:23:45 AM
Hello, I've got a fairly typical request to show a "Plese Wait" page while a long process is running. In this case, the user fills out a form, presses the button, a process searches for items, and in about 6 seconds it is returned. I've read up on the normal ways of doing this with a new T...more >>

Referencing assembly from GAC using @assembly fails
Posted by buffob1 NO[at]SPAM msn.com at 1/14/2004 7:42:54 AM
I have strong named an assembly and installed it into the GAC. I have copied the same assembly to a local folder and made reference to it and set 'Copy Local' to false in the VS IDE, so that my code compiles. Then I put the @assembly directive in the html code like this: <%@ Assembly Name="MPC...more >>

Execute server code without complete page refresh (XMLHTTP)
Posted by Matt at 1/14/2004 6:10:00 AM
Is there a way to execute server code without doing a complete page refresh in .Net? I have an ASP page to convert that uses XMLHTTP and I'm wondering if I should continue to use it in ASPX or do something else. The XMLHTTP is used in ASP to populate drop down boxes based on user input withou...more >>

How can I get the breakdown of memory taken by aspnet_wp?
Posted by Stan at 1/14/2004 5:48:02 AM
There was a number of postings about aspnet_wp worker process taking too much memory and eventually choking the webserver. One issue is still not clear to me - how can I narrow it down to an application that is a culprit? Suppose, there are three applications on the webserver and each ...more >>

editable data grid.....
Posted by atif_butt82 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/14/2004 5:18:24 AM
i m using webmatrix n i hav a prob with editable data grid. i hav set the data grid with to 100% when i load the page the data grid fits into the screen 100%. but when i clicked on add new or on update that a horizontal scroll bar used to appear n i m unable to read all the records i hav to scro...more >>

Dynamic inputs in ASP.net
Posted by Griffen at 1/14/2004 4:44:20 AM
Is it possible to Dynamically input ASP pages in .net ...more >>

Multithreading in Application_Error event handler?
Posted by ruimariano NO[at]SPAM hotmail.com at 1/14/2004 4:32:53 AM
Hi, In Application_Error (global.asax) i'm sending the details of the exception to a file (opening and closing file each time). I'm using the same file (eg, log.txt) for all logs. Are the calls to this method serialized? It's possible that, when trying to write to the file, the file is...more >>

To connect to a Sql Database
Posted by cesar_casafont NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/14/2004 4:18:06 AM
Hi !, I want to connect my ASP.NET pages to my Sql Database in order to make different operations with it. I use VB as language, and I do not have any type of connection established yet. Somebody can help me and advise in how can I do it with an efficient and practical way? (code to connect a...more >>

Client side script integration
Posted by P McGinness at 1/14/2004 3:57:32 AM
What's the best way to do the following: I've a radio button (yes/no) and 20 fields on a form. 10 of the fields should be validated if yes is clicked and 10 should be validated when no is clicked. The contents of the summary should change as appropriate. The problem is that code I spec...more >>

advice on querying DB
Posted by Mark at 1/14/2004 2:46:19 AM
Hi i have 2 tables on seperate DBs (lets say localDB and NotLocalDB, seperate servers!) I want to cycle through the BookingRef Field in LocalDB and query NotLocalDB with the bookingRefs Then i want to return the IDs from NotLocalDB where they match what I need to know is efficency, and ...more >>

Auto-generated code getting lost
Posted by Heiko Milke at 1/14/2004 2:40:06 AM
When working with Visual Studio 2003 it sometimes happens that auto-generated code gets lost. I have an .aspx page with its parental c# codebehind page. When creating a webform using the studio there is a section for auto-generated code. Within this region there is a function "InitializeCompo...more >>

Return ID from a select
Posted by Mark at 1/14/2004 2:15:24 AM
Hi I want to return the ID of a table based on a select I've not tested the following code, does it look ok? <code> Dim Con As New SqlClient.SqlConnection Con.ConnectionString = ConfigurationSettings.AppSettings("ConnString") Con.Open() 'generate s...more >>

When programming with Visual Studio in code. What means the Label in code?
Posted by Andreas Klemt at 1/14/2004 2:15:05 AM
Hello, for what is the label good when programming in visual studio like this: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Label1: If Page.IsPostBack Then DoThis() End If ...more >>

Design time rendering of a composite custom web control
Posted by Barry Carr at 1/14/2004 1:17:54 AM
Hi, I've created a composite custom web control and a ControlDesigner descendant to render the control a design time. The child controls are public properties of composite control and as such the child controls appear in the property inspector as sub-properties of the main control and c...more >>

combinning more than web application in the same solution
Posted by yasmine at 1/14/2004 12:51:06 AM
hi ; I would like to ask according to the features of .net framework ,we can write application in any language. Suppose I have 2 web applications one written by VB.net and other by Visual C#,last web form in VB.net web application will be directed to 1st page in Visual C# web application. ...more >>

Insert Mutiple row into database
Posted by Hai Nguyen at 1/14/2004 12:28:41 AM
Hi all I was attempting to insert multiple row by using a loop into a = database.A table has 2 primary keys and one regular field (PR) (PR)=20 ID Project Ans 1 2 a 1 3 b 1 4 c 1 5 d 1 5 ...more >>


DevelopmentNow Blog