all groups > asp.net webcontrols > october 2003 > threads for october 22 - 28, 2003
Filter by week: 1 2 3 4 5
Adding Controls Dynamically
Posted by Prabhu Ram Prasath at 10/28/2003 10:42:12 PM
Dear Friend,
Does anyone could answer this simple problem!!!
I have a textbox, submit button and a panel (all webserver
controls) in a web page.
After entering some text in the textbox and pressing the
submit button, it will add the text into the panel as a
Hyperlink.
The code in t... more >>
DropDownList Delete all
Posted by news.microsoft.com at 10/28/2003 2:27:19 PM
I can't believe there is not an easy way to just delete a list box so it can
be refilled in C#?
Mick
... more >>
show same datagrid twice in a page.
Posted by John Ninan at 10/28/2003 2:21:16 PM
I have a query like this
"SELECT employeeID, employeeName FROM EMPLOYEE"
Which will return 1000 Rows.
I want to display two tables in the same page with 500
records each.
Datagrid 1 Datagrid 1
Emp ID Emp Name Emp ID EmpName
1 xxtte 501 Xx
2 xxttee 502 Yy
3 tteeww .
... more >>
Conditional user interface in ASP.NET
Posted by Terence at 10/28/2003 2:15:51 PM
Dear all,
I am converting an asp application to aspx and encountered a problem.
The problem is that i need output different html code based on some
condition. For example,
in asp, there is a variable (let say, bEditMode), if bEditMode= false, then
the page display the value in text.
If the b... more >>
ad rotator imageurl tags
Posted by David Bartosik - MS MVP at 10/28/2003 1:51:24 PM
It was no great surprise to find that the ad rotator schedule file only
supports 1 imageurl tag per ad. Would anybody know of a workaround?
I use an ad service that uses 2 images, 1 is the ad image the second is a
blank 1 pixel image that they use for tracking purposes. So I need 2
imageurls per... more >>
how to use DTS package?
Posted by susie at 10/28/2003 10:01:21 AM
Can SQL DTS package be used in asp.net application? If it
can be used, can anyone show me how to use it? Say my
package name is "TranferFile"... more >>
populate data to dropdowlist
Posted by susie at 10/28/2003 9:34:47 AM
I have following code to populate a downdownlist
dynamically:
Dim myCmd As SqlCommand = New SqlCommand("SELECT LName,
FName FROM Manager", con)
Dim myReader As SqlDataReader = myCmd.ExecuteReader()
dropdown1.DataSource = myReader
dropdown1.DataValueField = "LNam... more >>
dropdownlist issue
Posted by seamad at 10/28/2003 6:14:34 AM
how can I populate one dropdownlist field from two
seperate database fields eg. product number and product
description on one line? I'm using the ie webcontrols... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
datagrid webcontrol
Posted by wilson at 10/27/2003 11:12:39 PM
i have a datagrid control in my webform which i am using
for filling data and i want to put one submit button,
webform button control, at the bottom of the datagrid.
but my problem is i don't know how many records will be
displayed in the datagrid. so i am not able to find the
location f... more >>
Datagrid question! losing a column on page refresh... why?
Posted by James Radke at 10/27/2003 4:51:33 PM
Hello,
I am using a datagrid on a asp.net (1.1 version) webform.
In the .aspx page I have a blank ItemTemplate column defined as:
<asp:TemplateColumn HeaderText="Line-DL<br><br>">
<HeaderStyle HorizontalAlign="Center" Width="40px"
VerticalAlign="Bottom"></H... more >>
Re: Assigning Hot Keys in Web Applications
Posted by Garfield at 10/27/2003 2:08:44 PM
Hello,
Can anybody help me to add a hot key to a web application button and have
the text on the button underscored. I'm using C# within .NET
e.g. assign Alt-C to a button with text "Click Me" where the "C" is
underscored.
Many Thanks
Garfield
... more >>
Dropdownlist in web application similar to DropDown in windows
Posted by Guogang at 10/27/2003 2:00:09 PM
I want to have a DropDownList in web application that behaves similar to
DropDown in windows control. i.e., if user can not find what they want in
the dropdown list, they can simply type their choice in the text box, and
submit that to our web server.
Is there a nice solution for this?
I a... more >>
Retrieveing values form server side textboxes
Posted by Kerri at 10/27/2003 11:55:48 AM
Hi,
I have an aspx page with some server side textboxes.
I have a button onmy page which allows users to add data
to a database.
In my onclick event for my button when I try and get teh
value from the textbox using..
Dim myString as String = textbox1.text
...it is blank.
When I... more >>
throw exception back to the page
Posted by SteveS at 10/27/2003 8:52:15 AM
Hello,
I created a user control where there are several text boxes and a button.
When the user clicks the button, I want to validate the data. When the the
data is not valid, I would like to throw an exception. Is there a way to
handle that exception on the main page? In other words, afte... more >>
Child controls disappearing
Posted by kelly_miller NO[at]SPAM ultimatesoftware.com at 10/27/2003 7:38:08 AM
I've created a WebControl (that inherits from WebControl) that has
child controls that need to be persisted in the HTML. They seem to be
rendered initially at design-time, but then if I change something
about the parent control, all my inner controls are lost. I've seen
numerous other posts abou... more >>
Client Side Javascript / DataGrid question - Can anyone answer this?
Posted by James Radke at 10/26/2003 2:57:36 PM
Hello,
I have a datagrid on a vb/asp.net webform. Due to the number of elements on
each line item we have opted to not use in-line editing for each row, but
instead we are making the first item "clickable" which will then copy the
selected rows information to one row of data entry fields - te... more >>
Serious issues with webcontrols...
Posted by Nicolas LeBlanc at 10/26/2003 11:58:52 AM
Hi,
First of all, sorry for cross-posting, but some groups look more active than
others, and I sure need to find an answer to this.
I recently rebuilt my website using ASP.NET and I did my forum system using
a datagrid and template columns. I was asked by many users to remove the
LinkButton... more >>
Error message
Posted by Eli at 10/25/2003 5:16:03 PM
I am a new developer using ASP.net. Trying to follow the
Web Matrix Project Guided Tour. I was doing fine until I
got to the "Sending E-Mail Form". Upon testing, I am
getting a browser error "There was an error sending the
mail: Could not access 'CDO.Message' Object.
Any tips, ideas.
... more >>
Auto-Complete ComboBox.
Posted by James Curran/MVP at 10/24/2003 4:46:44 PM
For the passed few weeks, I've been using dbCombo.net's auto-complete
data-bound combobox. I've just about hit the limit of what can be done with
the Free/Evaluation version of it, and I am considering actually paying to
the full version.
However, being incredibly cheap, before I stick ... more >>
radiobuttonlist error [NullReferenceException: Object reference not set to an instance of an object.]
Posted by kuvpatel at 10/24/2003 11:27:04 AM
Hi
Has anyone encountered a problem with the radiobuttonlist on a deployment
server.
In the form load event the code fails at the first add...
rb1.Items.Add("Excel")
rb1.Items.Add("Word for Windows")
rb1.Items.Add("PDF")
rb1.Items.Add("RTF")
I do not get the error on the developm... more >>
EnableViewState
Posted by Joe R. at 10/24/2003 11:21:25 AM
I use a couple of drop down lists in my application. Each
drop down list has less than 30 items(that I retrieved
from a SQL DB) and these items are very static. Do you
recommend using the EnableViewState for the same user
session or do you think that I should think about
caching? Which ... more >>
Is it possible to open a web form to a default size?
Posted by Orange County Rocks at 10/24/2003 10:02:06 AM
If a webform is designed around, say, a screen resolution of 1024x768, is it
possible to open the browser to a default size reflecting that choice? I've
noticed, for example, some windows applications throw up a message stating
the ideal screen resolution, which seems a little hokey.
... more >>
SqlDataAdapter
Posted by susie at 10/24/2003 6:37:38 AM
How to specify table names in SqlDataAdapter fill
parameter if I have more than one tables in my select
statement
sqlStatement="select i.*, p.Prod# from pInv i, pPrice p " _
& "where i.DBF=p.DBF " _
& "Order By " & SortExpression & " " & SortOrder
DS = new DataSet()
MyCommand.Fi... more >>
Parse Error on my first ASP.net project
Posted by MicroKarL at 10/23/2003 11:01:26 PM
Can some one help me
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: Could not load type 'MyStore.default'... more >>
how to get the dynamical control's content from server side
Posted by haiwen at 10/23/2003 3:05:30 PM
hello, everyone:
I need to programmatically generate web control on a page.
such as:
for(int i=0;i<4;i++)
{
Label l=new Label();
l.Text="name "+i;
TextBox t=new TextBox();
t.ID=i.ToString();
t.Text="txt "+i;
Label l2=new Label();
l2.Text="<br>";
PlaceHold1.... more >>
Listbox not submitting correctly?
Posted by Damien Foggon at 10/23/2003 2:32:47 PM
I've got two listboxes on an ASPX page and use JS on the client side to move
entries between the two lists - allowing the user to select which options
they want and don't want.
The problem occurs when I submit the page as the new contents of the
listboxes (as set by the user) aren't accepted b... more >>
Loading controls in Datagrid
Posted by harishramakrishna NO[at]SPAM yahoo.com at 10/23/2003 9:27:45 AM
Dear All,
I am being assigned a task of developing a .NET web application from
an existing client server(CS) application (VB). It is a requirement
that much of the things should look similar to the existing CS
Application. Now i have flexgrid in one of the form where there are
controls in the... more >>
Need help on How-To create multiple wecontrols at design-time.
Posted by c_zachariadis NO[at]SPAM hotmail.com at 10/23/2003 8:39:15 AM
I need to do this. I have a business control that's when dropped on a
form has to create all the gui components that it needs. These will be
created at design time and their properties will be pre-set with
values that the application developer can then change if they need to.
Can you point me to... more >>
LinkButton Event Firing
Posted by Michael at 10/23/2003 6:56:00 AM
I have a custom control with a linkbutton. I have all
the necessary lines of code to display the button. I'm
not quite sure how to tie a URL path to the link buttons
event function. The hyperlink control has a .NavigateUrl
property, why doesnt the LINKButton? I am new to this
and I hav... more >>
problems with the regular expression validator on the client
Posted by Chris Barrow at 10/23/2003 5:57:37 AM
Hi Everyone,
I am using a regular expression validator control in a web
form. I essentially want the control to pattern match
whether or not a user has enter non-digit characters into
a text field. Here is the control syntax along with the
reg expression:
<asp:regularexpressionvalidato... more >>
My Script to run a Command-Line from ASP does not work
Posted by Lucas Cowald at 10/22/2003 11:45:37 PM
Hi,
My Script to run a Command-Line from ASP does not work. No errors are
returned either.
It is on IIS. The directory where the script exists is on Drive I:, The
executable .exe is on Drive D:
Do you see any problems with the script below? Can you help me modify it?
<%
Dim objWSS
... more >>
Password textbox - How to fill it?
Posted by Luiz Vianna at 10/22/2003 4:32:50 PM
Hi folks,
I have a form.aspx that has an textbox webcontrol named 'password' (and its
texmode=password).
I want to fill it with the password value I have on my database.
The problem is the code
password.text= "mypass"
does not work. It works only when I change it to singleline or mul... more >>
display datagrid vertically
Posted by susie at 10/22/2003 12:42:58 PM
Datagrid is presented horizontally by default. How can I
make datagrid present data vertically?
Thanks.
Susie... more >>
specify the width of dynamically generated textboxes
Posted by susie at 10/22/2003 12:41:26 PM
I have the following code to generate textbox
dynamically. How can I specify all the textbox with to 50?
For i = 0 To e.Item.Controls.Count-1
Try
If (e.Item.Controls(i).Controls
(0).GetType().ToString()
= "System.Web.UI.WebControls.TextBox") Then
... more >>
postback problems
Posted by carl.ottman NO[at]SPAM fmglobal.com at 10/22/2003 10:58:19 AM
I have a added a webcontrol to a web form that contains crystal
reports. The webcontrol contains a couple of textboxes in which users
can save text. The problem that I am having is that the click of a
button in the webcontrol is causing a postback of the entire page.
Does anyone know of a way... more >>
Composite Control - Hyperlink Problem
Posted by Mike at 10/22/2003 10:47:12 AM
I have a composite control containing several
hyperlinks. I've placed this control on several aspx
pages and everything works fine at run-time. However,
within my project I created a sub-directory ( a new
folder, called TESTFOLDER ) containing another aspx file
( called test.aspx ). I t... more >>
messagebox in ASP.NET using VB.NET
Posted by Matthew Louden at 10/22/2003 9:12:41 AM
how to show the message box in ASP.NET? I try MessageBox.Show, but not work.
... more >>
|