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...
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...
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
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...
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
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.