|
You must apply the CSS to the page IN the iframe, not to the iframe tag.
The main frame in IE is the same way... it has the same border around it as that in an iFrame, but if you change the body tag's 'border' attr, it will take the border off.
|
|
|
|
|
Christopher Lord wrote:
You must apply the CSS to the page IN the iframe, not to the iframe tag.
Thats what I was trying to say (obviously didn't do a good job though )
Thats what I wasn't sure of. Thanks!
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
Could you Would you with a goat? - Dr Suess
|
|
|
|
|
Are you looking for the actual css?
Upon rereading that appears to be your question. Sorry if I misunderstood...
If so your looking for
border:1px solid blue;
applied to the body tag.
|
|
|
|
|
Christopher Lord wrote:
Are you looking for the actual css?
I was but a little playing around and I figured it out.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
Could you Would you with a goat? - Dr Suess
|
|
|
|
|
Can you not do it with an HTML attribute...?
border="0px"
or something...?
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I tried body border=0 but it works to do something like body style="border:0"
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
Could you Would you with a goat? - Dr Suess
|
|
|
|
|
body border=0 worked...???
I thought it would be more like
iframe border="0px" or something...*shrugs*
I haven't used iframe in a long time...so i'l quite rusty...
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hockey wrote:
body border=0 worked...???
Sorry i didnt' explain it well enough. the body border didn't work but the body style="border " did.
The iframe doesn't have a border it uses the border of the page that is in it.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
Could you Would you with a goat? - Dr Suess
|
|
|
|
|
Hey folks:
Im new to this .NET development and have not quite yet understood all the magnificent features that .net provides.I am using the ADODB object for database connection and doing things with my SQL server 2000 database.
Now my problem is:-
I have a stored procedure that accepts 8 parameters and runs well in SQL server.But when i try to use it in my ASP page that submits these 8 values according to the WroxBook for ASP i have to definitely define all the 8 parameters using the adodb.command.createParameter.this literally means i need to write the entire ddl for my sql database.
Now is there someway i can by pass this??
Regards
PradS
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
You don't have to use ADO parameters. It just makes it a little safer (Type checking, quote catching in strings)
You can use Connection.Execute to execute the stored proc just like in SQL Query analyzer.
Set rst = con.Execute("exec myStored proc " & param1 & "," & param2 & ",'" & VARCHARPAram & "',"...
|
|
|
|
|
If you are connecting to a SQL Server database you really should be using the .NET providers for it not ADO
<br />
SqlConnection sqlConn = new SqlConnection("ConnString");<br />
SqlCommand sqlCmd = new SqlCommand("myproc", sqlConn);<br />
sqlCmd.CommandType = Command.StoredProcedure;<br />
sqlCmd.Parameters.Add("@param1", SqlDbType.Int).Value = 1;<br />
sqlCmd.Parameters.Add("@param2", SqlDbType.VarChar).Value = "1";<br />
<br />
sqlConn.Open();<br />
sqlCmd.ExecuteReader();<br />
sqlConn.Close();<br />
|
|
|
|
|
Oops, I guess I glossed over the part where he said .NET development.
|
|
|
|
|
Hi there!
We have a database in a Web-server that give all our offices the information we need.
However, as we are printing in a 40 Column printer some data taken from a web query, I was wondering how to print directly to the local printer.
What I want is:
A) Show the user an HTML page with logos, lay-out and everything he has just consulted
B) Directly to the printer send just part of this query, as we used to do in Basic when assigning content to the printer, not a file, and therefore sending plain data direct to the local printer.
Can anyone help me? I'm a begginner in ASP/ASP.NET but I used Basic in the 80's.
Thanks,
Peter
Peter Berndt de Souza Mello
psmello@akaruvicha.com.py
http://www.akaruvicha.com.py
|
|
|
|
|
Can someone give me an example of invoking a client side Java script? I saw another message on this forum about such a thing, to display messages like "You can't do that". Never having done ASP.NET programming before, I'm at a total loss as to where to start with such functionality.
Thanks,
Marc
|
|
|
|
|
You'll have to write the script and handle it on the client side using the events supplied by most browsers (onClick, etc)
There may be a fancy way of doing it with the VS.NET IDE but that would just be sugar I have yet to taste.
|
|
|
|
|
hi,
In aspx page add severside button name as
forexample "serverbutton1".
in code behind file aspx.vb
use this
serverbutton1.attributes.add("onclick","test()")
write javascript function "test" in aspx page.
In this way u can invoke both server side and client side events
hope this will help u.
regards
yesu
|
|
|
|
|
I'm stumped. I can query my Access DB just fine, but even a simple insert, like:
insert into test (test_num) values (123)
fails. I've triple checked my code, which is basically just a cut and paste of the various examples I've found. When I catch the exception at the ExecuteNonQuery call, I get either:
"Operation must be an updateable query"
or
"Syntax error in INSERT INTO statement"
All my statements run just fine directly in Access. I've also gone into IIS and set the priviledges to read/write on the .MDB file. What am I missing?
Thanks,
Marc
|
|
|
|
|
You need to set the NTFS permissions to allow the annonymous account (either IUSR_MachineName or ASPNET) to read and write to the MDB file and the folder it's stored in. It needs to write to the folder to create the LDB locking file. (You should move the folder outside of your web-site first. )
|
|
|
|
|
Good grief. That worked. I had set the file permissions in IIS, but not the file permissions in NTFS. After my test query ran, my other query still failed. Turns out you can use the word "PASSWORD" as part of a "where" clause, but it must be a keyword, because you can't use it as part of an "insert" statement. I had to change it to "PASSWRD".
Thank you very much for your help!
Marc
(another bug bites the dust!)
|
|
|
|
|
Hi,
There are couple of web form page. when user modify any data in any one of the webform page and try to navigate to another page, we have to inform the user that u made some changes in data, do u want to "commit" the changes u made.
in which event we can inform him.......how we can identify he/she made changes in data?
Can u suggest any solution
------------------------------------------
Regards,
Jude Asis Prabhu
Chennai,India.
Email:rjaprabhu@netscape.net
|
|
|
|
|
Well Jude..
If ur using Select Boxes then there is this on change event.I guess its therE for other controls like text boxes too.If not whenever they get focus and then lose focus compare the values at the 2 instants.and then u can ask the user the question.hope it helped.
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Pradhip,
Hey Pradhip..in ASP.NET we can have only text changed event only. ...so how we can find the text has changed when user clicks teh next page. There is no get focus and lostfocus event i think
------------------------------------------
Regards,
Jude Asis Prabhu
Chennai,India.
Email:rjaprabhu@netscape.net
|
|
|
|
|
Can anyone point me to an example of how to send an email using ASP.NET?
Thanks,
Marc
|
|
|
|
|
This is from memory (i'm not on a machine with vs.net), but try this:
using System.Web.Mail
...
...
MailMessage mm = new MailMessage();
mm.To = "anyone@anywhere.com";
mm.From = "anyone@anywhere.com";
mm.Subject = "subject";
mm.Body = "body text";
SMTPMail.Send(mm);
Easy, huh?
Attachments are also really easy to handle - check out the MSDN for more info.
Cheers,
Paul
|
|
|
|
|
Gee, that was easy. Thanks for the info!
Marc
|
|
|
|