populate control in ascx
Fri, 26 Sep 2008 01:57:15 -0700
Hi
I have an ascx file, which has a "hyperlink", eg:
<asp:HyperLink ID="myLink" Text="LINK" runat="server" NavigateUrl="" />
Is it possible to set the navigate-url dynamically in the ascx, or is
it only possible in the code-behind?
Eg. can I do something like:
<asp:HyperLink ID="myLink" Text="LINK" run ...
|
How do I format a negative number during in the Eval
Thu, 25 Sep 2008 14:21:02 -0700
I am trying to format a negative value with parentheses during the
databinding process in the code behind. Here is an example of what I have
tried:
<asp:Label ID="lblAmount" runat="server" Text='<%# Eval("TotalAmount",
"{0:N0; (0:N0)}") %>'></asp:Label>
I was hoping the second part would place the paren ...
|
Validating user controls
Thu, 25 Sep 2008 12:01:28 +0200
Hi,
I have created some user controls. These controls contain two textboxes and
two buttons with some functionality. Until now everything has worked fine.
Now I need to use RequiredFieldValidator that Validates these controls. I
have tried to implement solution described in this article:
http://support.mic ...
|
ListItem mouseover
Wed, 24 Sep 2008 10:03:18 -0700
I am using a bulletedlist as a navigation menu. I build this at run time,
and what I would like to do is remove the mouseover style of the last item in
the list, ie the current page they are on. I have disabled it, but the
mouseover style is giving me fits. Thanks for any advice. ...
|
Gridview won't update after inserting new record to MS Access
database using OLEDB
Sun, 21 Sep 2008 23:57:10 -0700 (PDT)
Hi,
Here is my code on a button click in the EmptyDataTemplate of a
Gridview. It saves the record to the database does not appear in the
gridview after the calling the databind method.
Any ideas ?
Below is my code
Protected Sub lnkSaveEmpty_Click(ByVal sender As Object, ByVal e
As System.EventAr ...
|
Gridview - Dynamic Column Ordering
Fri, 19 Sep 2008 07:49:00 -0700
Hi,
I have an asp 2.0 gridview with two textbox template columns, e.g. TextboxA
and TextboxB, in that order.
These template columns are defined in the aspx page, not dynamically.
Is there a way to change the order of those columns at runtime so that
TextboxB becomes the first column?
Thanks,
John
...
|
Format a string as a date
Thu, 18 Sep 2008 19:43:27 -0700
I'm getting Date values from a MS Database - they look like this:
"mm-dd-yyyy hh:mm:ss AM"
I want to display it in a Literal control on my page, formatted as
"mm-dd-yyyy". Here is the code I'm trying:
MyLiteral.Text = String.Format("{0:d}", MyString)
MyString fills the Literal control with full date ...
|
|
|
jobs see here
Thu, 18 Sep 2008 10:32:17 -0700 (PDT)
http://www.365jobs4u.com/idevaffiliate/pages/1566.php ...
|
Consulting opportunities
Thu, 18 Sep 2008 11:45:09 -0500
Hey Guys, I am actively looking in the Houston area for C#, .net developers
with around 2-6 years experience for Avanade. I work directly for Avanade
and these are fulltime permanent positions. We are having face to face
interviews early next week. Please call or email if you are interested in
finding out m ...
|
Difference between Button click and IPostBackEventHandler
Wed, 17 Sep 2008 11:40:56 +0200
Hi,
I am having an issue with replacing my home-made button control with other (standard) buttons.
In the Click event of the buttons I dynamically add some controls to this.Form.Controls. With my old
buttoncontrol this worked fine, however replacing it with a standard Button (or also an ASPxButton
from Dev ...
|