all groups > asp.net webcontrols > march 2004 > threads for march 8 - 14, 2004
Filter by week: 1 2 3 4 5
DataList client script
Posted by Craig at 3/14/2004 12:09:02 PM
Hi
I'm using the DataList control, inside the ItemTemplate html section I have
a button which posts back to the server via the DeleteCommand. Can I
execute some client-side script before the postback? i.e. display a confirm
message box.
Craig
... more >>
Dynamically move an object
Posted by Kokokity at 3/14/2004 10:01:07 AM
I am trying to dynamically move an object on a webform. I have four buttons (left, right, up, down) and I would like the object to move appropriately in response to each button click
Thanks
... more >>
System.Web.UI.WebControls.TextBox ?
Posted by WJ at 3/14/2004 8:25:51 AM
Is there a trick I can use the "PasswordChar" property that is available in
System.Windows.Forms.TextBox ? I donot see such Property existed in the
similar WebControls.TextBox. I need to mask my user's Password.
Thanks
John
... more >>
gant chat web control
Posted by aussie rules at 3/14/2004 3:00:13 AM
Hi,
I want to put a gant chart onto a web page(asp.net).
Are there any good controls I can buy out there ?
I know there are some good VB.net ones, but I do not know any for ASP.net
Thanks
... more >>
Cannot terminate edit mode in a datagrid !
Posted by Ashish at 3/13/2004 7:18:33 PM
Hi All,
I am facing a really stupid problem related to datagrids. I have inplace
editing enabled. Cancel button works fine, I set edititemindex to -1 and
perform a databind, and edit mode quits. The problem is with update button.
I perform some recalculation of data source, set the edititemindex... more >>
Reading uploaded file properties with ASP.NET?
Posted by theintrepidfox NO[at]SPAM hotmail.com at 3/13/2004 11:55:18 AM
Dear Group
Is there a way how I can read the properties like 'Height' and 'Width'
of e.g. a jpg-file with ASP.NET, ideally at some point during the
upload process as only a certain size is allowed or once it has been
uploaded? Note that I require a solution where I can assign 'Height'
and 'Wi... more >>
View State
Posted by Hadi at 3/13/2004 9:16:06 AM
When you disable view state at the page level does it overwrites all the controls on the page. or the control will overwrite it
Also Why you can't disable the viewstate for a textbox
thanks
Mohammed... more >>
asp:HyperLink - quotes problem
Posted by bhai NO[at]SPAM vt.edu at 3/12/2004 2:22:36 PM
Hi,
I have a strange problem, I have a datagrid with a hyperlink
webcontrol inside it. I want to call a javascript function from the
hyperlink control. The problem is I want to pass single quoted
parameters to javascript function (eg: 'ID'). At the same time my
parameters will also contain C... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Dynamically load controls out of Load event - control's events.
Posted by Leonardo Soares at 3/12/2004 11:21:12 AM
Hi all,
When I t ry to load a web user controls after the Page Load event, the control behavior runs away from the normal one. The problem it that I need to load this controls at the click of one button on the other control. So I would like one way to make this work.
Some one should help me? I... more >>
Drowdownlists value before change
Posted by marcus.malmgren NO[at]SPAM plastal.com at 3/12/2004 2:14:17 AM
Hello!
I'm building a website in asp.net. The site contains a dropdownlist.
Autopostback is set to true, because when the dropdownlist is changed
I want a DataGrid to be updated. Everytime the dropdownlist is changed
the webpage is reloaded.
I have a global variable which shall contain the dr... more >>
Bug with a DataGrid rebound on every request
Posted by Dave Reed at 3/11/2004 11:11:08 PM
Most of the time you bind a datagrid when it's not a PostBack. The DataGrid then uses ViewState to remember all the data to rebuild it on subsequent postbacks. Thats great when it is expensive to grab the data, like running a sql query might be
If you've ever done a View Source on a page with a bi... more >>
Session Variables
Posted by Angel Molines at 3/11/2004 11:12:50 AM
De: "Angel Molines" <amolines@cambrescat.es>
Asunto: Session Variables
Fecha: jueves, 11 de marzo de 2004 9:17
how can to do for share session variables or cookies between two servers
Thanks !
... more >>
Validation not working
Posted by Jeff Tolman at 3/11/2004 10:08:54 AM
For some reason, validation is no longer working on any of my fields. When
I look at the source returned to the browser, I see that the PageValidation
variable is set to false. But why? I can't find any of the obvious places
in the application where this is set.
ALL suggestions are much wel... more >>
DropDownList with AutoPostBack - why no CausesValidation property? Workaround?
Posted by jonathanSPAM_IS_BAD NO[at]SPAM thycotic.com at 3/11/2004 9:29:17 AM
All,
I have a DropDownList that is using AutoPostBack="True". When
selecting an item, it triggers a postback as desired which is used to
update a label's text on the server. The problem is that it fires the
validators on the page as though a submit had been done. This causes
unwanted entri... more >>
Bind textbox to datagrid in frameset questions.
Posted by Aaron at 3/11/2004 8:30:11 AM
I have a frameset with two frames.
The top frame (webform1.aspx) is a very simple SQL query form with one
textbox, a submit button, and a datagrid. My queries and datagrid work
great.
I would like the lower frame (webform2.aspx) to contain textboxes which
correspond to the columns in th... more >>
problem with dropdownlist user control
Posted by cakewalkr7 NO[at]SPAM hotmail.com at 3/11/2004 6:32:30 AM
I have created a user control for our in house forms. It is basically
just a dropdownlist that gets populated with all of the us states with
properties set up to expose the selectedindex, selecteditem and
selectedvalue. It inherits from webcontrol. It has a protected
member dropdownlist and i... more >>
listbox postback problem
Posted by susie at 3/10/2004 7:31:06 PM
I have the following code sample for listbox. If I select 9 and add it to the right side listbox, I have to scroll down again in order to select 10 from the left listbox. How to prevent the page not to postback so that I do not have to scroll down the left side listbox to select 10 and add to the ... more >>
Error Creating Object
Posted by ruca at 3/10/2004 4:42:17 PM
I have an object that must be created be created in 3 different pages of my
Application.
The problem is that I can create the object in only one of that pages and in
the others gives me two differents errors
in one says: 'Object reference not set to an instance of an object.'
an in another says... more >>
Default printer name from ASP.NET application
Posted by ALMA_J_III at 3/10/2004 1:27:12 PM
Hey,All!
I have a problem. It is necessary from my ASP.NET application to get default
printer name of local PC, and names of all installed printers on local PC.
It is possible?
Did someone have similar problem?
Does anyone got any ideas?
Thanks for your help..
ALMA_J_III
... more >>
Button relative to datagrid
Posted by Colin Basterfield at 3/10/2004 1:23:12 PM
Hi,
I am new to HTML, so am struggling a bit with the old POSITION: relative
malarky. I would like my buttons to appear relative to the datagrid which
can have varying row counts, depending on the selection made on the previous
page, so what tags do I need to use/wrap around these controls to... more >>
User Control
Posted by Anonymous at 3/10/2004 1:11:06 PM
I have an existing .Net project. One of the web forms has a user control uc1.ascx in it. I changed the uc1.ascx.cs file which has the code for the control. I copied the new version of the uc1.ascx.cs into the web folder (inetpub) and restarted IIS. But I am not able to see any of the changes that I ... more >>
email could not go through asp.net
Posted by susie at 3/10/2004 10:56:10 AM
My asp.net application has a functionality to allow a user to send out email from the asp.net web page
However I encountered a problem that I could figure out,hopefully some guru can offer an input to resolve the problem
The following are the test results when sending email from my asp.net page
1... more >>
Webcontrols inside of a datalist...
Posted by Larry at 3/10/2004 10:31:12 AM
I am trying to figure out how to access say a HyperLink web control that is inside of a datalist control. What I am wanting to do is make a conditional check in the datalists databound event and check to see if a value is true or false then set a hyperlink visible or hidden based on that. Thank yo... more >>
Enable View State
Posted by Mohammed at 3/10/2004 6:11:07 AM
dear all
I would like to ask a question in regards to ViewState. I tried to disable viewstate to a textbox or a Listbox by setting EnableViewState = false but it won't do it. Also whcih one has a precedence the Page level ViewState or the Button Level View State
Thanks
Mohammed... more >>
Get filename of Current Executing ASPX Page
Posted by chigger at 3/10/2004 1:39:17 AM
Hello all,
Is is possible to retrieve the filename of the current executing ASPX
file? I do not want to hard code the name of the file in my code like
"mypages.aspx" but want to discover it dynamically (Just in case the
filename changes).
Thanks in advanced!
Chig... more >>
adding controls to datagrid column dynamicaly ?
Posted by KK at 3/9/2004 10:00:27 PM
Hi
I am showing some data in the datagrid.
I also have a template column.
Inside that template column I am going
to show 1 to 5 link buttons.
The problem i am having is, like in the
traditional ASP, can I use <%%> script blocks
as below ?
<datagrid>
<....>
<asp:TemplateColumn>........ more >>
Treeview, Div, and scrolling
Posted by Neil Gobioff at 3/9/2004 7:46:22 PM
I've got a treeview on a webform. To get scrollbars I placed it inside a
div.
When the page is opened, some of the nodes can only be reached by scrolling.
The top node is selected by default.
When the user scrolls to any nodes below the horizon and attempts to click
on the "+" the treeview jump... more >>
ActiveX error
Posted by ruca at 3/9/2004 6:50:51 PM
Cannot create ActiveX component
This is the error that gives me when I try to create an object. I create =
him like this:
Dim obj as New Object
//this is a component made by other application
obj =3D CreateObject("cth0mn.hdHrrCl")
If (obj.initialize(conn)) Then //inicialize in my component... more >>
How to get the value from a DropDownList?
Posted by Bob H at 3/9/2004 5:20:55 PM
Hi,
I have a series of DropDownLists on a form. When the user submits the form I
want to be able to trundle through these lists and find out the list value.
...something like...
For Each ctl In Me.Controls
If TypeOf ctl Is DropDownList Then
...get selectedValue from list
End If
Nex... more >>
Printing Page
Posted by ruca at 3/9/2004 4:38:02 PM
How can I print my Page?
I have a button (named Print), that when clicked I want that he prints my
ASPX Page.
Ruca
... more >>
Validating user input in a textbox
Posted by Anita C at 3/9/2004 3:35:56 PM
Hi,
What is the best way to validate the user input in a textbox on click of
abutton to ensure that none of the foll. characters(illegal for filenames)
are entered :
` ~ ! @ # $ % ^ & *
( ) + [ ] { } | \ :
; " ' < > , ? / (space)
A code snippet or a link to an example will be great.
Thank... more >>
Back and Forward Page
Posted by ruca at 3/9/2004 2:10:32 PM
Do you know how can I disable the Back and Forward commands in browser?
I want to disable that commands for some pages and others not.
How can I do that?
--
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
... more >>
ImageButton
Posted by dennylee60 NO[at]SPAM yahoo.com at 3/9/2004 1:44:29 PM
Hello,
I need a little help with the ImageButton. I am using the
imageButton.ImageURL properties to dynamically load an image onto the
button. The problem is that if there is a delay getting the picture,
I would see the alternative text. How can I delay the change over
until the new picture ... more >>
EditItemTemplate in DataGrid
Posted by Craig at 3/9/2004 1:32:34 PM
Hi
I have a datagrid with 3 columns, the 3rd column has a button to edit. When
I click edit, I want to merge the columns, effectively colspan the edited
row. Does anyone got any ideas.
Craig
... more >>
Urgent Question in Custom Paging User Control
Posted by Andy Eshtry at 3/9/2004 11:37:30 AM
Dear Friends
I try to use the following user control from Mr. Olovyannikov
http://www.freevbcode.com/ShowCode.asp?ID=5574 but I think there is a bug.
When I put DG.PageSize = 2 and dgPager.PagesToDisplay = 5, it shows the
first 5 buttons correctly but when I click on "Next 5" link, it shows 7... more >>
LinkButton Target
Posted by ruca at 3/9/2004 11:31:14 AM
Can I define a frame target in a LinkButton control like we can use in
hyperlinks???
I have a page where I have two frames (left and right frames) in my left
frame I have a menu contents (where I would like to use LinkButtons). When I
click in one of the buttons I want to open in my right fr... more >>
Validating webcontrols with Javascript??
Posted by Bob H at 3/9/2004 9:49:35 AM
Hi,
I have a series of DropDownList on a form. I'd like to check that the user
has selected an option from at least one of these lists before submitting
the form. If they haven't, then Cancel the submit (and how do you cancel the
OnCommand function for the Submit button?). If they have, then c... more >>
Values disappearing in hidden textbox inside repeater
Posted by kornerson at 3/9/2004 8:06:10 AM
H
Im self learning asp.net, so I may be doing mistakes. But I found something that may be a "bug"...at least for me it looks as inconsistent
I explain myself. I have a repeater and inside of it I have hidden textboxes (visible="False") with values that are set during runtime (I do a loop in a da... more >>
add server control to stringbuilder
Posted by george_Martinho NO[at]SPAM hotmail.com at 3/9/2004 7:17:52 AM
Hi
I'm trying to add a server control to a stringbuilder and I'd like
some suggestions please.
The output of the server control is 3 html combo boxes and I would
like to add the html output to the StringBuilder and then output
everyhting as HtmlTextWriter.
Thanks in Advance if you can help ... more >>
dynamicaly created custom control not visible
Posted by Michel at 3/9/2004 2:46:07 AM
Hi all
I have created a custom control which contains dropdownlist.
allready use this custom control on several places without a problem
But when I try to dynamically create it in my code behind, it is no
displayed on my page
What I do: I have a datagrid on my page, which contains a list o
... more >>
Cannot display chinese words when exporting datagrid into excel
Posted by Kelvin at 3/8/2004 8:01:12 PM
I can see the chinese words in datagird before export to excel
However, chinese words after exporting to excel become scramble.
Do anybody know how can I export chinese words to excel
Million Thanks!... more >>
DataView
Posted by ruca at 3/8/2004 4:54:04 PM
I'm filtering a DataView. After that I know that filter result only ( and
only) in one row with 4 or 5 columns. Now I want to pic up the value of one
of that columns (that I know only the name, eg. Code).
How can I take this value of that column of my DataView?
I have this:
dv.Table = dt ... more >>
checkboxlists / radiobuttonlists readonly
Posted by KW at 3/8/2004 3:56:32 PM
Is there any way in ASP.NET (besides for setting enabled = false) to make a
checkboxlist and radiobuttonlist readonly?
This would be similar to making a text box readonly. I don't want the users
to be able to change what boxes are checked (for reporting purposes).
Any help would be apprecia... more >>
Subclassing a User Control
Posted by Andrew Brogdon at 3/8/2004 3:01:03 PM
I have a user control that I've created. It's a basic dialog frame made
using a table, with a label in the title bar, and an imagebutton for closing
the dialog. Nothing fancy. I laid out the control in the HTML window of
the PopupDialog.ascx file, and there's an event tied to the imagebutt... more >>
how to Build a tree view control...
Posted by bredal Jensen at 3/8/2004 2:33:43 PM
Hello gurus,
I'am addressing this question to the very eksperts out here and i'm aware
that there is no easy solution.
But i would really like to build my own treeView control for use in asp.net.
I use C# and i hope i can find som code somewhere to start with .
I know some people have allready ... more >>
Adjust runtime properties of asp:button in datagrid?
Posted by haile at 3/8/2004 10:36:12 AM
My datagrid has an an asp:TemplateColumn containing an asp:button inside an itemtemplate
<!-- within asp:datagrid id="dg1" --><asp:templatecolumn><itemtemplate><asp:button id="btn1" commandName="Show Details" ... ></itemtemplate></asp:templatecolumn
I want this button to be enabled only if detai... more >>
How can I make the treeview like Microsoft's Newsgroup?
Posted by clare hsiao at 3/8/2004 12:11:09 AM
Hi all
On Microsoft's MSDN Newsgroup http://msdn.microsoft.com/newsgroups/
the treeview load the child nodes when user just expand the nodes.
but in treeview control, we have to load all child nodes at the same time.
How can I make the tree like Microsoft's Newsgroup?
Thanks a lot. ... more >>
|