Hi,
This is probably a simple calculation for SQL experts but I'm still a newbie and not sure how to do the following:
I need to calculate the percentage of people who answered 0 - 7 (out of 10) and the percentage of people who answered 8 - 10 in a quiz. Then I need to subtract the percentage...
Hi,
I'm trying to get a small amount of data from lots of tables and I'm confused about what the SQL code should be. Sorry if this question is long, any help will be appreciated :-)
Here are the tables:
BatchedScores, Visits, Branch, Client, ClientRegion, ClientPeriod
Each Client has a...
Hi,
I'm new to using Javascript and I'm trying make a function to copy text from one textbox into another when the user clicks a button, I'm using the javascript at the top of .aspx page. Here is the code for the javascript but it doesn't seem to work:
function button1()
{
var text1value =...
Hi,
I'm new to using xml and xslt. I'm trying to use xsl:sort to display the @periodname_1 attribute in ascending order but it doesn't work. Can anyone see why?
<xsl:sort select="@periodname_1" order="ascending"/>
<td colspan="2">
<xsl:value-of...
Hi,
I want to allow the user to download a .bmp file to their desktop, and I have the code working for this but when the file is downloaded it cannot be opened - why is this? Can anyone tell me what I am doing wrong? Here is the code
(exectuted when user clicks download button)
String...
Hi,
I want to allow the user to click a button which gets an image from the specified path and rotates it. I have the code working but I don't know how to display the rotated image.
The code I have at the moment gets the image from a local path on C:\ and rotates it and then saves the image...
Hi,
I have looked on the net but there aren't any examples which explain how to get the current cursor position in a textbox and pass it to an inline asp.net method. Can someone who knows how to do this provide some example code? Or some suggestions? Thanks :-)
Hi,
How can I read file names from a folder to allow users to select a file name?
I'm guessing the code would look something like:
int FileNum = File.Open(@"c:\DinerDocs\SavedEmailTemplates\", FileMode.Open).Length;
(while FileNum > 0){
//Add filenames to dropdown list
//Get filename...
Hi,
I want to allow users to enter text into a text field which will be saved into a text file which will be used for an email template.
How can I store <br> or when the user has pressed enter when they are typing? Would I use the replace() method?
Hi,
Any comments will be appreciated!
I have 4 tables, Branch, Client, User and UserPreferredLocation. Each client has multiple branches and a user has preferred branches they like to visit.
Currently, the query returns branches that require users and doesn't include branches that users like...
Hi,
I have an existing website which already has a login box - I know how to do this in PHP easily but ASP.NET is alot different and I'm guessing it should be easier to do?
So far I have a link next to the login box which says 'Forgtten your login details?' when the user clicks on the link it...
Hi,
The code in other parts of the program works ok and sends emails, but in one file when it comes to sending the email to the specified email address (when debugging) it gives the error 'no user <emailaddress>'
What does this mean? and why does it do this when using smtpClient.Send(message)...
Hi,
I am replacing all System.Web.Mail code with System.Net.Mail - everything works ok when I specify the host and port in the same code block as the email details, but if I want it to refer to the System.Net settings in web.config what do I need to replace the following line of code with...
Hi,
I want to allow the user to update email preferences by checking the boxes for the types of emails they want to recieve but when the page loads up for the first time I want to display to the user which emails they are currently accepting.
I can populate dropdown lists using SQLDataSource...
Hi,
This is probably a simple task but I'm having trouble trying to get text file text into a variable.
I've searched on the Internet and have found some examples but I don't seem to be able to get them to work, can someone show me the correct way of doing this?
Hi,
I currently have email messages hard coded into my files for emails that are automatically, i.e when a user registers their details to create an account.
What alternatives are there to this? Could I use a database to imrove on the existing method? would using separate basic textfiles be an...
Hi,
Any comments and suggestions will be appreciated! :)
I currently have the following send email code hard coded into a .cs file, it uses System.Web.Mail but will use the more updated methods later.
MailMessage email = new MailMessage();
email.To = "emailaddress@email.com";
email.From =...
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.