Just say the DataField 'PhotoPath' was null.
How could I set the code so that it display a text string "no image"
<asp:image id="EmployeeImage"
imageurl='<%# Eval("PhotoPath") %>'
alternatetext='<%# Eval("LastName") %>'
runat="server"/>
I have a database field that is currently money datatype.
what's the best datatype to use to store product prices? Is it double or money or decimal and any reasons why.
At the moment I am using the money datatype but there's 4 decimal places such as 10.0000
thanks.
vertical-align bottom doesn't seem to do much good.
The text within the topnavigation div sits right at the top.
Is there anyway to move it down to the bottom or middle?
#topnavigation
{
padding:0;
margin:0 10px 0 10px;
background-image:url("images/navbar.gif")...
myString="<a href="www.tek-tips.com">Tek-tips</a>"
If TestFunction(myString)= True Then
..............
causes an expected end of statement error.
How can I use the replace function to stop the " in the link causing the error? I don't want to use ' the single quote.
thanks.
can anyone help with a script to rotate the top 800x180 pixel image in a website on page load.
Should I use the Adrotator or is there a simple piece of script that works?
thanks.
If I use the 2 column layout from http://www.glish.com/css/9.asp and there is very little text in the left column the right column shifts down below the left column.
Is there any way to stop this from happening?
thanks.
Can anyone point me in the direction of a tutorial that shows how to select, update, edit and delete rows displayed in a gridview from a database that doesn't rely on using a datasource control and its commands?
thanks.
Hello
I have a dropdownlist that populates it's value with a sqldatasource from a field with datatype MONEY.
When I get the selectedvalue I'm using the code below but get the error below
System.NullReferenceException: Object reference not set to an instance of an object.
Dim myShippingCost...
I converted a boundfield into a templatefield
The templatefield now looks like this
<asp:TemplateField HeaderText="Quantity">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Quantity") %>'></asp:TextBox>...
The validation code below doesnt work, can anyone point me in the right direction. If I remove all the createuserwizards step and just have the code within the table plus a button the validation works the way I expect it.
Any ideas why it isn't working?
<form id="form1" runat="server">...
I've got a usercontrol that goes within contentpages.
The masterpage on Sub Page_Load calls the profile object.
When I edit the profile object in the usercontrol the masterpage doesn't reflect the new value.
Anyway I can sync this up?
thanks.
I’ve removed some of the code to make this easier to read.
Below I have a datalist that displays multiple label controls that will store the prices of a shopping cart item.
When the imagebutton ‘ImageButton2” is clicked the event handler in the code behind file is raised. The problem is that...
If I use the login control all the users that are authenticated are sent to default.aspx.
How Can I send a user e.g. 'Dave12' to a protected folder 'admin' and a particular page 'admin.aspx' within that folder once he has logged in?
I've a bit of an idea to place a web.config file in the...
The code below is in a codebehind file, there doesn't appear to be any reference to the sub Wizard1_ActiveStepChanged in the web form. Is it called implicitly?
Protected Sub Wizard1_ActiveStepChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Wizard1.ActiveStepChanged...
I'm using the CreateUserWizard and the ASPNETDB.mdf database.
If I create a new database table I would like to create a relationship between the aspnet_Membership table and my new Orders table.
I'm not sure how to do this. Would I need to get the UserID for the newly created member and place...
I get the following error message
"This property cannot be set for anonymous users.
End Get
Line 80: Set
Line 81: Me.SetPropertyValue("Name", value)
Line 82: End Set
Line 83: End Property"
In my web.config file I have the profile object enabled as below...
I have a querystring that passes to the page and selects records to display in my datalist.
Is there a template in the datalist for no records such as the EmptyDataTemplate in the Gridview?
thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.