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: crabgrass
  • Content: Threads
  • Order by date
  1. crabgrass

    Loop through FormView records

    Could someone help me with the proper syntax to loop through the records in a Formview? Something like For i = 0 To FormView1.DataItemCount - 1 Response.Write(FormView1.DataKey(i).Value.ToString()) Next I keep getting an 'index out of range' error or a 'Value not found ...' no matter...
  2. crabgrass

    Other databases

    Is it true that in order to use the full functionality of the new datacontrols (formview, gridview, etc) you have to maintain the data in a SQL server/express database? I have tables in a VFP database and can't seem to get them to work with a proper connection definition for...
  3. crabgrass

    Form view pager

    This from a total newbie. When using a formview, is it possible to change to appearance of the pager buttons to regular buttons rather than the default linkbuttons? Thanks
  4. crabgrass

    Databinding for a newbie

    When switching from asp to aspx, is there a new technique for binding data to a textbox control, or do we continue to use code like: <input name="txtZip" value='<%=oRS("zip")%>' > I have gone through the videos that discuss the new data controls such as grid and formview but have seen nothing...
  5. crabgrass

    Login Controls

    I have been experimenting with the aspx login controls. Can someone tell me where the actual data is stored and can additional data fields be created? Thanks
  6. crabgrass

    Activating a SELECT

    Suppose the web page contains a SELECT control that is disabled by default. As the user makes choices, the SELECT becomes enabled. Then with the SELECT enabled, he proceeds to a different page. After viewing the second page he clicks the back button to return to the first page. The selections he...
  7. crabgrass

    .NET button navigation

    Here's a fairly simple but not obvious (at least to me) question. Given a regular ASP button: <input type="button" name="cmdSites" value="Businesses" onclick="javascript: document.forms[0].action='sites1.asp'; document.forms[0].submit();"> How would you define the equivalent onclick in the...
  8. crabgrass

    How to do pageframes

    As a total newbe to .NET, can someone tell me what is the traditional method of creating a pageframe or page tabs on an aspx webpage? What I mean is the type of tabs that appear in an Excel workbook to tab between spreadsheet pages. I have been doing this with buttons to navigate to a new file...
  9. crabgrass

    Troubleshooting a COM object

    Anyone have a clue on how to troubleshoot the cause of IIS crashing when it runs code inside a COM object? I have a DLL written in VFP that will run fine natively but will crash IIS when run from ASP. It uses some 3rd party code that I can't see so I can't boil down to the exact call that is...
  10. crabgrass

    Get field value with a variable reference

    Suppose you wanted to obtain a value from a recordset like this: x = oRS("Local_2008") but you wanted the year (2008) to be established by a variable, something like: x = oRS("Local_" & myyear & ")" How could you do this? I have tried several variations using "evaluate" but I can't seem to...
  11. crabgrass

    Excel left open

    Not sure if this is the best forum for this question. Let me know if I should post it somewhere else. I have a DLL called from ASP that creates an Excel file. After file creation the ASP page redirects to the excel file which opens a dialog giving the user the option of saving the file to disk...
  12. crabgrass

    Permission denied error

    I have a COM server compiled as a DLL that is called from ASP with set oServer = createobject(createobject("ContactManager.CMTools") This works fine except that the DLL contains some functions that produce a "Feature not available" error. I was advised that this could be overcome by compiling...
  13. crabgrass

    Dropdown with multiple selection sets

    I have a page with a radio button option group consisting of 2 buttons. There is also a dropdown select, the available options of which will be based on the user's choice in the radio group. I have a js that will do this based on arrays of the possible choices for the select. These arrays are...
  14. crabgrass

    Testing for TRUE

    The following code uses oServer to create an output file which returns a logical true if successful. The code executes and produces the file, the response.write prints True on the form but the if statement evaluates to false. I have tried about a dozen variations on this code but can't seem to...
  15. crabgrass

    File creation with a stored procedure

    I have a stored procedure like so in a VFP database. function createexcel filespec = (justpath(dbf())+ "../output/sampleout") select * from sites into table (filespec) use (filespec) filespec = (justpath(dbf())+ "../output/sampleout2") copy to (filespec) type xl5 return filespec endfunc...
  16. crabgrass

    File create with a stored procedure

    I have a stored procedure like so function createexcel filespec = (justpath(dbf())+ "../output/sampleout") select * from sites into table (filespec) use (filespec) filespec = (justpath(dbf())+ "../output/sampleout2") copy to (filespec) type xl5 return filespec endfunc When run from VFP the...
  17. crabgrass

    Save file formats

    When you save a recordset file with a command like rs.Save "c:\myfilename.ext" What file format does the result file exist in, and is there a way to control the result file format? I would like to be able to create excel, db3, and db4 files. Thanks
  18. crabgrass

    trigger JS with asp?

    I have a page that initially loads in non editing mode (all the controls are readonly). A series of JS routines is run when the user clicks the edit button to turn off the readonly attributes and disable various buttons so he doesn't screw things up while editing. During the onchange of one...
  19. crabgrass

    Redirects

    I find the following to be unreliable. Sometimes it works and sometimes it doesn't. <code> response.write("<meta http-equiv=refresh ") response.write("content=0;url=http:contactsusers.asp>") </code> The same is true of <code> response.redirect("newpage.asp") </code> Is there something wrong...
  20. crabgrass

    Get data from database

    Suppose you create a new record in a database with a command sequence like: <code> sql = "EXEC 'insert into users (name) values ([name])'" oConn.Execute(sql) </code> and suppose the database automatically create the value for the keyfield of the new record. How would you extract the new keyfield...

Part and Inventory Search

Back
Top