all groups > asp.net webcontrols > january 2007
Filter by week: 1 2 3 4 5
How can I add javascript client code while developing ASP.NET controls inside VS2005?
Posted by Savvoulidis Iordanis at 1/31/2007 4:48:12 PM
I want to create a checkbox that when clicked, selects/deselects all items
in a list box, on the client side (no round trip)
What kind of code should I add (and where in the asp.net web control) ?
... more >>
RegEX for Email
Posted by Ben at 1/31/2007 10:28:18 AM
Hi All,
I am using a regular expression for validating an email field.
ValidationExpression="\S+@\S+\.\S+"
This validates if the @ and . are missing but I need a more tight
validation - only 1 @ should be there etc.
Any help is greatly appreciated.
P.S I would have researched this more... more >>
FormView & object
Posted by David Thielen at 1/30/2007 4:04:00 PM
Hi;
Is there a way to assign an object as the DataItem for a FormView? I need to
edit/view/create an object that doesn't really map to a row in a database.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
... more >>
RegularExpressionValidator
Posted by Jason at 1/30/2007 9:06:48 AM
Hi ,
I'm attempting to use the Regular Expression Validator to cehck for
the following conditions:
<sequence of letters><sequence of numbers>
or
<sequence of letters><sequence of numbers> \ <sequence of numbers>
or
<sequence of letters><sequence of numbers> \ <sequence of numbers> \
<s... more >>
Validting selected date from a calendar
Posted by Tamer Ibrahim at 1/29/2007 3:23:48 AM
how can I make sure that the user can't select a date earlier than the
today's date ?
... more >>
Server Application Unavailable
Posted by WRH at 1/27/2007 10:11:52 PM
Hello
I'm using MS Visual Web Dev 2005 Express and did the tutorial
to make a simple web site with C# code behind. Works fine
with the ASP.NET development server that runs with Web Dev.
When I move the files to an IIS server however I consistently
get a "Server Application Unavailable" error 5... more >>
Calendar Control posting back
Posted by spitapps at 1/27/2007 4:51:16 PM
I am creating a date selector using the .NET calendar control. I have
an icon on my webpage and once the icon is clicked i want a DIV
containing a calendar control to popup and have the user select a date
and have that date put into a textbox on the webpage and the DIV with
the calendar con... more >>
Disable the prev button in a wizard
Posted by David Thielen at 1/27/2007 3:38:01 PM
Hi;
How can I disable the prev button in a wizard from my C# code behind? On the
last page a prev is not allowed.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Referencing Controls on ItemTemplate in FormView Control
Posted by mike NO[at]SPAM 5starserv.com at 1/27/2007 12:06:11 PM
in the Page_Load event the following code works at design time but
does not work when placed on the production server.
I get an error "Object reference not set to an instance of an object."
the snippet is:
Image img = new Image();
img = FormView1.Row.FindControl("ProdPhoto") as Image;
i... more >>
Client Side ID Differs From Server Side ID
Posted by senfo at 1/26/2007 6:49:45 PM
I'm having an issue with trying to access the client-side ID of a
control in a WebControl that I'm designing.
Basically, I'm attempting to add a JavaScript onclick event handler to
an image and pass the ID of another control to the the function that the
event handler call.
Example:
My... more >>
Repeater and Validators
Posted by Keybee at 1/26/2007 10:39:00 AM
Hi all
I was wondering if someone could clarify how to use a
RegularExpressionValidator on fields in a Repeater..
I have a button for each row and i only want the validator summary to check
the fields on the same row as the button i click. Is this possible?? Right
now it doesnt matter wh... more >>
Web Parts - EditorZone - Changing the appearance of a web part
Posted by Matt Adamson at 1/26/2007 10:12:53 AM
I'm using this zone to change the appearance i.e. height and width of a web
part at design time however when I saved the changes by pressing ok / apply
the size of the web part remains the same.
Am I supposed to change the properties on the web part to support resizing
perhaps? The change... more >>
can i assign a name for a control dynamically?
Posted by miladhatam NO[at]SPAM gmail.com at 1/25/2007 2:54:51 PM
hi ladies and gentlemen
how can i call a control dynamically?
for example
for(i=1;i<10;i++) {
"label" + i + ".text" =i*2;
}
thanks
... more >>
collecting the information of a custom DataBoundControl
Posted by sloan at 1/25/2007 4:52:40 AM
I have successfully gotten thru and coded up a basic
MyDataBoundCntl : DataBoundControl
Imagine I have a list of 3 people.
John
Mary
Joe
The output of my control is a table, with 3 rows.
By their name, I've added a checkbox ( Checkbox cb = new Checkbox(); the
I add i... more >>
UpdatePanel, Postback
Posted by marss at 1/25/2007 3:05:43 AM
Hello,
I have a question concerning UpdatePanel.
For example, I have two linkbuttons at the UpdatePanel. I want the
Button1 linkbutton to update controls within panel (the TextBox1
control in this case), and the Button2 linkbutton perform redirect to
another page. When I click on Button2 it ret... more >>
Customising the CatalogZone class
Posted by Matt Adamson at 1/23/2007 2:15:34 PM
Do you know if it's possible to customise this class so we could see a list
of all web parts on the right hand pane and then drag and drop them into the
appropriate web parts. Rather than using the default interface which present
a list of the web parts with a check box next to each one.
... more >>
Can't get FinishDestinationPageUrl to forward to the correct page in the CreateUserWizard control
Posted by TheLongshot at 1/23/2007 1:38:02 PM
I have a CreateUserWizard control on my page, with an additional two
panels to register a user. I have FinishDestinationPageUrl set to
default.aspx, but clicking the Finish button just reposts the page. It
doesn't redirect me to default.aspx. What is going on here?
Jason
... more >>
DetailsView Default Mode
Posted by Olivier Matrot at 1/23/2007 11:12:45 AM
Hi all,
I'm working with a detailsview control which default mode is set to
'Insert'.
This control has AutogenerateInsertButton set to 'yes'.
So basically, I'm always in insert mode, and I have only one field to
display. The problem is that there is an auto generated 'Cancel' button
which... more >>
How to know the selected row in a DataControlField
Posted by JamesD at 1/23/2007 6:25:05 AM
Hi.
I'm creating a custom WebControl that extends GridView. This control
loads its columns dinamically reading from a XML configuration file.
Many columns loaded by the control may be a custom DataControlField
filled with an ImageButton.
I'm able to handle the click or the command event gener... more >>
Validation Groups and Wizard step
Posted by David Thielen at 1/22/2007 4:31:05 PM
Hi;
In a wizard step I have two validation groups. I need one of them tied to
the Next button for that step only. How can I do this?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
... more >>
Checkboxlist Question
Posted by JM at 1/22/2007 4:03:13 PM
Here is the situation, we have a website running .Net 2.0 framework. There
is a page that we use a checkboxlist control for users to designate generic
required file types. Users would like to be able to add a short note to each
item (for example, the file type would be 'letter of interest' t... more >>
Why can't I get the FormView control's Paging controls to show?
Posted by Nathan Sokalski at 1/21/2007 4:45:49 PM
I have tried everything I can think of, I have even tried copying examples
from books and websites I have found, but every Formview control that I have
tried to create does not show the Paging controls. The first record from the
DataSource is displayed, but not the Paging controls. I have trie... more >>
Using Custom Control in a FormView
Posted by J055 at 1/21/2007 4:25:09 PM
Hi
I have a rather odd problem when using my custom control in a FormView
control. The custom control inherits the CompositeControl. It is two
DropDownLists. The first DDL binds to a DataSource internally. When a user
selects a value in the first DDL a second DDL is bound to another
DataS... more >>
cookies in asp.net
Posted by Stimp at 1/21/2007 3:03:02 PM
hi all,
I'm creating a cookie in the http context as follows:
Dim objCookie As HttpCookie = New HttpCookie("UserDetails")
objCookie.Values.Add("UserName", rRow("UserName"))
Response.Cookies.Add(objCookie)
When I try to delete the cookie using:
Response.Cookies.Remove("UserDetails")... more >>
Have validators take up no space if control is valid
Posted by David Thielen at 1/21/2007 12:55:02 PM
Hi;
We have a problem that we have 7 validators for a form and while they are
hidden when the form values are ok - the hidden text does take up space
leaving a couple of blank lines that look wrong.
Is there a way to have validators that are valid take up no space on the form?
--
than... more >>
Using Ajax control in custom server control
Posted by MrFraggle at 1/20/2007 4:02:31 AM
Hi
I'm trying to write a server control that contains the
collapsiblePanelExtender from the ajax toolkit. But I have the
following error when i try to show this control:
Extender control 'ctl00$contentHolder$ctl00$Ant_baseModule1_cpeDemo' is
not a registered extender control. Extender cont... more >>
How to show initial default values in a detailsview form
Posted by Morris Neuman at 1/19/2007 5:10:02 PM
I am trying to display default values in bound fields on a detailsview form
when the page is first displayed for insterting a new record. The user can
then override the defaults and click insert to actually add the record. I
currently have the insert command with the corresponding desired de... more >>
open explorer from asp.net?
Posted by Arvi at 1/19/2007 2:50:09 PM
is it possible to open explorer.exe from asp.net ?
i tried this woth access denied error "
System.Diagnostics.Process.Start("explorer.exe", "");
"
anyother working method? or no way at all?
thanks.
... more >>
Can I Use RequiredFieldValidator inside a repeater ?
Posted by bhavesh at 1/18/2007 9:31:58 PM
Hello,
I use a repeater to display "Name" and "Order". I hope that users can
change
the "Order" field from the browser. And, if they input invalid value
(such
as string) in the "Order" field, I hope the validator control can alert
them. Can I do this with repeater? Or I should use other we... more >>
courier new: ok on FF but not IE7 or 6
Posted by Beemer Biker at 1/18/2007 3:51:05 PM
I set a textbox font to courier new so date strings would show up with
consistent spacing. It looks perfect in the VS2005 designer. If I publish
and run firefox it looks perfect. IE6 on a win2k or IE7 on XP (or hitting
F5 in the debugger) all show improper spaceing, as if the font family wa... more >>
Dropdown Selection Changed Problem in Repeater Control during Postback of page
Posted by bhavesh at 1/18/2007 2:35:34 AM
please reply it fast. its urgent for me.
thanks
... more >>
AutoComplete in ASP:TextBox control in ASP.NET 1.1
Posted by rbg.net NO[at]SPAM gmail.com at 1/17/2007 3:03:25 PM
I know that there is a autocomplete property for the HTML "INPUT
type=text" control which if set to OFF, disables autocomplete of the
input textbox (doesn't remember previously entered values)
However there is no such corresponding property for the TEXTBOX ASP.NET
Webcontrol in ASP.NET 1.1.
... more >>
User Control access fails in debug mode, works in release mode
Posted by rbg.net NO[at]SPAM gmail.com at 1/17/2007 2:53:57 PM
I have a custom usercontrol in ASP.NET 1.1 named BreadCrumb.ascx which
contains another control also called BreadCrumb.ascx within itself.
Thus the parent BreadCrumb.ascx control is simply a container of the
real (child) Breadcrumb.ascx control.
When I use this parent BreadCrumb.ascx user co... more >>
Collection Property in web custom control
Posted by Class at 1/16/2007 6:07:49 PM
Hi all,
I'm building a custom control. I would like that on the control you can set
some 'rights'
For that I have an enum:
public enum GroupRights
{
Group0 = 0,
Group1 = 1,
Group2 = 2,
Group3 = 3,
Group4 = 4,
Group5 = 5,
}
In design time I want to set these right (can be multiple... more >>
CSS substitution for the <center> tag
Posted by Nathan Sokalski at 1/15/2007 7:42:15 PM
As most of us probably know, the <center> tag is deprecated. Because many
elements and controls have an align attribute, centering them is easy
enough. However, certain elements/controls do not (such as the ASP.NET
Button and Label controls). For the ASP.NET label control I usually just add
... more >>
What's the new thing after ActiveX?
Posted by ThunderMusic at 1/15/2007 7:39:04 PM
Hi,
I need to do some graphics work from my ASP.NET 2.0 Website (can upgrade to
3.0 if really needed). Actually, I need the user to be able to draw some
things in a rectangle. Some years ago I would have do it using ActiveX, but
now I know MS has a new philosophy about this, probably driven t... more >>
AJAX n00b - custom server control in an UpdatePanel causes full postback
Posted by Monty at 1/15/2007 5:11:39 PM
[apologies if this is the wrong newsgroup, couldn't find one for atlas/ajax]
Hi all,
I have a custom server control (inherits from control) that is, essentially,
a DIV containing a table with several rows, each of which has a DIV in it.
It is basically a menu of items. When the user clicks... more >>
Gridview controls added programmatically does not appear later
Posted by KMILO at 1/15/2007 9:20:48 AM
Hello everyone,
Im implementing a gridview to render some controls depending of the
databound conditions, in some cases are textboxes in another cases are
dropdownlists, the grid seems to be working well, in the page appears the
controls and let me put or choose values in them, but when a I... more >>
Page seems to be remembering HttpSessionState
Posted by Nathan Sokalski at 1/14/2007 8:50:20 PM
I have a page that determines some of what to display based on
HttpSessionState. When I go to it the first time, it displays everything the
way I would expect. Then I go to another page on my site (by clicking links,
so I am still using the same browser window), which calls Session.Abandon()
... more >>
Menu - Eliminate The Triangular Arror pointer thing - How to do it?
Posted by empire5 at 1/13/2007 5:48:52 PM
I want to eliminate the little triangular arrow poinger that appears tot he
right of the menu item. Which control setting lets me do that.
... more >>
Programmatically modifying the controls in FormView's PagerTemplate
Posted by Nathan Sokalski at 1/13/2007 4:02:06 AM
I am trying to create a FormView controls in which I access and modify the
the controls in the PagerTemplate programmatically. However, I continue to
recieve the following error:
Object reference not set to an instance of an object.
I am attempting to access the controls in my PagerTemplat... more >>
3rd Party Upload Control
Posted by robmccart at 1/12/2007 1:00:52 PM
I'm interested in using a 3rd party control from Telerik, Web SuperGoo,
Element-IT or MediChase.
Telerik seems to have better performance than the others. Has anyone
had any experience with Telerik Upload or any of the others?
... more >>
dropdown SelectedIndexChanged not working on IE
Posted by cesar.cortes NO[at]SPAM ehsbrann.com at 1/12/2007 9:08:15 AM
Hi,
I have this dropdown that doesn't seem to work when i change its state
in IE. It works perfectly fine on FF.
When the state of the dropdown changes, the page posts back and
remembers the selection in FF but in IE it always defaults to the first
one.
Any idea on how to fix it and why ... more >>
Gridview only displays 3 columns of 11 column dataset
Posted by JJA at 1/12/2007 8:44:27 AM
I've got a very "default" GridView control that is only showing 3 cols
of my dataset which has 11 cols. I do have AutoGenerateColumns property
set to true. Here is my code:
<div>
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</div>
Here is my code file:
res... more >>
Web page size
Posted by marss at 1/12/2007 2:49:25 AM
Hi all,
With the advent of Service Pack 1 for Visual Studio 2005 we at last get
a possibility
to convert our old ASP.Net 1.1 web application to ASP.Net 2.0. We
converted it. And we were unpleasantly impressed. There are many just
praises about reduced ViewState but what about another controls?
... more >>
Problems with Flash in WebBrowser
Posted by ljlevend2 at 1/11/2007 7:15:01 PM
I am having problems interacting with flash objects (i.e., Adobe Flash Player
9) in web pages when using a System.Windows.Forms.WebBrowser control. The
flash objects always seem to display correctly, but when I click on a link
within the flash object the WebBrowser often fails to navigate to ... more >>
Menu Control and Sitemap, eliminate the home column on the menu display
Posted by empire5 at 1/10/2007 4:50:22 PM
My menu and sitemap:
home foo bar
foo1 bar1
foo2 bar2
Ho do I eliminate the home and make my menu look like this:
foo bar
foo1 bar1
foo2 bar2
... more >>
Invalid postback or callback argument error
Posted by Nathan Sokalski at 1/9/2007 3:51:29 AM
I have a DataList in which the ItemTemplate contains two Button controls
that use EventBubbling. When I click either of them I receive the following
error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Invalid postback or... more >>
problem with PostBackUrl
Posted by Chris at 1/8/2007 9:09:55 AM
Hi,
i created an ImageButton within an ItemTemplate of a datalist (in
shop.aspx). There are two possibilities:
1) when the user is logged and he clicks on an image, he must be
'postbacked' to another file showing that same picture in big size and with
more info..
2) when not logged and cl... more >>
ASP.Net 2.0 'Register' Issue
Posted by TCook at 1/7/2007 7:58:12 PM
Hey All,
The code below worked fine in ASP.Net 2003:
<%@ Register TagPrefix="CustomValidators" Namespace="CustomValidators"
Assembly="MyAssembly" %>
Under VS 2005, I get the following error:
Could not load file or assembly 'MyAssembly' or one of its dependencies.
The system canno... more >>
|