all groups > asp.net webcontrols > october 2004
Filter by week: 1 2 3 4 5
checkboxlist data population and validation using javascript
Posted by deepak kumar at 10/31/2004 11:44:01 PM
i need to populate checkboxlist(3 here) using javascript only(no serverside
programming)..........here populate means that they should be checked based
on any condition....and also if user does not check any one of them and click
a button to submit page to posatback (server) then alert mesage ... more >>
How do I pass a value in a Hyperlink?
Posted by JDP NO[at]SPAM Work at 10/31/2004 8:19:20 PM
I want to pass a SRS report name from the reports page that has a hyperlink for
each SRS report in the Sales folder.
So far I have the following....
Reports.aspx
<html>
.....omitted code
<a onfocus="this.blur()"
onclick="NewWindow(this.href,'ReportOptions','400','400','no','center');retur... more >>
Response.Redirect question
Posted by niv at 10/31/2004 2:32:00 PM
private void Button1_Click(object sender,
System.EventArgs e)
{
Response.Redirect("regpopup.aspx");
}
Anyone know why this does not navigate to regpopup.aspx?... more >>
image and text
Posted by seep at 10/30/2004 8:54:56 PM
Hello,
I have an image of a light bulb.. I want to write xome
text in front of the image...
How can I do this?
... more >>
J.W. see it
Posted by deepak kumar at 10/30/2004 12:46:01 AM
how can i populate asp.net dropdownlist server control on client side using
javascript with values 0,1,2,.up to 29 ..............
plz show me urs code with urs reply..............
also if i make any chages to values at cleint side then it should chage
value in server side table..
eg. if user ... more >>
simple question(ddlist and javascript)
Posted by deepak kumar at 10/29/2004 8:11:01 PM
how i can fill multiple values in dropdownlist websercontrol using
javascript at client side at page load time .
i want to fil values from 0,1,2,...29 in it but when i use FOR LOOP then
error comes otu that object expected .
plz see it ......and show me complete code of aspx page..
thanks...... more >>
RegisterStartupScript cannot work.
Posted by RickDee at 10/29/2004 3:33:22 PM
Hi.
I am using Visual Web Development Beta 2 from Microsoft. I am trying to pop
up a message with text "Are you sure?" with two buttons ( OK and Cancel )
when user click a delete button on my web site. After looking up and down. I
found that this site provide the help file which I think I need.... more >>
calendar control questions
Posted by fiddler27 NO[at]SPAM att.net at 10/29/2004 9:29:29 AM
any help appreciated on the following.
1. I can't get the selected date to be set through code, I need a
certain day dynamically based upon parameters to be highlighted (the
same way a day gets highlighted if you click on the day yourself), I
have tried using calendar.selected=highlightdate an... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
plz see this problem(dropdownlist and javascript)
Posted by deepak kumar at 10/29/2004 12:41:04 AM
i want to populate asp:dropdownlist control using javascript at page load time
how can i do this . i m unable to access the asp:dropdownlist using
javascript .
i want to populate the dropdown with integre valuers(0,1,2,3.........up to
29) so that when page loads at client sides then ,this dro... more >>
How can I manage a large dropdown list (1000 + items)
Posted by Karen Grube at 10/28/2004 8:48:02 PM
Hi!
I have a server control dropdown list on an asp.net page that may contain
as many as 1,200 items. The list is databound to a SQL Server stored
procedure which actually retrieves the data in a couple of seconds. However,
the dropdown list itself takes 20 or more seconds to populate.... more >>
filling values to dropdownlist using javascript at page load time
Posted by deepak kumar at 10/28/2004 8:36:01 PM
i want to populate dropdownlist(integer values)(0,1,.....29) on client side
using javascript ...i m confused becoz ERROR IS: ->"OBJECT EXPECTED" .. i
want that when poge loads then dropdownlist should be populate at client side
automatically...
-----------------------------------------------... more >>
Accessing HTMLControls created dynamically using Javascript during PostBack
Posted by CS Wong at 10/28/2004 10:43:50 AM
Hi,
I have a page form where form elements are created dynamically using
Javascript instead of programatically at the code-behind level. I have
problems accessing the dynamically-created elements and would like to seek a
solution for this.
I had looked through several articles for access... more >>
"Send to Back", like in VB6.
Posted by John Walker at 10/28/2004 5:39:04 AM
Hi,
On my web form, I would like to have two panels in the same place on the
form (one will always be visible while the other is invisible), and in order
to be able to
conveniently modify these controls in Visual Studio .NET, I was hoping that
there would be a "SEND TO BACK" action like you... more >>
If statements in asp repeater
Posted by joachim.feldt NO[at]SPAM astrazeneca.com at 10/28/2004 4:52:34 AM
Hi,
To begin with, I should say that I am a beginner in the .Net world..
I am using asp:repeater in a aspx.page like this:
<asp:Repeater id="rptMyLabBooks" runat="server">
<ItemTemplate>
<tr>
<td><%# DataBinder.Eval(Container.DataItem, "name")%></td>
<td><%# DataBinder.Eva... more >>
Putting user controls inside a templated DataList (ASP 2.0)
Posted by Roger Helliwell at 10/27/2004 9:05:26 PM
Hi All,
I have a few user controls that I want to move into the
<HeaderTemplate> of my DataList. It seems they aren't retaining
they're state though. (I have view state enabled)
Is this a data binding problem? Is there a trick to using user
controls within templates that I'm missing?
Tha... more >>
Newbie: Trouble accessing all nodes in a tree view
Posted by clsmith66 at 10/27/2004 11:05:06 AM
I have a tree view in an ASP.NET application and I am having trouble
accessing all the nodes in the list. My tree has a single root node named
Clients. The root node contains multipule nodes each one representing a
different client. Each client node has several child nodes for different
a... more >>
Compare Validator
Posted by hgeraght NO[at]SPAM yahoo.co.uk at 10/27/2004 9:25:11 AM
Is it possible to use the <asp:CompareValidator> to compare two
textboxes containing time values (hh:mm) where one time must always be
greater than the other? I have tried using the type of date but this
does not appear to work.... more >>
html markup allowed in textbox even though validaterequest=true
Posted by Andy Fish at 10/27/2004 9:08:31 AM
Hi,
I have a web form with 2 text boxes on it. I have not set
validateRequest=false in the @page directive so request validation should be
on.
One of the text boxes correctly gives the "A potentially dangerous
Request.Form value..." Exception when trying to enter HTML markup. However,
... more >>
Anchor property in web apps
Posted by niv at 10/27/2004 7:16:21 AM
Hi,
I dont have .NET with me at the moment so I cannot check
this myself..
I know that when working on a windows application, there
is a feature that allows the control to be anchored.
Does this feature exist when developing web applications?
If not.. how do I accomplish the anchor f... more >>
Dynamic Web Server Control
Posted by Surjit Madiwalar at 10/26/2004 7:28:29 PM
Hi,
I have added dynamically 5 buttons to the panel.
How do i know which button clicked....suppose i click on add3 button how do
i trap that event....
The code is below:
// numShift is dynamic(range 3-12)
int numShift = 5;
for (int i=1; i<=numShift; i++)
{
Button buttonAdd = new B... more >>
Accessing a property in a webcontrol from parent page
Posted by spmm# at 10/26/2004 4:16:38 PM
Hi!
Could someone please help me with the following; I have a WebControl that
basically looks like this:
public class LeftMenu : System.Web.UI.WebControls.WebControl
{
private string m_CurrentNodeId = string.Empty;
public string CurrentNodeId
{
get
{
return m_CurrentNodeId;... more >>
Treeview error
Posted by Reetu at 10/26/2004 3:42:56 PM
Hi All,
I need to populate the treeview dynamically from the the
tables specie,serie and product. I am not able to get rid
of the following error " System.ArgumentException: These
columns don't currently have unique values."
I am refering to one of the msdn examples and have done
the ... more >>
Can you have the Validation Summary control update without a button click?
Posted by Mike at 10/26/2004 2:00:16 PM
I have a bunch of validators set up to run on the client. They are all
updating as expected on the client side. The summary is only updated when I
click a button. Is it possible to get the Validation Summary to update any
time a validator is updated? (focus changes, etc...)
Thanks,
Mik... more >>
Paging DataList
Posted by Fabricio Sperandio at 10/26/2004 12:33:30 PM
Hey folks,
where can I find a sample code to implement paging on datalist? I am using
access... The framework 2.0 has this feature, but I am using 1.1... How can
I do that? Is there some DataList WebControl with this feature in the
market? For free????
Thank you...
Fabrício Sperandio ... more >>
Multiline Textbox
Posted by John B at 10/26/2004 11:37:05 AM
I have a Web User Control which contains amoung other things a multiline
textbox. We have found that long strings of data are being entered without
word breaks. The lack of breaks prevents the data from wrapping but rather
causes the control to expand horizontally. Is there anyway to have a... more >>
Validation Problems when running application on web host.
Posted by Mike at 10/26/2004 10:47:40 AM
I have all of my validation controls running wonderfully when I debug
locally on my machine. The validators fire on the client without a round
trip to the server. (No server event code fires..) When I copy the
application to my web host and run it from there, the validators only fire
after... more >>
Why CreateChildControls method is invoking between Begin ProcessPostData and End ProcessPostData
Posted by Umut Tezduyar at 10/26/2004 10:34:10 AM
If I create and add a control that implemets IPostBackDataHandler on the
CreateChildControl phase, than in the postback CreateChildControl pahse is
invoked at the Load Postback Data phase. But this logic is not suitable for
me. I want my control invoke its CreateChildControl method every time,... more >>
Custom Control and properties window
Posted by Leo at 10/26/2004 9:26:04 AM
I am building a custom control, code at bottom, and after I place it on a
web page I would like to see the Title property in the properties window
when the control is selected at design time. How do I accomplish this?
Imports System.ComponentModel
<Description("Top of Web page"), Browsab... more >>
DropDownList Control & Javascript
Posted by Pierson C at 10/26/2004 7:57:02 AM
Newbie question:
I have a dropdownlist user control and a radiobutton user control on my
WebForm. I want to simply check the radiobutton when the dropdownlist is
changed.
The OnSelectedIndexChanged method is server side and must post to fire. I
understand I need to use Javascript for the... more >>
Listbox binding to datasource problem?
Posted by Dickson at 10/25/2004 11:14:19 PM
Need some help on listbox which bind to datasource. Here is what i did :-
Dim sql As String = "SELECT supp_code,supp_name FROM
tblSupplier"
Dim DA As SqlDataAdapter = New SqlDataAdapter(sql, conn_str)
Dim DS As New DataSet
DA.Fill(DS, "Supplie... more >>
caching user control's output by property
Posted by z. f. at 10/25/2004 4:27:46 PM
Hi,
i'm writing a user control that lives inside a page,
and i want to cache the output of the control.
is it possible to cache the control's output using a property on the
control.
so that when the property is like the property of the cached data, the
cached data is being outputed.
if the... more >>
Control the order user controls load?
Posted by John Hyland at 10/25/2004 1:32:53 PM
I want to control the exact order in which my page's user controls load.
How would I do that? What would be the appropriate method to override,
assuming that's how to do it?
Also, I am looking for a nice chart that shows event flow for ASP.NET page
processing. Not just the events for a singl... more >>
Determining when a control is scrollable
Posted by Ashish Kaila at 10/24/2004 11:23:57 PM
Hi All,
Is there a way to tell when a control is scrollable ? For example suppose we
have a table and we want height no more than 100%. If you are adding
controls in new rows, you want to handle scrolling than to expand table
beyond the page length. Is there a way by which this can be achieved ?... more >>
Child Control ID Problem
Posted by Ashish Kaila at 10/24/2004 11:19:16 PM
Hello All,
I am having trouble with client side events in a composite webcontrol.
Basically when I add a button as a child, setting its id as Button_0_0, the
html source adds the <controlid>_ in front of the actual Button_0_0 id. Now
when the postback occurs from Button_0_0, the id recieved in O... more >>
.Net Assembly as ActiveX control
Posted by Steve Lloyd at 10/24/2004 9:18:05 AM
Hi,
I have written a windows forms user control as a .net assembly and tried to
imbed as an object in my aspx pages but it does not happen. If I add the
control to a windows forms project it works fine.
I have created an Interface and the appropriate Implementations in my user
control.
... more >>
WebApp: Need control to list large amount of records
Posted by adampeppler NO[at]SPAM yahoo.com at 10/23/2004 12:24:40 PM
Greetings,
I am creating a database application, and there will be many times
where the webapp user will have to list say customers, or inventory
items.
There could be potentially 100,000's of records returned. Obviously
this makes things a little difficult for say a datagrid.
Also, the... more >>
How to copy n paste .asp files to Solution Explorer and have it show up there?
Posted by Jason Robertson at 10/23/2004 12:07:30 PM
Hi,
I have just installed Visual Studio.net 2003 Enterprise Architect.
I have been using Visual Interdev so far, and I am used to be able to select
from a desktop bunch of .asp files, drag and drop them into a Project
Explorer window and have it show there as a tree of files. Is there some
se... more >>
Calendar control - adding a textbox on each day for data entry
Posted by Keith-Earl at 10/22/2004 4:07:12 PM
Is it feasible to add a simple textbox into the cell (day) of a calendar
control? How would I add it? access it once the user hit Submit?
I searched google with ".net calendar control data entry" and got lots of
but none allowed for data entry from within the cell.
Thanks,
Keith
... more >>
Each time I do a postback, another copy of a control is added to the page!
Posted by Simon Harvey at 10/22/2004 2:40:34 PM
Hi everyone,
I'm having a really weird problem with one of my pages. Whenever I hit the
submit button, it reloads the page but another side menu control appears
underneath the original one. This will occur as many times as I hit the
submit button. The thing that I don't understand is that I... more >>
mousewheel
Posted by brian at 10/22/2004 12:46:07 PM
Is it possible to disable the mousewheel on a server control (ddl)?
Clients are having a problem with a dropdownlist WHEN they click on the list and DO NOT selectet an item but then use their mousewheel to scroll.
The current ddl item has focus and causes a postback on the mousewheel scroll beca... more >>
Webcontrol contra Javaapplet
Posted by Henrik H at 10/22/2004 12:32:10 PM
Hi all,,
Are there anyone who can tell me the advantage/disadvange of using a
webcontol insted of a javaapplet??
Wich of the 2 component run's fastest??
What is else the diffrerens of the 2 components???
-Or is there a other way to get data in realtime from a database??
Thanks
... more >>
Cant run ASP.NET Web Application
Posted by wayne calvert at 10/22/2004 10:50:39 AM
hello all
I hope you can help with running web applications in VB.NET. I have just
started working with 'Visual Basic .NET Black Book'. I am at page 12 have
created the web application 'WebHello'. If I try running it as suggested in
the book (debug/PF5) it builds ok but I then get a msg saying... more >>
Where is my DataGrid's Header, Footer and Pager items in?
Posted by RB at 10/22/2004 10:17:06 AM
Hi,
I have a web page with a DataGrid that uses default pagination. Even though
the PagerStyle is Numbers, I have added two link buttons (Next and Prev) in
the Pager item.
So now, on the DataGrid's Header and Footer the Pager shows: Next 1 2 3 4 Prev
The problem is that I would like to ... more >>
Newbie: Trouble With Web Controls
Posted by clsmith66 at 10/22/2004 9:25:11 AM
I am using the TreeView IE Web Control downloaded from the Microsoft site.
I was trying to follow an example from the Microsoft site to create a new
tree node dynamically, but the treeview object I created will not recognize
any of the methods used in the example like getTreeNode() and
cre... more >>
Alternative of PHP "Unset" function is ASP
Posted by fasanay NO[at]SPAM yahoo.com at 10/22/2004 8:19:54 AM
Hi everybody I have got the following PHP code which I am trying to convert to
ASP any help will be appreciated...I have done most of it but I cant find a
replace function for Unset in asp which will discard the variable alltogether...
if ($categoryid == "all")
{
$sql = "SELECT * FROM ... more >>
AutoPostBack property - TextBox
Posted by mg at 10/22/2004 8:15:03 AM
A WebControl TextBox posts back to the server whether or not the AutoPostBack
property is true, when the TextBox looses focus following a text change. So,
what's the purpose of this property?... more >>
Office objects
Posted by s at 10/22/2004 7:43:04 AM
Hi there,
My question is: Which objects can I use to present an excel file on a web
page .aspx? I need to present the complete workbook or just one worksheet
but I cannot find something like " createobject(excel.workbook) of vb 6.0 ".
I need to restrict some functionality of the excel file... more >>
Intermittent System.InvalidCastException: Specified cast is not valid it's driving me mad
Posted by wenhamton NO[at]SPAM gmail.com at 10/22/2004 2:42:33 AM
Hello,
I have a Intermittent error, only happens once or twice a day:
This is the basic code:
Dim strSeachLetter As String
strSeachLetter =Request.QueryString("letter")
If strSeachLetter <> "" Then
strSeachLetter.Trim()
If TypeOf strSeachLet... more >>
Adding Cascading style to LinkButton Control
Posted by Patrick.O.Ige at 10/21/2004 10:37:01 PM
I have this linkbutton control
How can i add Style sheet to the Text, button attribute.
I know i can use CssClass but how would i define the style there to link to
this control..
Any ideas
I WANT TO CHANGE THE COLOR OF A BUTTON FOR EXAMPLE AND THE FONTS!!!!
<asp:Linkbutton id="Button1" oncli... more >>
How do I update a label with the summary total of six textboxes?
Posted by Karen Grube at 10/21/2004 9:09:02 PM
Hi!
I have a web page containing 6 text boxes placed one below the other in a
column. Each textbox accepts only numeric input and is formatted and
validated as numeric.
As I'm entering each amount, I need to display the summary total of the
amounts that have been entered in a labe... more >>
|