Vertical Table Alignment Issue With Dataset Returned
I have two tables: one table forms the header columns and the other table is in an iframe returning the results of an sql query. The query works fien and returns the appropriate data but the rendering of the columns in the top table does notmatch those in the iframe table, even though they are supposed to be the same width!!
The iframe table has a scroll bar and the data returned sizes each column cell
dependant on the amount of data returned regardless if i stipulate a set width!!
As you can imagine this is visually poor as the table columns are not correct for both tables!!
View Replies
ADVERTISEMENT
As a mean of not having to use Framesets/Frames with all the bad side effects/workarounds that come with them, I want to know if it is possible to code a scrolling veritcal bar into a table <TD> ...
View Replies
View Related
i have tried to align the text and a textarea on top, but fails.
<tr>
<td width="150"> </td>
<td width="150" valign="top">Description :</td>
<td width="300"><textarea name="desc" cols="34" rows="6</textarea></td>
<td width="160"> </td>
</tr>
the codes above show the "DEscription text at the buttom level. How can i place them at same level?
View Replies
View Related
I have a list box, with more than 1 peice of data in each listrow. I was wondering if its possible to align the first data to the left and the 2nd data to the right inside the list?
Example:
|Firstname Age|
|Firstname Age|
If you understand.
If its not possible no problem.
View Replies
View Related
I have a few problems.First of all is the date.I have a form that allows user to select the dd/mm/yyyy(dropdownlist alike thingy). However, if the user does not select anything, nothing is recorded into the database. However the problem I have now is its either I get -/-/- or // which ever option comes first. Is there a way whereby I just dont insert anything into the DB and wen I wan to (retrieve)edit it in another form,it displays the default which is mayb select one or blank. Next,I want to get the age of the user by using his Date of birth(he gets to select this). How do I actually go abt doing it? System Date - DOB? What's the actual syntax?
Lastly,the system I'm designing allows user to print the data he sees on his screen. I'm using <a href="javascriptrint();"> which works but the prob now is I have to print the paper according to a certain size. Say a quarter of an A4 paper. Do I just design the form according to the size or I have to do some coding.
View Replies
View Related
Can anybody help me create a VERTICAL Menu bar please.
View Replies
View Related
If anybody can help me to figure out IE 6 display issue that I have here:
olf.com/news/news2.aspx
it looks ok on Firefox. I'm sure it is small thing that I dont see.
View Replies
View Related
I am trying to create a collapsing vertical menu (with nested submenus). Check out the 'products' quick menu on this site and you will know what i mean.I know how to do a static version of this using CSS and DHTML but in this case the client will need to add/remove sub-menu categories. Consequently the menu will need to be populated from a db. I am using ASP (VBScript) and an MS Access DB.
View Replies
View Related
Apparently you can do a window (for want of a better word) without having the vertical scroll bar to the right there, which you get regardless of the height of the window.We are working on pop up message boxes (JS, calling standard ASP), and can't work out how to get rid of the scroll bar. Some one in the office is claiming it can be done, but am at a complete loss how to do it.
View Replies
View Related
Anone know of free code available to create a vertical repeating region? (I've found code for a horizontal repeating region.). I want to display my data from an Access table vertically, not horizontally.
View Replies
View Related
Can i use scriptiing to make page alignments before i use window.print()?
View Replies
View Related
I have a method that uses Microsofts Data Block to get me a value from the database. This returns a DataSet. I use this kind of data as string a lot using the following:
ds.Tables[0].Rows[0].ItemArray.ToString()
The problem is: I do not want a string now. I need a int, because the value is a int which I have to increase with one and then return back to a tring again to put in a disabled textbox.
I just need to know how to get from a DataSet to an int or from a String to an int.
View Replies
View Related
I am pulling 40 records from a MS Access database, and displaying them in an .asp page..
The majority of times, there are no records to display in the last 10-15 records, so they show up as a blank space on my web page, pushing the rest of the content further down.Is there any way that I can elliminate this?
View Replies
View Related
I have a DataGrid which has checkbox columns. The data source is a run-time created data set that I store in a session so I can rebind it during postbacks. I don't have a database or xml file, etc.if it's possible to edit a dataset directly? So when I click on a checkbox it will change the value in the dataset and store it back into session?
If this is not possible how can I use arrays or vectors to temporary store my checkbox statuses? I guess it's not possible to have one DataGrid have more than one datasource
View Replies
View Related
Am putting a web front end over an existing SQL application, creatind a ado recordset which is to be displayed in a table on the screen, however when the page runs the recordset returns correctly however only the first two columns have data in, the remaining columns in the table are blank.
Have to use both an sqlview and base sql select statements for the recordsource both the same result. I know it is not a permission problem as I can run the query in sql with the same credentials ok.
View Replies
View Related
I have a DataGrid which has checkbox columns. The data source is a run-time created data set that I store in a session so I can rebind it during postbacks. I don't have a database or xml file, etc.
I am wondering if it's possible to edit a dataset directly? So when I click on a checkbox it will change the value in the dataset and store it back into session? If this is not possible how can I use arrays or vectors to temporary store my checkbox statuses? I guess it's not possible to have one DataGrid have more than one datasource.
View Replies
View Related
i have a dataset that has say 3 cols (id,name,marks). i want to calculate sum of all marks by traversing all rows in dataset.
like ,
sum = 0;
val = Ds.Tables[0].Rows.Count;
for (int i = 0 ; i< val; i++)
{
sum = sum + Ds.Tables[0].Rows[i].ItemArray["marks"].ToString()
}
but i am getting error in underlined position .
View Replies
View Related
i need to use the returned value from a database in my code. it is not to be displayed on a aspx page. I can connect to a database and return the one value i want using SQL SELECT.....FROM.....WHERE...... condition. this is returned as a dataset.
Is there anyway i can return this value from the database as its real value as there is only 1 record? If not how can i retrieve this 1 value and use it in my code? Do i need to loop through the dataset and return it as a string? I want to retrieve 4 values from 4 difference database tables and them up in my code and then return the total value to a different database table.
View Replies
View Related
I have a web interface where the user types in ID's one at a time. After an
ID is typed in, a button is clicked and the button click event has code that
does a query and returns a data reader and then appends the data to a
dataset that is built in the Page_Load code in the if(!isPostBack) block.
When I try to add a row in the button click event code I get an error saying
that "Object reference not set to an instance of an object". I'm saving the
dataset in a Session object and then restoring it in the else clause of the
if(!isPostBack) block. I've pasted code below, please help. I'm relatively
new at asp.net development but have lots of asp and ado experience. Code:
View Replies
View Related
How is it possible to execute an exe from asp and get a returned string (no http headers in exe) ?
To run exe I use :
<%
cmdExe = sPath & "cgi-bin
equest.exe"
Set WshShell = Server.CreateObject("WScript.Shell")
sResult = WshShell.Run(cmdExe, 1, True)
Set WshShell = Nothing
Response.write sResult
%>
sResult always content "0" and not the string returned by exe file (something like "!!-1!blabla!blablablabla!")
- How is it possible to get the exe returned value ?
- Is there a solution with asp.net ?
View Replies
View Related
When I do a query that I know has 2 rows, I get rs.recordcount equals -1. Same thing when it's just one row. I need something that gives me the number of rows.
View Replies
View Related
I am trying to update a record but it returns this error :
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'Function'.
/performaindia/security/functionssys.asp, line 210
Now at line 210, I have this function :
rs.Update.
View Replies
View Related
I am getting this error on selecting an option :
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column 'SystemUserOnly', table 'performaindia.dbo.SecurityTableFields'; column does not allow nulls. INSERT fails.
/performaindia/security/tablefields.asp, line 220
now the line 220 is an update statement :
rs.Update
View Replies
View Related
I have a bit of a situation here, I own a job board and have multi-posting comapnies posting jobs to our database and we have returned values going back to them to tell them if the job vacancy was posted succesfully or not.
The problem I have is that our main ASP guru is of sick and the other is off away on business. I have pretty good knowledge of ASP but not as much as these guys. So I need to know how to send a response back to the posting company whether it has been succesfull in posting the job vacancy instead of sending back a page back displaying whether it was successful.
View Replies
View Related
I define a recordset with a pagesize of 100 in my COM object and return this recordset to ASP. When I check my pagesize at the ASP level,it is 10 I assume this is the default.
I can set my pagesize at the ASP level after the COM function is called, but I would prefer to have this encapsulated within the COM.
View Replies
View Related
I am not sure what way to do this, i want a specific row returned and displayed in asp but not in a text box, in acess and vb i ahve done this and its just a label but not sure in asp.
View Replies
View Related
I have an ASP/ADO application querying an SQL Server DB. I want know the most efficient way to determine if more than one row is returned from a query. If more than one row is returned, the user will be presented with a choice of which row to process. If only one row is returned, I want to skip this stage, and process that single row immediately.
I can think of a number of ways of acheiving this (eg. .recordcount) but I'm looking for the slickest and most efficient method.
View Replies
View Related
I have a simple VBS to return some unless data (as a test) and it works correctly. Code:
View Replies
View Related
wondering if its possible to have some kind of searched word highlight! IE. every thing it throws up in return of search it will highlight why it has brought it up! so if search "a" all "a" in return results would be highlighted.
View Replies
View Related
I've got a DropDownlist with predefined numbers(5,10,15,20 etc.) which I
want to do a postback to the GridView pagesize, so that the user manually can
change returned rows. Is there a way to do that in the properties of the
Designview or must there be a code behind. If so, what is the code for this?
View Replies
View Related
I am retrieving a response from another site but certain special characters such as ' (single quote) or "(double quote) and £ (pound sign are being returned as ?. The code i am using to get the page is as follows:
Set objhttp= Server.createObject("Microsoft.XMLHTTP")
objhttp.open "POST","http://www.mysite.co.uk/viewdetails-" & PrmRef & ".rsp",false
' objhttp.setrequestheader "Content-Type","text/plain"
' objhttp.setrequestheader "Accept-Charset","iso-8859-1"
' objhttp.setrequestheader "content-type","text/html","charset","iso-8859-1","application/x-www-form-urlencoded"
' objhttp.setrequestheader "content-type","text/html"
' objhttp.setrequestheader "Content-Type","application/x-www-form-urlencoded"
objhttp.send formData
prmResp = objhttp.responseText
I have tried setting various values for the requestheader as commented out above but with no success.
View Replies
View Related
I'm currently developing on IIS 5, ASP 3 and MySQL 4.1 using the latest ODBC driver from MySQL.
Any time field I have return from the database is returned as the current date. I've tried every table which has a date, created tables which soley keep records on the date.
I've submitted the date from MySQL Query browser using CURRENT_TIME and from an ASP page. Both submit fine.
I've returned the record using a Recordset to move through each and filled an array using GetRows().
View Replies
View Related
short n simple question: I want to display the number of records returned from a search. Code fragment as follows:
// d/b retrieval SQL code
SQLCode = SQLCode
Set objRS = objConn.Execute (SQLCode)
// displaying the returned results
Do While (Not objRS.EOF
<< spit out records >>
objRS.MoveNext
Loop
Now, is there an instance of objRS I can call that will just display how many records were returned? I tried objRS.Count on a longshot, but that didn't work
View Replies
View Related