Hi
I am needing to trim out empty spaces in my datafield before the code below. I thought Trim(lit1.Text) would do this but this does not work
Trim(lit1.Text)
If IsDBNull(lit1.Text) Or lit1.Text = "" Then
lit1.Text = ""
Else
lit1.Text =...
Hi
Based on the code below how would I get the data item "Address1", for instance, not to show if the value in it was "n/a or empty"? I would also prefer that a gap was not left in its place if possible. Any help appreciated.
Thanks.
<HTML>
<HEAD>
<title>mem_memberid_address</title>...
...fields to show N/A when the ShowAddress field is 0?
ALTER PROCEDURE dbo.CES_MEMSelectMemberIDAddress
(
@MemberID as varchar(10)
)
AS
/* SET NOCOUNT ON */
SELECT Address1, Address2, Address3, Address4, Postcode, Telephone, OfficeTelephone, Email, Fax, OfficeFax, Website...
The part where you have me@here.com is where the value will be changing for various email addresses, does what you have given me above cover that? If my email variable is called MemberEmail, where would it go?
Thanks
Hi
I'm getting an email address out of a database using the following....
Me.SqlConnection1.Open()
dtrCabinetEmail = Me.SqlComm_SelectCabinetEmail.ExecuteReader
If dtrCabinetEmail.Read Then
Email = dtrCabinetEmail("committee_email")
Me.lblEmail.Text =...
James
One more question on this query I've just realised! Both the tables CommitteeMembers and AdvisoryGroupMembers also have a field called 'position' which links to a table called Position where the position_name can be selected for the committee/advisory group how do I go about adding this...
Hi
I hope someone can halp me, I have the following tables:
Members
member_id
CommitteeMembers
committee_member_id
committee_id
member_id
Committees
committee_id
committee_name
AdvisoryGroupMembers
advisory_member_id
advisory_group_id
member_id
AdvisoryGroups
advisory_group_id...
Hi
I am using a datagrid hyperlink column to go to the following URL. I need the section which says <Name> in the url below to be the name of the person with the ID. How do I go about adding this to the URL Format String - aboutme.htm?MemberID={0}...
Hi
I hope someone can help me with this problem.
In the query below there may be some ForeName1 fields where there is a name e.g. Joseph (Joe). How can I use the query to strip out any instances where there is a name in brackets and leave the main name only as I need to put this into a url...
Hi
A quick question. In ASP.Net can someone tell me if it is possible to have hyperlink columns in anything but datagrids? i.e. can I make a data repeater have hyperlink columns and mailto columns?
Thanks
Hi
I have a table with a field in it caled CountToClose, this is set to a date 09/05/2005 14:32:49 and after 4 days have elapsed another field in the database called CloseDown needs to be set to 1. I assume I need a trigger for this to happen but have not ever done this before and dont know...
Hi
Can anyone tell me if you can use session variables to do response.redirect? Im storing an id in the one below but keep getting - "comma, ')', or valid expression continuation expected" on the elecid part?
Me.Response.Redirect("hwelection.aspx?id= Session.Item("elecid")
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.