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 SkipVought 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: shangrilla
  • Order by date
  1. shangrilla

    Seperate Value & Code for Combo box

    Hi: Table with 2 columns KeyValue DisplayValue 1 Tables 2 Chairs . . Can I have a combo box in which the display value is 'Tables, Chairs...', but the code to look up these values is '1,2...'?
  2. shangrilla

    Alert all users?

    Thanks JFrost. I ended up putting the following code in Application_BeginRequest() in Global.asax file and that resolved my problem. Thanks for your input everyone. Dim s As String = Nothing '// Script Header s += &quot;<Script>&quot; s += &quot;var hwnd =...
  3. shangrilla

    Alert all users?

    Code Behind Class1 Dim s As String = Nothing Dim Response As HttpResponse '// Script Header s += &quot;<Script>&quot; s += &quot;var hwnd = window.open('send.htm', 'hp','top=250, width=388, height=327, left=400, titlebar=no, location=no, menubar=no...
  4. shangrilla

    Alert all users?

    Webforms by default inherit System.Web.UI.Page Public Class IClaimNotes Inherits System.Web.UI.Page End Class I can not use another I Inherit statement. Do I have to use an Interface to implement Multiple Inheritance
  5. shangrilla

    Alert all users?

    claws2rip: Public Sub MyMessage(ByVal strMessage As String) Dim sJavaScript As String dim Response as System.Web.UI.HtmlTextWriter sJavaScript = &quot;<script language=javascript>&quot; sJavaScript &= &quot;alert('&quot; & strMessage & &quot;');&quot; sJavaScript &=...
  6. shangrilla

    Alert all users?

    Custom24: Your 2nd suggestion will do the job for me. I just need to figure out how to use it. Where do I write the shared function that checks if a message needs to be displayed or not? Will this work for a web application because msdn has it(Application Class) listed under the...
  7. shangrilla

    Alert all users?

    How can I send a message to all users currently using the application? I can use javascript alert and call it on a form load, but I want something that will occur application wide not just when that particular form is loaded. For example in Global.asax file in Sub...
  8. shangrilla

    Char Value in SQL Server

    obislavu: Thanks for your very descriptive explanation. Learning something new everyday. Do you know of a way to check if a char field is empty/null?
  9. shangrilla

    Attribues.Add()

    There is no such attribute as page.HTMLForm
  10. shangrilla

    Char Value in SQL Server

    name is a char field stored as null in the database. I send name to the following function, but It never returns true. static private bool checkSpaces(char name) { bool val=false; try { if (name.Equals(&quot;&quot;) || name.Equals(null) || Convert.IsDBNull(name)) val =true; } catch {val=...
  11. shangrilla

    Attribues.Add()

    I want to change the color of the form if a particular label is visible. lblGo.Attributes.Add(&quot;onload&quot;, &quot;color();&quot;) 'doesn't Work lblGo.Attributes.Add(&quot;onclick&quot;, &quot;color();&quot;) 'works but doesn't serve my purpose <script language=&quot;javascript&quot;>...
  12. shangrilla

    Change form backcolor

    How can I change the backcolor of a form on server side? Private sub button1_click Form1.ActiveForm.BackColor = System.Drawing.Color.Red ' isn't working. end sub
  13. shangrilla

    SQL Between

    I am trying to get data where lastName falls between 2 values eg: A thru E. This would only give me data where lastNames are from A thru D. I am using BETWEEN val1 and val2 Can I modify this statement or use something else to include lastNames starting with E also. Thanks
  14. shangrilla

    Adding unbound column to a grid

    Hi All: I have a dataGrid(bound to a datatable). After the grid is loaded I add an unbound column to the grid. This new column is the last column(right most) in the grid. I want this new column to be the left most column when the grid is displayed. How can I do that? Thanks.
  15. shangrilla

    Rows on active page in datagrid

    Hi: I have a dataGrid (bound to a datatable) that displays 25 rows per page. How can I find out the # of rows being displayed on the current page? Thanks in advance.
  16. shangrilla

    Calculate # or rows per page in datagrid

    Hi: I have a dataGrid(bound to a datatable) that displays 25 rows per page. How can I find out the # of rows being displayed on the current page? Thanks
  17. shangrilla

    Problem inserting records

    Hi Slighthaze: This is what I am trying to achieve. I am backing up selected data from my existing tables and move it to another tables with the same structure. myTab = contains a list of all the tables that need to backed up. It loops. workingdir = &quot;c:\myApp\&quot; backupdir =...
  18. shangrilla

    Problem inserting records

    if used(backupdir+&quot;&myTab&quot;) use in backupdir+&quot;&myTab&quot; endif use backupdir+&quot;&myTab&quot; Same problem.
  19. shangrilla

    Problem inserting records

    workingdir = &quot;c:\myApp\&quot; backupdir = &quot;c:\backup\&quot; Select * FROM workingdir+&quot;&myTab&quot; INTO table &quot;XYZ&quot; ; WHERE pkey NOT IN ( SELECT pkey FROM backupdir+&quot;&myTab&quot; ) Select 0 if used('backupdir+&quot;&myTab&quot;') use in...
  20. shangrilla

    Problem inserting records

    Tables XXX and YYY have the same structure. USE XXX scan SCATTER MEMVAR INSERT INTO YYY FROM MEMVAR where xxx.pkey <> yyy.pkey (error in above statement) endscan How can I fix this problem?

Part and Inventory Search

Back
Top