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 John Tel 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?

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

    Need help using <xsl:sort/>

    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...
  5. 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...
  6. 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...
  7. 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 :-)
  8. 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...
  9. aspdotnetuser

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

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

    Need help modifying SQL query

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

    Need help creating 'forget password' page to get login details

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

    No user error when sending emails

    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)...
  13. aspdotnetuser

    What is the alternative to this line of code?

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

    How to make checkboxes checked according to db data

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

    How can I store text file text into String variable?

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

    What are the alternatives to using hard coded email messages?

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

    Need help modifying email code

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

Part and Inventory Search

Back
Top