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...
Thanks for your reply and for the simplified code ;-) It's great to get help from someone who has written a book on SQL. But I get an error when I run that query:
The multi-part identifier "Client.ClientUID" could not be bound.
Is this because Client has been referenced more than once in the...
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...
I managed to solve this, here is the code just in case anyone else comes accross this post trying to find out how to download files:
String fname = "filename.bmp";
Boolean downloadFile = true;
string path = @"/Docs/" + fname;
string name =...
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...
Thanks for the links th3maw, their useful especially the msdn url which I hadn't come accross.
I have a multiline text box which displays text from a text file the user has selected from a drop down menu. The text is saved and can then be selected to be sent in an email. (the text files are...
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 :-)
I just realised you can do this using the following code:
string[] fileEntries = Directory.GetFiles(Folder path goes here);
foreach (string fileName in fileEntries)
{
// do something with fileName...
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...
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.