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>...
Hi
Based on the sql statement below how do I get the address 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...
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 =...
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
Hi,
I need some help with my sql query below. The results I'm getting back for the Electorate is way higher than it should be, I think its somehow totalling it in both dbo.Candidate and dbo.DivElection.
(dbo.Candidate has DivElecID in it numerous times due to the multiple candidates in a...
Hi
Can anyone tell me how I make the query below give me both return results as I run it now it only shows me the first one?
Thanks
ALTER PROCEDURE dbo.CES_CheckCountToCloseDown
/**/ (
@ElecID as real
)
AS
declare @closedown int
declare @allresultsin int
set @closedown =(
SELECT...
Hi
I need to add some code to the query below which also sets any records other than the winner who has the same DivElecID to 0. Any help greatly appreciated!
update dbo.Candidate
set Winner = 1
where DivElecId = @DivElecID and
VotesReceived =
(Select max(a.VotesReceived) from dbo.Candidate a...
Hi
I have a stored procedure that produces an postal address in the format:
My Street,
My Area,
This Town
MY POSTCODE
However this needs to be out put into a datagrid which doesn't seem to want to show the format in this way. Does anyone have any ideas why this might be?
Cheers
Sila
I have used the sql below to extract a max value but I now need to select the second largest value within the id. Does anyone know how to do this?
SELECT MAX(VotesReceived) AS Expr1
FROM dbo.Candidate a
WHERE (DivElecID = @DivElecID)
Thanks
Hi
I have an asp.net page which has a datagrid with edit buttons. When clicked the edit buttons feed the field details into some textboxes on the same page where they can be edited, alternatively, a new record can be added by clicking a separate 'add new' button. If I click the 'add new' button...
Hi
I have a datagrid using a datareader to populate it. On running it the top record seems to be cut off each time in all cases. The stored procedure behind it is showing all records correctly?
Any ideas greatly appreciated.
Sila.
Hi
I'm getting the following error for the code below it:
----------------------------------------------------------
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
----------------------------------------------------------
Private Sub...
Hi
I need to write a sql statement that does an update as the follwing the following:
tab1.ceq_kit_ref needs to be set to be equal to tab2.kitchen_id where tab2.kit_ref = tab1.ceq_kit_ref
All help greatly appreciated!
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.