microsoft.public.dotnet.framework.aspnet Archive - June 2002
Post a message to this list
Messages
Page: 12345678910111213141516
Get a single value out of a Datagrid(C#) (5 replies)
microsoft.public.dotnet.framework.aspnet
I am trying to figure out how to pull a value out of a datagrid to place in a text box txtBox1.Text Value from DataGrid2 Can anyone help me with this? Thanks, Russ
ASP CDONTS AND ATTACHMENT (3 replies)
microsoft.public.dotnet.framework.aspnet
I use CDONTS to write an asp email, and FSO to get files from a folder.... I need the user to select a file from the list return by FSO....which I add an check box next to each line... the only problem is....how do I attach the files the user selected and send the email...... thanks in advance.
validation control (2 replies)
microsoft.public.dotnet.framework.aspnet
hi, I would like to know where exactly the validation control's will be checked? thanks sheela
Validating Data in EditItemTemplate (2 replies)
microsoft.public.dotnet.framework.aspnet
I'd like to have a drop down list in an edititemtemplate column enable or disable a text field in the edititemtemplate column depending what is selected in the drop down list. I've set autopostback to true but I'm not sure which event I should take care of this task in. I declared a dropdownlist with the same name in the codebehind but the selectedindex changed event doesn't fire for it. Thanks fo...
From ASP to ASPdotNET (6 replies)
microsoft.public.dotnet.framework.aspnet
Hello all, How do familiair ASPdotNET controls like the RichTextBox work? Does it output GIF/JPEG images and generic HTML that builds up the 'control' on the users side, or is it some kind of ActiveX control that is/will be installed on the users system? And how do these controls provide their functionality. I don't think there is a standard textbox that can be used through HTML that provides form...
FindByText (2 replies)
microsoft.public.dotnet.framework.aspnet
I'm trying to set the selected item in a drop down list using the FindByText method without success. Here's my code cboImpact.Items.FindByText("On Hold").Selected True The value of "On Hold" is a value in the drop down list. Running this code results in an error "A DropDownList cannot have multiple items selected".
DropDownList - How to set selected item? (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello List, I can succesfully bind the DropDownList properties DataTextField and DataValueField to My DropDownLists. this only populates the list however. How do I bind this to the primary dataset I am working with? This would set the "selected" attribute of the HTML to true? TIA Jon
Alternating bg color in DataGrid (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello, Can anyone show how to display different bg color in alternating rows of DataGrid like using AlternatingItemTemplate in Repeater? Regards, Jason
Coding issue PLEASE HELP (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi all, I have the following code. Now the sub chargeback1 through 4 work individulaly but not when called one after the other. any one know why? Sub ChargeBacks() Dim NewDate as DateTime NewDate DateTime.Now() If txtcbdate1.Text "" Then txtcbdate1.Text NewDate.ToString("yyyy/MM/dd") End If If txtcbdate2.Text "" Then txtcbdate2.Text NewDate.ToString("yyyy/MM/dd") End If If txtcbdate3.Text "" Then ...
selecting a row in a datagrid - newbie (4 replies)
microsoft.public.dotnet.framework.aspnet
I have a datagrid with some columns and rows that are populated by the middle tier with a sql database. When the user clicks on a asp:ButtonColumn I want to capture the information for a different column for that specific row. I need to pass the data (which is a guid) to another aspx page as a session variable from my code behind page. How do I do this????? Kristina
datagrid question (3 replies)
microsoft.public.dotnet.framework.aspnet
Below is my Datagrid. The grid works fine, but when the user clicks the linkbutton in the template column, I don't know how to access the information in the cells of the row. Basically the datagrid lists a bunch of names as link buttons. When the user clicks a name, I want to do things with the hidden fields in the ONCLICK function. however, from the ONCLICK function I don't know how to get the ot...
Server.MapPath - Which namespace should I import... (3 replies)
microsoft.public.dotnet.framework.aspnet
I am creating a class library that will encapsulate all of the database access code. Within the class library, I want the code to establish the Server.MapPath of a database file for use in a connection string. Currently, Visual Studio.NET gives me an error on the Server.MapPath code. It states: Name "Server" is not declared. What namespace should I import into the class library so VS.NET will unde...
how can i submit a form data? (2 replies)
microsoft.public.dotnet.framework.aspnet
Is it possible to send a form from an .aspx page to another .aspx page as the way of common input type "submit" tag ? Not this way: html %@page ResponseEncoding "Shift JIS"% script language "C#" runat "server" void Btn1 Click(Object Sender, EventArgs E){ Response.Redirect("WebForm2.aspx?aaa aaa&bbb bbb"); } /script body form id "sam" runat "server" asp:label id "Message" runat "server"/ asp:button...
Validating, how can I pass some parameters to a CustomValidator? (3 replies)
microsoft.public.dotnet.framework.aspnet
Hi all, I want to validate length for a multiline textbox, but I want decide runtime the length to validate. I wrote this javascript function to validate client side: function p7ValidateLength(val,args) { args.IsValid (args.Value.length parseInt(val.attributes["MaxChars"].value) ); } And in the aspx code I write something like this: asp:CustomValidator MaxChars "100" id "CV1" runat "Server" ErrorM...
"For each" not working (2 replies)
microsoft.public.dotnet.framework.aspnet
hiye people. i have this for each which look through a dataset. i know my dataset has records. but i cant seems to get any records out. can anyone tell me what is wrong with it? Dim item As DataGridItem For Each item In dg datagrid.Items label1.Text & item.Cells(0).Text Next item thanks people. simon
FileIOPermission does not work ! (2 replies)
microsoft.public.dotnet.framework.aspnet
I run a .NET dll and a COM dll on a WebServer, using IIS5. The WebServer is part of a server farm, and needs to access other computers on the server farm LAN. My problem is that I cannot access files on these other computers from the .NET dll, but can just fine from my COM dlls. My .NET code is something like this: using System; using System.IO; using System.Security.Permissions; ...... FileIOPerm...
txtFirstName.text not working. (4 replies)
microsoft.public.dotnet.framework.aspnet
asp:datagrid ID "artist datagrid" Runat "server" AutoGenerateColumns "False" Columns asp:TemplateColumn HeaderText "First Name" itemtemplate asp:TextBox ID "txtFirstName" Runat "server" Text ' %#DataBinder.Eval(Container,"DataItem.FirstName")% '/ /itemtemplate /asp:TemplateColumn asp:TemplateColumn HeaderText "Last Name" itemtemplate asp:TextBox ID "txtLastName" Runat "server" Text ' %#DataBinder....
Is ASP.NET all about web forms ? (9 replies)
microsoft.public.dotnet.framework.aspnet
Hi I have been reading about ASP.NET in books and a lot of sites. However, each place the explanation circulates around usage of web forms and server controls.(web services apart) There is hardly any explanation given where forms are not being used. In fact one of the sites have mentioned that server side forms in ASP.NET should be used only when necessary since the overhead on the server is 4 tim...
JavaScript/PopUp (5 replies)
microsoft.public.dotnet.framework.aspnet
I have pretty much avoided client side code so pardon me if this is a really simple question, but basically this is what I'm looking for. 1.) I have a LinkButton on my form that executes some code, obviously. 2.) I have a Session variable to determine an Access Level. 3.) If the user meets the Access Level requirement, I'd execute a response.redirect. 4.) Otherwise, I'd like a JavaScript Pop Up wi...
How to set a button as default? (7 replies)
microsoft.public.dotnet.framework.aspnet
When you have multiple buttons on your form, how can you set a button as 'default'. When I press the Enter key, this button should be fired. Anyone some advice? Thanks in advance.... David
Imports keyword (2 replies)
microsoft.public.dotnet.framework.aspnet
Im a dotnet beginner and am having a hard time understanding the imports keyword... I understand that it pulls other classes into my project like say the threading class so I can tell the thread to sleep...BUT say I have an aspx file that I wrote in notepad (see attached file) and all I want to do is to make an ASP .NET web application which simulates this same functionality... So I say new projec...
AutoComplete dropdownlist (2 replies)
microsoft.public.dotnet.framework.aspnet
i have a drop down list with about 1500 entries.. (list of companies).. is there a way to be able to use something similar to autocomplete in the dropdownlist. For example, if I hit "s", the focus will go to the first entry in the dropdownlist that starts with "s". But I wanna be able to type "sf" for example and go to the first entry that starts with "sf". Obviously, the only value that should be...
Referencing properties for within a user control (2 replies)
microsoft.public.dotnet.framework.aspnet
How does one reference a property of a System.Web.UI.Page from a System.Web.UI.UserControl? For example, I have set a property in an ASPX page: public DataSet projectDs { get { return ds; } } and I'd like to reference it in a user control. I have a using reference to my project in the user control, and I am trying to reference the property from the code behind. Can someone give me an example? Than...
Redirecting web page (4 replies)
microsoft.public.dotnet.framework.aspnet
I have a frameset containing web forms. The header frame contains buttons that control navigation in the main frame. It is all working OK. What I want to do is to add an exit button on the header frame that will redirect to a new website. This should remove the frames as well at this stage. Everything appears to redirect within the main frame only. There does not seem to be any way to close the fr...
Design Time Datagrid Control Doesn't Display Data. (3 replies)
microsoft.public.dotnet.framework.aspnet
This is the error message: The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\MetL\Desktop\mainStorage.mdb'. It is already opened exclusively by another user, or you need permission to view its data. I get it with the following code: Private Sub Page Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the ...
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