all groups > asp.net webcontrols > january 2004 > threads for january 15 - 21, 2004
Filter by week: 1 2 3 4 5
Form validator problem. built in controls do not satisfy validation requirement.
Posted by Girish at 1/21/2004 8:34:57 PM
I have 5 form fields on a webpage that I need to validate to check if they
are empty.
Heres the catch.
The form fields are divided into two groups. 2 in one group and 3 in the
other. Now the required field validation should only be on a group as a
whole.. sort of like a required group vali... more >>
Beginner: How to add a table to a tablecell?
Posted by Jan Eliasen at 1/21/2004 4:19:03 PM
Hi
I have a .ascx with an .ascx.cs codebehind.
In my .ascx I have the folliwing;
<asp:table id="new_OuterTable">
<asp:TableRow ID="new_outerTableRow">
<asp:TableCell>
<img src="../ImagesForCode/space.gif">
</asp:TableCell>
<asp:TableCell ID="new_Ou... more >>
jscript can't reference textbox in user control
Posted by moondaddy at 1/21/2004 11:17:02 AM
I'm running winXP and vb.net 1.1: I want some JavaScript to add a value to
a textbox server control in a web user control. The below code works in an
aspx page, but on in an ascx page. can anyone please advise?
Thanks in advance!
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind=... more >>
Populating a Datagrid
Posted by Lee at 1/21/2004 11:14:32 AM
Hi All,
I have a webform with a datagrid on it. The only way I have been able to
find to populate it, would be to bind it to a datacontrol dropped on the
same page.
The issue I have is, that all of our data access is done from a seperate
class so that it is in one place and I'd like to kee... more >>
Invoking asp:button click in javascript
Posted by JCE at 1/21/2004 10:41:43 AM
I need to programmatically invoke an asp:Button click event from a
javascript function. The page containing the script and the button is the
HTML page associated with a WebUserControl-derived object (both the HTML and
control are built in the same .ascx file)
The target button simply fires an ... more >>
Web Control
Posted by Amal T. at 1/21/2004 9:39:14 AM
Hello,
I Can not make this Navigator (Superexpert DataForm ) work on Oracle using
the OLEDB part of it although the SQLDB works perfectly fine.
The control can be found on:
http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=125&tabindex=2
Can anyone please tell me how to make it w... more >>
link button and stored procedure
Posted by Rod Snyder at 1/20/2004 8:44:07 PM
I'm trying to set up a page with an asp.net link button that would send a
user to a certain page and on page load execute a specific stored procedure
tied to the button on the previous page. The link would be in a nav area and
be something like "update". It would send the user to the main page an... more >>
Webcontrols UI part
Posted by Lenny Woodbridge at 1/20/2004 5:28:25 PM
Is there is any good example that I could use to create webcontrol with UI?
I would like to arrange several textboxes and other controls certain way I
wish.
One which I could add to the ASP.NET project components toolbar and then
drag-drop to the webform?
Thanks,
Lenny.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Checkboxlist Clientside rather than Serverside
Posted by Robin Day at 1/20/2004 4:51:41 PM
I run some code on the changed event of checkbox lists. Its quite simple,
nothing more than showing / hiding some other parts of the page.
Using Autopostback and Server side code works fine, but is far too slow,
especially if the users are on modems.
I need to quite simply, add some java code to... more >>
I have about 150 server control in page
Posted by joji kerala at 1/20/2004 3:11:07 PM
I have about 150 server control in a aspx page. What is the best method to use this. If i open this it eating all the memory
Any thoughts about it
joj
... more >>
Parent property handling
Posted by Casper Hornstrup at 1/20/2004 2:50:55 PM
I have developed a compound control. When inserted on an ASP.NET page
and given some child controls, the chain of parent controls of the child
control
stops at my web control.
Is the web control supposed to handle the parent property of a child
control?
If so, where should should the parent ... more >>
Disable Linkbutton from Client-Side Javascript - help!
Posted by James Radke at 1/20/2004 1:05:37 PM
Hello,
I have a datagrid, which contains data, as well as a linkbutton column and a
button column. I have added attributes to the button like:
button.attributes.add("OnClick", "javascript: funcname('" &
linkbutton.UniqueID & "');")
*NOTE: this code is taking place in the OnItemD... more >>
How to call jscript func in user control from parent aspx page
Posted by moondaddy at 1/20/2004 12:25:05 PM
from a html button (btnTest) on a aspx page (main.aspx) I need to call a
java script function in a user control (ItemGrid4col ) which is nested in a
panel control (Panel1). This function (TestFunc) in the user control will
make the user control do a postback. The reason I'm using a html button ... more >>
Server.Transfer in ASP.NET - weired problem
Posted by Nedu N at 1/20/2004 11:43:59 AM
Hi All,
I am facing a typical problem in my .NET application with the pop-up script
messages. The thing is that its working fine when i run on my development
machine but not running in expected manner when i move it to Prod
environment. Please have a look at the following code snippet...
//... more >>
System.Web.UI.WebControls.DropDownList
Posted by lukejohn at 1/20/2004 11:31:06 AM
Help......I have added several System.Web.UI.WebControls.DropDownList and they are always on top of the drop menu options of the 3rd party menu system I am using.
Thanks... more >>
Server.Transfer in ASP.NET - weired problem
Posted by Nedu N at 1/20/2004 10:48:53 AM
Hi All,
I am facing a typical problem in my .NET application with the pop-up script
messages. The thing is that its working fine when i run on my development
machine but not running in expected manner when i move it to Prod
environment. Please have a look at the following code snippet...
//... more >>
How to Change ListItem Text?
Posted by Eidolon at 1/20/2004 10:26:19 AM
I have a DropDownList on my page, which is databound. What i want to do is
to do a lst.DataBind, and then go back and change the text on each listitem,
specifically indenting it based on the length of the ID field's value.
Ive broken into and stepped through the code, and i know it is working as
... more >>
Set repeater row background color based on data value - how?
Posted by James Radke at 1/20/2004 8:53:22 AM
Hello,
If I have a repeater with an ItemTemplate like:
<ItemTemplate>
<tr valign="Top" class="normal">
<td width="70px" align="center" valign="middle">
<asp:TextBox ID="txtEstDate1" runat="server" Text='<%#
format(DataBinder.Eval(Container, "DataItem.EstProduction... more >>
HTML button doesn't click immediately
Posted by Muppet at 1/19/2004 9:47:48 PM
This is weird. When my asp.net web page loads, the button doesn't let me
click it right away. I have to click on it several times before it lets me
click it. It seems "frozen" for a while.
As a test, I put another button on the same form and that one seems to work,
but only when there are 2 bu... more >>
richtextbox on web form
Posted by New World Order Pigs at 1/19/2004 11:08:47 AM
Hi, I want to put a richtextbox control on a web form but when I do I get an
error saying "RichTextBox must be placed inside a form tag with the
runat=server attribute." I've been able to find precious little on this
subject and was wondering if someone could point me to some usable
documentati... more >>
ascx problem
Posted by Lyuba at 1/19/2004 9:46:34 AM
Hi
I have a problem with user controls in asp.net
I have an aspx page that has a System.Web.UI.WebControls.PlaceHolder. On page load I have code that loads page1.ascx control on the placeholder. page1.ascx has button "next", on click it clears placeholder on aspx page and loads page2.ascx on the... more >>
Treeview Control
Posted by Schoo at 1/19/2004 9:31:16 AM
I am successfully using the Microsoft.Web.UI.WebControls.dll but I can't get
the treeview control to run code when a node is selected. I read the msdn
online documentation and am doing this with code-behind in VB. Here is the
code that I am using:
===========================================
<... more >>
CrystalReportViewer
Posted by CJ Taylor at 1/19/2004 8:34:15 AM
Hey everyone,
Hope I can get some help here as
CrystalDescirions/BusinessObjects/Seagate/NewNameOftheMonth doesn't have any
info.
Whenever i try to add a Crystal Report Viewer to my ASP.NET WebForm or even
a web control for that matter, I always get an error saying it can't create
CrystalD... more >>
HyperLink Column URGENT!!!
Posted by Christopher Calhoun at 1/19/2004 8:05:59 AM
Does anyone Know how to programmatically assign all the columns in a
DataGrid with AutoGenerateColumns set to true as Hyperlink Columns?
Thanks in Advance....
... more >>
Q: Retrieve Selected Text from TextField
Posted by Soul at 1/19/2004 1:13:55 AM
Hi,
In ASP.Net page, Is there a way to retrieve those selected text from a
normal TextField? For example, I have a multi-line TextField for user to
enter some text. There is also a Button if user click on it after selected a
text from the TextField, it will add something in front and after the... more >>
Accessing dropdown list values inside of a repeater
Posted by jeff_tellinghusen NO[at]SPAM yahoo.com at 1/18/2004 10:52:54 PM
After I bind the repeater control in the form_load event, it builds
multiple lines based on the number of rows in the dataset.
In the repeater control, I have a textbox and a dropdown list box. I
have tied the "SelectedIndexChanged" to it. At runtime - after I
change the dropdown box selecti... more >>
How do you clear controls without setting to empty string?
Posted by Horus Alkebulan at 1/18/2004 12:20:47 PM
Maybe I'm overthinking this, but is there a cleaner way to clear out the
controls on a web form than just setting the text value to the empty string?
I'm implementing a "Save and Add Another" button, and for the new record I
need to, of course, clear out the existing data to present them a clea... more >>
Viewstate on a Web User Control
Posted by Larry at 1/17/2004 5:01:10 PM
I have a user control on a aspx web page. Both the page and the user control have the "EnableViewState" = True. For some reason, the web user control is not maintaining its state. This same web user control is used on other pages in the same manner, and in these other pages it maintains its views... more >>
email not received
Posted by susie at 1/17/2004 11:06:21 AM
I have the following code to send out a test email to myself. I did not get any error message and has been informed that the email has been sent. However I never received the mail. Even if I am not online and run the following code, I still message that email has been sent. Any idea how to fix t... more >>
Button click event handler
Posted by Patrick at 1/17/2004 10:41:05 AM
I am confused...I have a form with a button on it. when it is clicked, the Page_Init and Page_Load functions are called, THEN the button handler is called. I need to handle the click PRIOR to the Page_Init and Page_Load so that I can setup some dynamic controls in the Page_Init that are created as... more >>
Tabs in WebForm
Posted by mg at 1/17/2004 7:16:20 AM
How can I place tabs in a WebForm (C#). On each of the several tabs, I'd place what is now a seperate page (WebForm).... more >>
Traverse Folders in Web App Project @ DesignTime and read Project File
Posted by Seb at 1/17/2004 4:30:01 AM
Using EnvDTE ProjectItem, the Collections collection does not return
folders. Is this a limitation in Web App projects? I want to make a Custom
Control that will allow me to browse through the project and select an xml
file at design time that will be read into a variable. Work in progress
co... more >>
Web client component won't work when strong-named.
Posted by Lowell at 1/17/2004 2:11:04 AM
I have a web page which downloads a component with an <OBJECT> tag. The HTML looks something like the following:
<OBJECT id="NewObj" classid="http:/VirDir/CompName.dll#THEYAS.DEPT.ProjectName.CompName" VIEWASTEXT><PARAM NAME="Param1" VALUE="Value1"></OBJECT>
It works just fine when the compon... more >>
DropDownList - pre-position to an entry
Posted by Larry at 1/16/2004 9:16:05 PM
If I have a Dropdownlist box with several items in it, and I want to display that listbox to the browser with an entry already selected (which may not necessarily be the last item selected by the user), is there a method that does this?... more >>
TextChanged doesn`t fire
Posted by Miguel at 1/16/2004 5:21:15 PM
Hi all friend
In certain web app there are a textbox webcontrol (named txt1) and a dropdownlist (named ddl1) webcontrol, the problem is that the event txt1_TextChanged doesn't is fired the first time that the text is changed, just untill the second time, in the event it binds some data to ddl1. I... more >>
Datagrid - Hyperlink Column passing URL with 2 variables
Posted by Luiz Vianna at 1/16/2004 3:30:13 PM
Hy folks,
I'm having this issue ....
I have to show a table with 4 columns from a database and one of the =
columns must be an hyperlink that goes to other ASPX, easy.
The Hyperkink looks like : form2.aspx?var1=3D12
But. The problem is that my form is waiting for more than 1 variable. ... more >>
richtextbox control?
Posted by New World Order Pigs at 1/16/2004 1:11:16 PM
Is there a richtextbox control available that anyone knows of? I mostly see
htm and little or no rtf support-- if anyone knows of any I would like to
hear about it.
Thanks,
NWOP!
... more >>
CustomValidator to make sure at least one value entered?
Posted by Dave at 1/16/2004 12:41:18 PM
Hi
I'm creating a search form where a user has to enter at least one of 5 search criteria in the input fields for a search to occu
Is it possible to create a CustomValidation control to be shared amoung the 5 search options? Otherwise it seems I'll have to have a separate CustomValidation contr... more >>
event handling for dynamic controls
Posted by Patrick at 1/16/2004 12:36:07 PM
I have a web page with a table that i generate rows for when a database query is run. Each row contains a button column and I would like to add a handler for the click event of the button created at run time. I tried the following code
...
Dim OKButton As Button = New Butto
... more >>
adding a databound Dropdownlist to Datagrid???
Posted by James C at 1/16/2004 12:21:05 PM
Hi all..
I have a DataGrid in an .aspx page (coded in VB.NET) which displays several databound columns (no editing allowed). Pretty straightforward so far but here's the question..
I need for each row to display an additional column with a dropdownlist which gets its list of data from a seperate... more >>
Silly question on DataBinding
Posted by MikeD at 1/16/2004 9:08:19 AM
Hello,
Sorry about this but I don't have my notes with me today. I wish to bind a
SQL SELECT statement to a set of .NET labels within a table. These are for
ReadOnly purposes and I don't think it necesitates a data container
(DataGrid, Repeater, etc) as it will only be one record at any time. ... more >>
precise location of a user control
Posted by Steve Steve at 1/16/2004 2:01:42 AM
Hi there
I'm trying to create a shop web-page with a dynamic basket as a part of
a user control. I have done the basket in javascript which means
outputting client script in the server code when we create the page.
Right my problem is that the javascript code contains a position for the
... more >>
change appearance of item in listbox
Posted by TJS at 1/15/2004 11:53:52 PM
is there a way to change the appearance of an item in the list box, such as
changeing the color of item 3 to red font ?
... more >>
Include a html file inside an aspx file
Posted by Kent at 1/15/2004 3:31:10 PM
I'm new to the .Net world
I want to include an html file (a header file) on every single aspx file and I don't know how
I know in html you can have a <include> tag ..
Thanks.... more >>
Textbox control - limiting input
Posted by LAL at 1/15/2004 2:26:33 PM
Greetings...
I'm pretty new to ASP.NET programming and I have two questions:
1. How can I automatically change what it typed into a text box to upper
case as the user is typing on the webpage?
I tried the following suggestion
http://www.dotnet247.com/247reference/msgs/33/166114.aspx
(Bas... more >>
Newbie: Custom Server Controls and Codebehind
Posted by Wardeaux at 1/15/2004 2:15:23 PM
Help! I'm developing a custom server control and want to get/set properties
in my codebehind. I have the control set within the HTML page correctly and
it loads/displays correctly, but when I try to compile my aspx.vb code, it
complains that my variable name is undeclared. Is there a good arti... more >>
A simple question
Posted by Dennis at 1/15/2004 12:40:19 PM
I added Web Server Control (Button, textbox etc.)
But it is not visible on browser.
Could you tell me why?
... more >>
DataListItem in DataList does not render attributes/Tooltips
Posted by Brian Paul at 1/15/2004 9:59:40 AM
I've added a datalist (DataList1) to my web form. In code behind, i'm =
trying to render the "title" and "style" attribute on each DataListItem. =
But there appears to be a bug in the DataListItem because it ignores any =
attributes assigned to it.=20
running on win2003 server, .Net Framework... more >>
Child Web Parts
Posted by Barbara Alderton at 1/15/2004 9:34:48 AM
I am working with SharePoint 2003. I am using an existing
webpart as a child control (server control). I need to
access/manipulate the HTML that the control outputs prior
to rendering it to the the page. The control outputs a
list in a one-column table format. I need to access the
cont... more >>
read xml fail
Posted by haiwen at 1/15/2004 8:41:23 AM
Hello, every one:
I have a xml file include:
<temperature> 150=B0F</temperature>
When I use the DataSet's readXML function. I get error=20
message that =B0 is an invalid character!=20
Another problem is how to handle the ... special character=20
of Word2000 in C#, just like the Tab is ... more >>
Failed to load viewstate with Custom WebControl
Posted by Andrew Winn at 1/15/2004 6:41:22 AM
Hi,
I have created a WebControl which contains an ASP
Textbox, ASP Button, ASP Listbox and a Hidden field.
I've been using "Building ASP.NET Server Controls" by
Dale Michalk and Rob Cameron as a reference.
My code is in VB.NET
It works in my example page which has a couple of
controls ... more >>
Communication via shared memory space [webcontrols, NT Sessions, UI]
Posted by Rashad Rivera at 1/15/2004 2:42:56 AM
Hi gang,
I have somewhat of a complicated question. I will try my best to
explain. I have .NET assemblies that run in IIS's memory space. But I want
to be able to interface with those running instances from a user's logon
session on the host server. Basically I want to write a UI t... more >>
Specified cast is not valid in user controls
Posted by steswork NO[at]SPAM hotmail.com at 1/15/2004 2:33:02 AM
I have been trying to add a control that I designed in one project
into another. I come to adding the thing and get the casting error
but I have just copied the file from one project to the other and just
changed the namespace name. Here is the code that is puzzling me.
Control catmenu1 = Lo... more >>
conflict between validation controls and "confirm"
Posted by Bob D at 1/15/2004 12:47:24 AM
I have a web form that uses several client side
validators when user hit submit. Now users ask me to
include a dialog box to confirm the action before
submission. I tried to add a javascript
function "confirm" to the form's onsubmit event, which
turned to be appended by VS.net to a bunch... more >>
|