all groups > asp.net webcontrols > january 2007 > threads for january 1 - 7, 2007
Filter by week: 1 2 3 4 5
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 >>
how to redirect when the user is logged?
Posted by Chris at 1/7/2007 5:26:33 PM
Hi,
i created a default page with loginview and loginstatus like this:
<asp:LoginView ID="LoginView1" runat="server">
<LoggedInTemplate>You are logged</LoggedInTemplate>
<AnonymousTemplate>You are not logged</AnonymousTemplate>
</asp:LoginView>
<asp:LoginStatus ID="... more >>
Webform won't let me assign a value to a password TextBox
Posted by Nathan Sokalski at 1/7/2007 2:04:53 AM
I have a form that is being used to edit account information. The form
contains username and password TextBoxes, for which I set Enabled=False.
When I assign the Text property the previous value, the username TextBox
receives it perfectly fine, but the password TextBox does not seem to be
ge... more >>
RegularExpressionValidator that limits the number of characters that can be entered
Posted by Nathan Sokalski at 1/6/2007 11:12:53 PM
I have several TextBoxes with TextMode="MultiLine" in which I want to limit
the number of characters that can be entered using a
RegularExpressionValidator. I have come up with the following
ValidationExpression:
[.]{0,250}
The only problem with this ValidationExpression is that it does ... more >>
Posting data to another application in ASP.NET 2.0
Posted by Peter Afonin at 1/6/2007 8:16:30 PM
Hello,
I have a form with several buttons, and I need to post this data to several
different applications. In ASP.NET 1.1 it was quite easy - I just used HTML
controls (text or hidden), then assigned the action to each button on
Page_Load event:
Me.ibPayWM.Attributes.Add("onclick",
"no... more >>
Object reference error in UserControl's Load event
Posted by Nathan Sokalski at 1/6/2007 2:28:25 AM
I have a UserControl that I declare programmatically as follows:
Dim userctrl as New rightside_portal()
The codebehind file for this UserControl looks like the following:
Partial Public Class rightside_portal : Inherits System.Web.UI.UserControl
Protected Sub Page_Load(ByVal sender As Ob... more >>
Default empty text in a textbox
Posted by Nuyttens Xavier at 1/4/2007 8:52:00 AM
Hi,
I'm new to writing web user controls, but I would like to write my own
textbox usercontrol (asp.net 2.0 / c#) that has this feature :
- When the textbox is empty, the .text value is set to a default textvalue
like "type your message here"
- When you click the textbox, the .text is reset... more >>
Searching controls in a GridView with auto generated columns
Posted by RBM at 1/3/2007 11:51:47 PM
Hello,
On a page I have placed a gridview control which has a SqlDataSource.
The SELECT statement of the SqlDataSource is generated from parameters.
For this issue I programmed that the gridview should autogenerate the
columns. I want to access members of controls in a column (if it
exists).
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Custom control is naming it's components differently
Posted by Nathan Sokalski at 1/3/2007 7:00:05 PM
I have written a custom control that uses AJAX (it implements
IPostBackDataHandler and ICallbackEventHandler). I have tested it, and it
seems to work the way I want. However, when I used it in another application
of mine it named the components as ControlID$ComponentID instead of
ControlID:C... more >>
Confirmable MenuItem
Posted by vSzemkel NO[at]SPAM o2.pl at 1/3/2007 1:42:32 PM
Is it possible for <asp:Menu> to have confirmable menuitem?
E.g. with javascript:confirm method generated
You can not access MenuItem.Attributes.Add("onclick","return confirm('Do You
really want to..')
How to get this behavior as simple as possible?
Regards,
Marcin
... more >>
I want html, not xhtml from my aspnet controls
Posted by j.madgwick NO[at]SPAM wiganmbc.gov.uk at 1/3/2007 8:39:09 AM
I'm confused. I've been trawling the web and can't find the
answer...
The background: I am working on a MCMS site with ASPNET 1.1.4322. We
want the site to be written in standard compliant HTML that passes the
W3C validator.
The problem: ASPNET controls are generating HTML with xHTML
se... more >>
How to change default browser for VS 2005
Posted by marss at 1/3/2007 2:11:07 AM
Hi,
When I installed Visual Studio 2005 default browser in my system was
Firefox. Now Firefox runs when I start debugging project in VS. I want
to debug projects in Internet Explorer. Can I do it without
reinstalling VS 2005? Change of default system browser to IE is useless
in this case. :(
... more >>
Refreshing a DataList
Posted by Nathan Sokalski at 1/2/2007 11:21:29 PM
I have a DataList control that I want users to be able to sort the data in
by clicking 1 of 3 buttons. The function I have created to do this is as
follows:
Private Sub SortPoems(ByVal sortby As String)
Dim ratedpoems As New DataTable
Dim sqltext As String = "SELECT * FROM poemrat... more >>
ValidationExpression that simulates the MaxLength property
Posted by Nathan Sokalski at 1/2/2007 5:59:44 PM
As we probably know, the MaxLength property of the TextBox control only
works when the TextMode property is SingleLine or Password. I want to limit
the number of characters a user can enter into a MultiLine TextBox to 250. I
figured the best way to do this would be with a RegularExpressionVali... more >>
C#: timer and threading help needed
Posted by Beemer Biker at 1/2/2007 3:55:10 PM
I wrote a "windows form" C# program that I am attempting to convert to web.
The app has a timer (from the vs2005 C# toolbox) and a couple of threads
"system.threading" type. One handles incoming UDP socket messages the other
receives data from a serial port and a 3rd is responsible for sendin... more >>
Where is my form's snap to grid?
Posted by Flyguy at 1/1/2007 1:21:01 PM
Hello, I am starting to use ASP.NET in Visual Studio 2005 and can’t figure
out how to get the grid to show up on the form rather than the flow layout.
When I say grid I am talking about the snap to grid that I was able to affix
my controls to in ASP.NET 2003.
Thanks.
... more >>
Binding a Textbox to a specific value in an xml document
Posted by Flyguy at 1/1/2007 1:16:00 PM
Hello, I am starting to use ASP.NET in Visual Studio 2005 and can’t figure
out how to bind a textbox control to a specific value inside an xml document.
As an example, I have an xml file on the server containing the following text:
<?xml version="1.0" encoding="utf-8" ?>
<site>
<pa... more >>
|