Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. aspdotnetuser

    Need help calculating percentages in SQL

    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...
  2. aspdotnetuser

    Can an expert please help me with this query?

    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...
  3. aspdotnetuser

    Can an expert please help me with this query?

    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...
  4. aspdotnetuser

    How to copy textbox value into another textbox

    Thanks for your reply feherke. I managed to fix this code, I think it was because the html button didn't have an ID attribute.
  5. aspdotnetuser

    How to copy textbox value into another textbox

    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 =...
  6. aspdotnetuser

    Need help using <xsl:sort/>

    I fixed this by changing the xsl sort to use order and data-type. <xsl:sort select="@periodname_1" order="ascending" data-type="text"/>
  7. aspdotnetuser

    Need help using &lt;xsl:sort/&gt;

    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...
  8. aspdotnetuser

    Downloading file to client problem

    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 =...
  9. aspdotnetuser

    Downloading file to client problem

    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...
  10. aspdotnetuser

    Need help rotating image and displaying in &lt;asp:Image /&gt;

    I found out how to do this, it was because the path it was saving to was different.
  11. aspdotnetuser

    Need help rotating image and displaying in &lt;asp:Image /&gt;

    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...
  12. aspdotnetuser

    Need help using javascript and asp.net to get cursor position

    I decided to allow users to enter html tags, thanks for the links.
  13. aspdotnetuser

    Need help using javascript and asp.net to get cursor position

    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...
  14. aspdotnetuser

    Need help using javascript and asp.net to get cursor position

    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 :-)
  15. aspdotnetuser

    Select filename in drop down menu

    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...
  16. aspdotnetuser

    Select filename in drop down menu

    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...
  17. aspdotnetuser

    How to store newline or in text file or when user presses enter

    I managed to get it working so that when the user enters text into a textbox it saves the text with spaces and new lines.
  18. aspdotnetuser

    How to store newline or in text file or when user presses enter

    I thought it would display in IE too but it didn't work. Can you tell me the name of the article?
  19. aspdotnetuser

    How to store newline or in text file or when user presses enter

    Thanks for the url but it can't find a page for that in help.

Part and Inventory Search

Back
Top