microsoft.public.dotnet.framework.aspnet Archive - March 2003
Post a message to this list
Messages
Page: 12
HttpApplications (2 replies)
microsoft.public.dotnet.framework.aspnet
I'm kind of lost here may be some one can explain to me the following thing: Is there any way to gain access to the event Application Start (or Application OnStart as in the MSDN Library) through an IHttpModule or any other way besides in Global.asax... WBR Pavel Khijniak
Showing hourglass on submit (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I have found solutions for this problem in the newsgroups but somehow I cannot get them to work, so this is what I want to do: I want to show an hourglass when a submit button button is clicked (and show it during the round trip to server). I have tried numerous solutions, such as 1. assigning a client script function (e.g. 'hourglass' below) to the form's onsubmit event 2. assigning a client ...
reading a db table structure, please help (3 replies)
microsoft.public.dotnet.framework.aspnet
Hi all. how can I read a db table's structure (field types, length and so on...). I know I can get this info from datarows and datacolumns of a Table. But what if the table is EMPTY? I won't get any datarow, so... Thanx in advance bye
Multi Line Textbox to Array and back again (2 replies)
microsoft.public.dotnet.framework.aspnet
I need to write a user control that will convert a multi line textbox to an array of strings. What is the best approach to this? i.e. stringbuilder, manual arrays manip, etc. Thanks, Larry
How can I Format a String to Currency like 300.500,30 ? (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello, is there a fast way to convert any string to currency like ###.###,## ? Thanks, Andreas
Page_load executed twice! (3 replies)
microsoft.public.dotnet.framework.aspnet
Hello, Using trace Iam seeing that page load is being called twice. Iam already checking for (!PostBack). Thanks. jay
Page.IsPostBack and Button click events (3 replies)
microsoft.public.dotnet.framework.aspnet
I need a little help understanding the order of events for the following scenario. I have a form with a few textboxes. The values are filled from a frame; these work fine. At the bottom is an "Update" button. If the user changes values, the new values are sent to the DB. I kept seeing the old values in the boxes, however. Stepping through, I notice that the Page Load event fires first, THEN the ev...
Persist Data Across Multiple Pages (4 replies)
microsoft.public.dotnet.framework.aspnet
I need to know what's the best way to persist multiple forms and their data across multiple pages. I need to grab info from multiple forms on multiple pages. Ultimately, I want to write this information into a database. What's the best way of doing this? Should I create a custom class with properties? Then store it in a session variable? Should I create hidden form elements? Or a hashtable object?...
ListBox (4 replies)
microsoft.public.dotnet.framework.aspnet
Hi, Can i have checkBox as items of the list box. My requirement is instead of select the items i have check and uncheck all the list box items. Is it possible????? Thanks & Rgds, Ramesh
Adding items to ListBox at runtime (2 replies)
microsoft.public.dotnet.framework.aspnet
The following code doesnt work: Me.lstCurStores.Items.Add(New ListItem(objDataReader.GetString(0) & " (" & objDataReader.GetString(1), objDataReader.GetString(1) & ":" & objDataReader.GetString(2))) I keep getting "Specified cast is not valid" errors. The Add method is looking for a string? Wouldnt it make more sense to request a ListItem object? Basically all im trying to do is add items to the l...
trying to set a dynamically created link to a cell's text (2 replies)
microsoft.public.dotnet.framework.aspnet
Here is my code ************code start *************** TableCell cell new TableCell(); HyperLink link new HyperLink(); link.Text someStringVariable; link.NavigateUrl anotherStringVariable; cell.Text ?????????????? ***********code end **************** I would like to place the link in the dynamically created link, but how? link.ToString() doesn't work.
System.Web.HttpException (3 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I made a quick little application to send email with attachements. I'm getting the following error when I go to submit the email: System.Web.HttpException: Invalid mail attachment 'c:\test.gif'. Thanks in advance for any help, Eddie
Validation of inter-dependent controls (3 replies)
microsoft.public.dotnet.framework.aspnet
(ASP.NET with C# codebehind) How can I selectively validate controls on a web form only when other controls have a specific value? For instance, I'm working on a checkout page, with multiple payment methods selectable via a droplist. If the payment method is a credit card, I want to validate the credit card number text box (I currently have a RequiredFieldValidator, a RegularExpressionValidator an...
Reading SQL text data field (2 replies)
microsoft.public.dotnet.framework.aspnet
friends, i need help reading a text field from a table. when i tried to read using sqldatarow I get blank. sqlDataRow is of type DataRow when retrieving sqlDataRow["TEXT FIELD"] returns nothing though there is data in TEXT FIELD column. TIA.
Collection was modified; enumeration operation may not execute. Why? (3 replies)
microsoft.public.dotnet.framework.aspnet
Hello, I have this Protected WithEvents lbxTest As System.Web.UI.WebControls.ListBox Dim listItem As ListItem For Each listItem In lbxTest.Items If listItem.Selected True Then lbxTest.Items.Remove(listItem) End If Next and I get this error message: Collection was modified; enumeration operation may not execute. What is wrong? Thanks, Andreas
Presenting different form elements based on select menu (4 replies)
microsoft.public.dotnet.framework.aspnet
I have the following scenario: I am handling product inquiries. These inquiries could come from three different sources group A, group B or group C. Depending on which group is making the inquiry, I will need to display a different form setup. Group A will have 23 form elements, Group B will have 18 and Group C will have 16. Everything Inserts or Updates to the same database table. And all fields ...
DataGrid.DataSource is null before DataBind?!? (3 replies)
microsoft.public.dotnet.framework.aspnet
Since I have a single "UpdateCommand" event handler for several similar datagrids on one page, I would like to know the DataSource property of the DataGrid that fired the event. I found out that the DataSource property of a DataGrid is set to null on IsPostBack... I also found out that this property is set to the correct value when DataGrid.DataBind() is called, while I though it was the other way...
datagrid display problem (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi, One column of my datagrid is a percentage calculate from two other columns. Can anybody tell my how to alter the code below so that the percentages are displayed in the format ##.##% This is what I have now: ASP:TemplateColumn HeaderText "Conversion %" ItemTemplate %#Convert.ToInt32(Container.DataItem("Sales"))/(Convert.ToInt32(Container.DataItem("Unique Clicks"))/100).ToString("0.##")% % /Ite...
IValidator - ControlToValidate Property? (4 replies)
microsoft.public.dotnet.framework.aspnet
On the server side, we want to change the background color of the control to validate if it is false. The following helps us get to the validator collection, but there doesn't seem to be a "controltovalidate" property of the iValidator. How can we get to this property? Dim oValidator As IValidator For Each oValidator In Page.Validators Response.Write(" BR " & oValidator.ErrorMessage & " " & oValid...
Getting User account ID (3 replies)
microsoft.public.dotnet.framework.aspnet
IS there an easy way to use ASP.NET to get the login name of an authenticated user of the web page?
Cannot see the web controls (3 replies)
microsoft.public.dotnet.framework.aspnet
Hello fiends. I have the foll codes on 2 pages : Page 1 : Webform1.aspx : %@ Page Language "vb" AutoEventWireup "false" Codebehind "WebForm1.aspx.vb" Inherits "WebApplication2.WebForm1"% !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 4.0 Transitional//EN" HTML HEAD title WebForm1 /title meta name "GENERATOR" content "Microsoft Visual Studio.NET 7.0" meta name "CODE LANGUAGE" content "Visual Basic 7.0" met...
What todo when: The timeout period elapsed prior to obtaining a connection from the pool (3 replies)
microsoft.public.dotnet.framework.aspnet
Hello, I have this Error Message: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. Stack Trace: at System.Data.SqlClient.SqlConnection.Open() What does this mean and how and where can I fix this problem? Thanks in advance!! Andreas
Supressing the query string (5 replies)
microsoft.public.dotnet.framework.aspnet
While using a portal affiliate agent authentication method, as the page is being redirected from the portal to the affiliate, a query string is being appended to the URL. How can I remove that the query string? Thanks, Eugen
Are ASP.NET DLLs periodically unloaded memory? (6 replies)
microsoft.public.dotnet.framework.aspnet
Greetings, I've designed an ASP.NET application. All of my C# code is stored in a "code behind" DLL called "MySite.dll." My question is: Is "MySite.dll" periodically unloaded? Here's why I ask: I have a static 'readonly' field on one of my classes. This object represented by this static field is expensive to instantiate, so instantiation should only be done *once* throughout the life of the web ap...
HE-E-ELP? (14 replies)
microsoft.public.dotnet.framework.aspnet
I have two nested cycle Dim GetRows As DataTable NewDataSet.Tables("Table1") TotalRows GetRows.Rows.Count TotalFlds GetRows.Columns.Count Dim Mirt As Integer StrRow New System.Text.StringBuilder() For r 0 To TotalRows 1 '(VAR1) Mirt Mirt 1 StrRow.Append(" TR ") For c 0 To TotalFlds 1 '(VAR2) Mirt Mirt 1 StrRow .Append(" TD " & Mirt.ToString & " /TD ") Next StrRow.Append(" /TR ") Next Why if (VAR1)...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com