all groups > asp.net webcontrols > february 2007
Filter by week: 1 2 3 4
Hyperlink Back
Posted by Jim McGivney at 2/28/2007 9:45:59 AM
What is the syntax for a Hyperlink to perform like the Back Button ?
When the user presses the hyperlink, I want them to return to the previous
page.
Thanks,
Jim
... more >>
set a timer for online exams
Posted by Archana at 2/28/2007 9:41:33 AM
we are creating Online Exams Module.Just lke any other online exams on other real sites.
The Case is the user can attempt any question within 3 minutes.after 3 minutes,the next question automatically disappears and another question comes on the page.
We also want to show times in Minutes as a... more >>
How to get Gridview cell value on select?
Posted by Dave Hewes at 2/28/2007 9:23:34 AM
I am new to 2.0 and converting a page over from 1.1 datagrid.
How do I do the same thing as the following in a Gridview?
Private Sub DataGrid1_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid1.ItemCommand
If e.Co... more >>
Listbox Multiselect as filter for Gridview
Posted by Nick Nelson at 2/27/2007 9:28:05 PM
I'm using VS2005 Pro and C#. I want to use the items selected in a multi
select listbox as the filter for a gridview populated from a SQL Server
table. The listbox contains organisation types (NGO, Governmental, Charitable
etc) and I want users to be able to filter a gridview to show, for exam... more >>
AJAX Animation
Posted by John Wright at 2/27/2007 12:23:55 PM
I want to diplay a "flyout" type window next to a button when someone clicks
the help button similiar to the function on the page
http://ajax.asp.net/ajaxtoolkit/Animation/Animation.aspx. For the life of
me, I cannot get this to work. Does anyone have some code that will help.
I have a pan... more >>
How can I show a * on required fields
Posted by David Thielen at 2/27/2007 12:03:18 PM
Hi;
My product manager wants the end of required controls to have a black *
after them. Unless they tried to go to the next screen (we're in a wizard)
and then they want a red * after and the validation messages up at the top.
The red only if they fail validation is a piece of cake. But how... more >>
Is TabIndex the right way to set the order of controls?
Posted by David Thielen at 2/27/2007 11:41:15 AM
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
... more >>
Getting google autofill to work
Posted by David Thielen at 2/27/2007 11:39:10 AM
Hi;
I am able to get most of the google autofill to work by creating TextBox
controls with names like "name", "state", etc. But it does not work for
streetLine1 or city. Any ideas?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.wi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Defauly focus in a WizardStep
Posted by David Thielen at 2/27/2007 11:37:13 AM
Hi;
How can I set the control to get the focus in a WizardStep? Everything I can
find shows how to do this for a form but in a wizard each step has a
different default control.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwa... more >>
WizardControl
Posted by hngo01 at 2/26/2007 6:23:15 PM
Hi all,
I have a Wizard control with 4 steps:
WizardStep1 - (2 textbox control)
WizardStep2 - (2 textbox control)
WizardStep3 - (2 textbox control)
WizardStep4 - (2 textbox control)
I am beginning with step 1
When I click Next to go Step 2 then I remove this step 2 with this
code(Wi... more >>
Image button and tabstop=false
Posted by Jerry C at 2/26/2007 3:08:33 PM
I have imagebuttion on a page and I don't want them to be tabstops. I connot
find a tabstop=fales. how do I stop the buttion from receiving focus with
the user is using the tab key.
Thank you
--
Jerry ... more >>
System.Windows.Forms.WebBrowser and Java and Blank Pages
Posted by Jon Ebersole at 2/26/2007 2:39:40 PM
I am writing a class library that takes screen shots of pages of websites. I
am using System.Windows.Forms.WebBrowser to navigate to the web page. I call
the Navigate method, and then respond to the DocCompleted event handler. I
use the DrawToBitmap method to create a bitmap image and displ... more >>
set dropdownlist selectedindex in datagrid
Posted by pleaseexplaintome NO[at]SPAM yahoo.com at 2/25/2007 2:52:54 PM
Hi all,
I have a datagrid with a dropdownlist and would like to have the
dropdownlist display a database value correctly while the grid is in
edit mode.
I have a templatecolumn as follows:
<asp:TemplateColumn HeaderText="New Route">
<HeaderStyle Width="0.5in"></HeaderStyle>
<ItemTemplat... more >>
ASP.NET book
Posted by Joe Penora at 2/25/2007 11:02:29 AM
Hi All,
Could you please recommnend of an ASP.NET book that will cover all aspects.
Such as handling parameters from one page to another and much more...
Thanks.
... more >>
CreateUserWizard Stepping Problem
Posted by Matt at 2/23/2007 5:06:52 PM
I have a strange issue with a CreateUserWizard control. Several months back
I created a registration page with 4 steps. Everything has been working
perfectly until now. Without any rhyme or reason the control stops on the
second step and will not move any futher. When I look at the
NextB... more >>
Cause GridView to be sorted from DropDownList
Posted by DBLWizard at 2/22/2007 5:37:31 PM
Howdy All,
I have a GridView control on a page and I want to give the user the
ability to sort using the colums or using a dropdown. Is there an
easy way to tell the grid to sort based on a column? Or do I have to
manually sort the datasource and rebind it to the grid?
Thanks
dbl
... more >>
access validation info in client script
Posted by Velvet at 2/22/2007 3:48:50 PM
Does anyone know a way to force the client script to preform a client-side
validation for controls in validation groups?
What is currently happening is I have two validation groups (Billing,
CreditCard). The validation doesn't happen until the submit button is
pressed and the server valida... more >>
Loading JavaScript files from a class library
Posted by ArtG at 2/22/2007 3:29:13 PM
I have a class library that contains web controls. I would like to put Java
script files in the class library and have the web application download the
Javascript from the classlibrary. I downloaded ASP/.Net AJAX and tried the
example in http://ajax.asp.net/docs/tutorials/EmbedScriptFile.asp... more >>
Accessing Controls in LoginView
Posted by Steve Harp at 2/22/2007 11:43:31 AM
Hi All,
This should be easy. I have a LoginView control on my default page.
Within the LoggedInTemplate, I have a DropDownList control. From my
code-behind cs file (in the DropDownList_SelectedIndexChanged method),
how can I access the DropDownList to see what selection was made? A
small c... more >>
How to implement ClientScript.RegisterClientScriptInclude
Posted by verci at 2/22/2007 2:51:18 AM
Hi guys,
I'm using asp.net 2.0, can anybody sent me some complete examples on using
ClientScript.RegisterClientScriptInclude and
ClientScript.RegisterClientScriptSource, for registering an external
javascript file (myfile.js) in my ASP page, I have not found any clear or
complete examples... more >>
Datagrid on WebPart: After postback Data is disappearing
Posted by Dan at 2/21/2007 2:33:08 PM
I am having a problem with losing data from my datagrid after it posts back.
The page runs the populate data sub at the end of CreateChildControls and
fills my DataGrid. After I postback by clicking the cmdUpdate button, I
would expect oTable.Items.Count to have the same # it was before I di... more >>
Custom Server Control
Posted by Madison at 2/21/2007 12:13:05 PM
I had created custom textbox server control and try to use in the web
application by placeing DLL in bin folder and add DLL in the reference. Then
in the web.config I added the following:
<controls>
<add namespace="pscControl.psc" assembly="pscControl" tagPrefix="psc"/>
</controls>
In the... more >>
ASP:Menu control Dropdowns show above Main Menu
Posted by Jerry C at 2/21/2007 8:37:43 AM
I have a menu control in different places on my page and some times the
dropdown menu items show an inch or two above the main menu selection.
the code is:
<table><tr><td>
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal">
<Items>
<asp:MenuItem Navigat... more >>
Problem with javascript file in ASP
Posted by verci at 2/20/2007 11:21:25 PM
Hi guys, sorry if this seems stupid but I'm a newbie, I'm running Windows XP
Pro SP2, IE 7, VS2005, ASP.net 2.0
The problem is that I'm trying to display this news scroller made in a
Javascript file(newsscroller.js) in my ASP page, everything works great in a
normal HTML page, I can see th... more >>
Loading webcontrols problem
Posted by ThunderMusic at 2/20/2007 11:21:28 AM
Hi,
I always refer to this page to know the order of events in a page :
http://weblogs.asp.net/jeff/archive/2004/07/04/172683.aspx but this time,
I'm mystified...
I have a Control called "ImagePreloader" I placed in the head of my
MasterPage (aspx)... in the Init of the "ImagePreloader",... more >>
How to Disabled node in Treeview
Posted by Maria Paz at 2/19/2007 6:21:00 PM
Hello,
In my web application, i use a treeview control to navigate.
I need to disabled node for Different roles.
How to do this?... more >>
UserControl - Adding description in designer
Posted by Matt Adamson at 2/16/2007 12:00:00 AM
Does anyone know how to add a description to a property so it displays in
the designer when you are editing the properties for a user control dragged
onto an ASPNET page.
I have tried the System.ComponentModel.Description and Title attributes with
no success
... more >>
Error Creating Control CustomWebControls1 Unknown Server Tag cc1: CustomWebControls
Posted by Ryan at 2/15/2007 7:01:55 PM
I am trying to program a modified version of the password reset
control. I have written the following code (below). When I add it to
my tool box and then attempt to add it to the page, I get the message:
Error Creating Control CustomWebControls1 Unknown Server Tag cc1:
CustomWebControls
I... more >>
menu control StaticSelectedStyle
Posted by Jerry C at 2/15/2007 1:13:07 PM
I am trying to setup a asp:menu control and have the selected item chang to
red.
The menu is in a user control and the menu items are added dynamically with
the lines
Dim FMItem As New MenuItem
FMItem.Text = "Some Text"
FMItem.Value = 3 'any number
FMItem.Selectable = True
Menu... more >>
how to trigger action from button embedded in another control?
Posted by Terry at 2/15/2007 12:00:00 AM
Hi,
I have a button ("button1") embedded into another control ("LoginView1"). In
the code-behind environment of VWD (visual web
dev.), i cant' use the event button1_onclick because 'button1' doesn't
appear in the list of the events.
How can i then trigger an action when clicking the but... more >>
problem with FindControl
Posted by Terry at 2/15/2007 12:00:00 AM
Hi,
i want to access control "TextBox1" embedded in another control "LoginView1"
in order to change the 'Text' of the textbox.
Therefore i use 'FindControl' method but i get error:
"Object reference not set to an instance of an object" on line: tb =
lv.FindControl("textbox1")
Thanks... more >>
ControlToValidate
Posted by Kevin Humphreys at 2/14/2007 5:18:46 PM
Hi There,
I am trying to implement the following criteria for the controltovalidate
web control.
If a checkbox is checked and a textbox is empty then accept the validation
as true and process some code if the page is valid
If a checkbox is unchecked and a textbox is empty then treat the valid... more >>
How can I select a row by clicking on ANY column
Posted by John Wilmot at 2/14/2007 11:14:27 AM
I am using the following to highlight a row when mousing over a GridView:
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='Silver'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='White'");
Now, what I would like to do would seem simple, but apparently is not... more >>
Script manager equivalent... How can I do?
Posted by ThunderMusic at 2/14/2007 8:31:28 AM
Hi,
I know there is something called (something like) Script Manager in asp.net
AJAX... What is the best way of achieving the kind of behavior it has? I
mean, maybe I didn't understand it correctly, but as I understand it, many
(if not all) asp.net AJAX control gets the Script manager (in th... more >>
Update only the content page
Posted by Henri at 2/13/2007 11:07:05 PM
Hello
In a website, I have a master page - with a menu and a banner in the top -
and diffrents pages. When the user click an item of the menu, all the window
is updated. I would prefer that only the content is updated, and the master
page (menu and banner on the top) stay and are not reloda... more >>
how to change email defined when creating account?
Posted by Dan at 2/13/2007 8:08:06 PM
Hi,
I use the <asp:CreateUserWizard> control for creating memberusers. In that
windows, one must provide an emailaddress.
My question is: how can an user later change his emailaddress?
Thanks
Dan
... more >>
Need Help With PasswordRecovery Component
Posted by Steve Harp at 2/13/2007 2:16:41 PM
Hi All,
I'm using a PasswordRecovery component and apparently the default
behavior is to reset the user's password. I need to set it to recover
the password; not reset it. How is this done?
Thanks,
Steve... more >>
Should HeaderText change the behavior of a GridView?
Posted by Harry Keck at 2/13/2007 8:52:02 AM
I have a GridView control with a few columns declared directly in the aspx
file. I have found that if I remove the HeaderText property from all columns
that the GridView handles state completely differently than if any of the
columns has a value set for HeaderText. This sounds completely wro... more >>
Datagrid HeaderStyle.CssClass applied to <tr>
Posted by Randel at 2/13/2007 8:07:04 AM
Hi.
I am building a datagrid based on a datatable. I am attempting to
apply a style value using the syntax
Datagrid.HeaderStyle.CssClass="mystyle".
When the datagrid renders, the style is applied at the row level
(example below)
<tr class="mystyle" align="Left" valign="Top">
<td>Name</td... more >>
page is postback while using validation
Posted by Nishu at 2/13/2007 3:12:22 AM
Hi!
I m facing a problem while using required field validator
control.actually page giving validation error after being postback.
its working perfectly on local server but on remote server it first
post back then giving error
Please solve my problem.
Thnx & regards
Nishu Mahendra
... more >>
AJAX and embeded controls
Posted by Jerry C at 2/12/2007 3:30:00 PM
I am having trouble using a user control with AJAX. The control will put a
script in to a Literal on the page The code is below. It runs the first time
then when the button is pressed it will not run.
Code:
ASPX page:
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.asp... more >>
menu navigation control and CSS interference
Posted by Chuck P at 2/12/2007 3:09:01 PM
I created a horizontal <asp:Menu with the following settings
<StaticHoverStyle BackColor="#284E98" ForeColor="White" />
<DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
When I display the menu in Firefox or IE the ForeColor text is BLUE not White.
Also the dynamic menu item... more >>
why is this html table still visible?
Posted by Dan at 2/12/2007 9:23:04 AM
Hi,
i defined a html table with Visible="false", but i still see it in the
browser.
Why and how to hide that table?
Thanks
Dan
%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb"
Inherits="Default3" %>
<head runat="server"> <title>Untitled Page</title> </head>
... more >>
GridView Header Height
Posted by Wouter de Kort at 2/12/2007 5:12:01 AM
Hi all :)
I'm trying to set my header row to a fixed height. Currently all the rows
are equally spread on the control so If I have less rows all the rows,
including the header, become taller.
What can I do about this? I just want to be able to specify the height of
the header row. I've ... more >>
Put the date of today in a text control
Posted by Pasquale at 2/11/2007 1:00:14 AM
I need to create a ASP.NET page that shows in a text control the date of
today (without time) in the format dd/mm/aaaa (the server-client language is
italian) when the page is loaded.
How can I solve this issue?
Thanks... more >>
GridView.Columns.Insert Problems
Posted by Harry Keck at 2/9/2007 10:30:01 AM
I have a GridView that I dynamically add columns to in code. The way that my
code is written, everything works properly if I use GridView.Columns.Add to
simply add the columns to the end of the collection. However, if I use
GridView.Columns.Insert to inject the columns in the middle of the e... more >>
WebPartManager is undefined JavaScript error
Posted by Richard Priddy at 2/9/2007 3:38:00 AM
Hello,
I have a webpage that uses URL rewriting to masquerade as many pages. I am
trying to get this page to work with ASP.NET2 web parts.
I will attach any important code at the bottom of this post.
The problem I am having is that when URL rewriting is enabled any controls
that are in WebP... more >>
Problem with Dynamically added dropdownlists to placeholders, panels, tables, etc.
Posted by ChuckSlayer at 2/9/2007 12:43:56 AM
Can anyone please explain to me why this does not work and how should
I fix it?. I am adding dropdownlists dynamically on the code behind.
These dropdownlists are set not to use autopost back. After the user
is done selecting all desired values for all dropdownlists, they click
on the next butto... more >>
How do I reposition Controls inside Panel in designer
Posted by schumigod at 2/8/2007 4:09:00 PM
Ok, so I'm sure this is simple, but I can't find an answer...
I have placed a panel control on a web form, and placed other controls (text
box, datagrid etc...) within it, but they all snap to the left of the panel.
I am not able to drag them around inside the panel (in design view)to
pos... more >>
Highlight a clicked row in a gridview linked to a css
Posted by Chris at 2/8/2007 10:32:41 AM
I am using a gridview with alternating row color. The gridview is gets its
attributes from a stylesheet.
I want to highlight a row when the user clicks on it. I did this with client
side script and it worked fine until I attached the view to a stylesheet.
It seems like the stylesheet has pri... more >>
|