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 strongm 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: *

  • Users: Blaxo
  • Order by date
  1. Blaxo

    Prinint a word document...

    Hi Norviking, Check out my post in thread732-671539 for some links regarding your problem. You can use the VS project as an interface to word and extend it to open a document and then print it. regards, Blaxo
  2. Blaxo

    scroll multiline textbox programatically

    Hi WebStar, After you add a line to the textbox, execute this code as well (assuming your textbox is called 'myTextBox'): myTextBox.SelectionStart = myTextBox.Text.Length; myTextBox.ScrollToCaret(); This will set the cursor position at the last character in the textbox and then scroll to that...
  3. Blaxo

    ignoring a method's return type

    Hi David, The return object is created in the method normally and then returned, and then no variable is assigned to it, so it becomes garbage and will eventually be garbage collected. The method you call will execute the same no matter what you do with the return value. Hope this helps...
  4. Blaxo

    Making a button click only once

    Yeah well, its just a matter of choosing between using the indexer or the method ;-) regards, Blaxo
  5. Blaxo

    Making a button click only once

    your <asp:Button> tag doesn't include an OnClick attribute. I think it should be as follows: <asp:button id=&quot;btnDownloadCSV&quot; style=&quot;Z-INDEX: 101; LEFT: 24px; POSITION: absolute; TOP: 56px&quot; tabIndex=&quot;1&quot; runat=&quot;server&quot...
  6. Blaxo

    Making a button click only once

    myButton.Attributes&quot;onclick&quot; = &quot;javascript:return disableMyButton();&quot; will only stop the form from submitting if the 'disableMyButton' function returns false, so in this case the page should always submit. Have you wired the VB function to the button with the ASP.NET onclick...
  7. Blaxo

    Making a button click only once

    Hi bigfoot, I'm assuming that you want to disable the button DIRECTLY after the user clicks on it, i.e. while the browser is still receiving the response, to stop the user from submitting multiple download requests. To run javascript from a button, you have to set the HTML 'onclick' attribute...
  8. Blaxo

    formatting a data bound item

    Actually, the above line should be <%# FormatBankruptcy(Convert.ToInt32(DataBinder.Eval(Container.DataItem,&quot;MinMonthsSinceBankruptcy&quot;)))%> since DataBinder.Eval(object, string) returns an object. regards, Blaxo
  9. Blaxo

    Function to figure what the first day of the month is

    You should use the DateTime.DayOfWeek property, which returns a System.DayOfWeek value indicating which day of the week it is on the specified DateTime. regards, Blaxo
  10. Blaxo

    convert Int32 to string isn't working

    That's strange, it should be working that way. Have you tried Convert.ToString(dr.GetInt32(3))? And what specific error do you get when executing this code? regards, Blaxo
  11. Blaxo

    Problem with link webpage

    Response.Redirect(pagename) will redirect to your current directory /pagename (i.e. localhost/pagename), that means it will also redirect to localhost/www.hotmail.com. If you want to redirect to a webpage, you have to put http:// in front of it. So use...
  12. Blaxo

    validate date

    I think it is the right way to do it. You could also write a general function (which you would put in a utility class, i.e. Utils) for it like this: public static bool IsDateTime(string value) { try { Convert.ToDateTime(value); return true; } catch { return...
  13. Blaxo

    codebehind html / code seperation

    From the .NET Framework SDK Documentation - @ Page directive: Src Specifies the source file name of the code-behind class to dynamically compile when the page is requested. You can choose to include programming logic for your page either in a code-behind class or in a code declaration block in...
  14. Blaxo

    OnServerValidate

    Setting the CausesValidation=&quot;False&quot; attribute in the other button's tag might work. regards, Blaxo
  15. Blaxo

    __doPostback

    You can't - __doPostback is created by .NET only when you have a control that will automatically do a postback. To submit the form when clicking on a link, use a LinkButton. And if you really need that function, just create your own javascript function that does the same as the .NET generated...
  16. Blaxo

    HTML File Object

    Hi Johnny, If you include runat=&quot;server&quot; in your <input type=&quot;file&quot; ... /> tag, you can use it like any other servercontrol, and it will save viewstate as well I think. regards, Blaxo
  17. Blaxo

    RequiredFieldValidator

    Hi, The display of the error message of an ASP.NET validator control can be set to static, dynamic, or none, in which case it can be displayed by a ValidationSummary control. So in your case you should set it to either dynamic or none. For example like this: ... <asp:ValidationSummary ... />...
  18. Blaxo

    Log off time

    The script I proposed doesn't seem to work right, since it calls the function logout() every time the page is changed, not only when the browser window closes... it only works right when your web application is in a frameset page that never changes, and the onunload=&quot;logout();&quot; is in...
  19. Blaxo

    Command Still Executes When Cancel Is Selected On Dialog Box

    The line imgbtn.Attributes.Add(&quot;onclick&quot;, &quot;javascript:chkAction('&quot; + ddl.ClientID.ToString() + &quot;');&quot;); should be replaced with imgbtn.Attributes.Add(&quot;onclick&quot;, &quot;javascript:return chkAction('&quot; + ddl.ClientID.ToString() + &quot;');&quot;); Like...
  20. Blaxo

    Open MS Outlook

    The applications you refer to probably used a 'mailto:' link. The syntax for a mailto link is explained on http://www.ianr.unl.edu/internet/mailto.html regards, Blaxo

Part and Inventory Search

Back
Top