Hi, i've downloaded a membership and roles provider but i am very new to ado.net. I have come from asp background. Here's my code:
public override void AddUsersToRoles(string[] usernames, string[] rolenames) {
// Validate arguments
foreach (string rolename in rolenames) if...
Hi, i'm trying to implement my own custom membership provider. The problem i have is that my table i am storing my membership information has some additional fields such as the members address.
I found a tutorial on the internet which has the following
public override MembershipUser...
Hi i have a FormView control with a DropDownList in like so:
<asp:DropDownList ID="lstCategoryID" DataTextField="Text" DataValueField="Value" runat="server">
</asp:DropDownList>
And in the Page_Load event handler i have the following:
Dim lstCategoryID As DropDownList =...
Hi, is it possible to return the unix timestamp for the previous saturday at 12:00. I tried looking mktime but didn't know where to start. Appreciate if someone could help. Thanks
Hi, i have a renderring issue on my website:
http://www.fantasy-league-manager.com/privacy-statement-7.htm
in ie6. If you scroll to the bottom (keep scrolling up and down at the bottom to see the change) you will see that the bottom doesn't look right. In the past i've found that putting...
Hi, i've been reading up on transactions and how to use them. From what i see i simply put BEGIN at the start and then COMMIT at the end.
The reason i'm using transactions is because i don't want updates to take effect until every update has been made. Therefore i'm wondering whether the...
Hi, i posted the other day about a problem i encountered when making a new site, trouble is i have another one. First here's my table structure:
players
- player_id (primary key)
- player_name
player_points
- player_id
- points
- date_created
teams
- team_id (primary key)
- team_name...
Hi, i have the following table structure:
players:
- player_id (primary key)
- player_name
player_points:
- player_id
- points
- date_created (date record added)
The players to player_points tables have a 1 to many relationship. Therefore there can be multiple records in the player_points...
Hi, why do i keep getting the following:
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
come up when trying to use the table adapter.
I found an article at...
Hi, i'm gettin the annoyin "No input file specified" error on my custom 404 error pages. I found a solution using my htaccess file. The only trouble is my htaccess file already has a set of rewrite rules in them. Here's what I changed it to:
#ErrorDocument 404 /error/index.php
Options...
Hi, i'm getting the following error on one of the pages on my site:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/includes/sessions.class.php on line 9
the start of the sessions.class.php is:
<?php
class session_handler {...
Hi, i have a band directory on my site and i want to be able to put /bandname/ in the url and it will work instead of going /bands/bandname/. I have created a rewrite with the following:
RewriteRule ^(^forum|gallery|images|labels|news)/?$ /bands/$1/index.php [NC,QSA]
What i'm trying to say is...
Hi, i store the date i insert items into the database using unix timestamps. For my logged in users i need to highlight newest added items since there last visit. I was wondering what's the logic behind this and the easiest way of implementing this. I had a shot but my brain couldn't handle...
Hi, i'm following this tutorial:
http://www.mikeindustries.com/blog/archive/2005/07/make-your-site-mobile-friendly
to make my site mobile friendly. I don't have the time to do it manually so this method seems pretty good. The trouble i'm having is the bit where it says to place:
php_value...
Hi, i'm trying to create a google site map, i added AddType application/x-httpd-php .xml to my htaccess file and then put the following at the top of the siteindex.xml file:
<?xml version="1.0" encoding="UTF-8"?>
but it returns a parse error. I think it's the <? at the start but can't find a...
Hi, I've been looking for a solution to searching across multiple tables using a full text search to do a site wide search. ie say I have the following tables:
news_posts
- id
- title
- content
gallery_images
- id
- title
- image_url
I want to be able to search the title field for both...
Hi, I was wondering how to submit a form called frmPost in the body part of the code and not in a function so it auto submits when you go to the page. I know it sounds a pretty stupid scenario but I really need to do it this way. Appreciate the help. Thanks
Hi, I have a problem trying to sort out the side navigation to a script i'm making. It's still in the planning phase at the moment so I've put together the following examples to make this easier to explain.
Say I have the following table:
Categories:
- id (primary key)
- depth (the depth...
Hi, How do I strip the text part of a string leaving me just the spaces before the text
ie say I have
$string = "_____text" it would return "_____"
$string 2 = "__________text" would return "__________"
where _ = a space so you can see
Appreciate the help. Thanks
Hi, I have setup the following array called list_categories which is in the format $list_categories[sub_category_id][category_id], ie say it has the following content:
Array
(
[0] => Array
(
[0] => Array
(
[category_id] => 27...
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.