|
Hi
I would like to set the style attribute of a div via the use of the code behind.
The div has a id and is runat="server" so I can use it in the code behind
its initial style visibility property is set to hidden, in the code behind I would like to set it as visible given a condition.
Please help
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Like this:
if (TheConditionThatControlsTheVisibility) {<br />
TheIdOfTheControlToChange.Style["visibility"] = "visible";<br />
}
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanx Works Perfectly
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
hi
i have a control it has a grid and the grid has some buttons(ImageButton)
and each button has it's own OnCommand method but the commands aren't execute clicking will only cause to postback to a another page
i just don't know why it should happen ?
(I am using DotnetNuke)
|
|
|
|
|
This is just a guess, but is sounds like you have a postbackurl on your imagebutton. That is normally why you would be posting back to another page.
Hope that helps.
Ben
|
|
|
|
|
thanks for your replay
but no there was no postbackurl,
there are times that a problem appears without any reason and solves with no reason
the problem solved i don't know how
|
|
|
|
|
How do you create a checkbox like below in ASP? Please excuse my graphics.
O Check this to get an expansion below (ListItems)
O 1st item
O 2nd item
O 3rd item
I was able to get the above. However, I want to hide the items until I check the ListItems checkbox (the circle). Then unchecking the ListItems checkbox, the listed items disappear.
|
|
|
|
|
Hi!
I have a cuestion, i would know about how execute asp pages without server than IIS, PWD, etc. I would can run asp from web navigator directly, as html files but with asp or php code inside, this files every guest will can execute from url in a web browser, but not exist a web server in remote computer, only a shared folder with those files, is possible my idea?, thanks for your replys.
|
|
|
|
|
The answer is Yes - if you want to test your scripts locally, and No - if you want to open these scripts to the outer world. Look here:
Running .PHP, .ASPX, .CGI, or .CFM locally without server software?
And here:
php without server
But, I think, it takes less time to learn how to install Apache+PHP or IIS+ASP that torture yourself without a server.
Hope it helps,
- Dmitry.
-------------------------
Don't worry, be happy )
|
|
|
|
|
Thanks for your reply
|
|
|
|
|
I am trying to update a field in a sql database from an asp form but i am getting the following error message when submiting update:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E37)
Invalid object name 'request.form'.
this is the code:
'COMMENT: THIS SUB DISPLAYS THE FORM WITH THE VALUES FROM 'DATABASE ALL FIELD IN THE TABLE DISPLAY, 2 FIELDS.
Sub EditItem()
Response.write ("Edit Record")
which=request("which")
MySQL="SELECT * FROM Table Where categoryNum = " & which
Set MyRs=MyConn.Execute(MySQL)
Response.write ("")
Response.write ("")
Response.write ("")
howmanyfields=MyRs.fields.count -1
for i=0 to howmanyfields
if Not MyRs(i).name = "ID" then
ThisRecord = MyRs(i)
ThisRecordName = MyRs(i).name
If IsNull(ThisRecord) or ThisRecord = "" Then
ThisRecord = " "
end if
Response.write ("")
Response.write ("")
Response.write ("")
Response.write ("")
end if
next
Response.write ("")
Response.write ("")
Response.write ("")
Response.write ("")
Response.write ("")
Response.write ("")
MyRs.close
Set MyRs= Nothing
End Sub
'COMMENT: THIS SUB GETS EXCECUTED AFTER PREVIOUS CALLS IT. IT UPDATES THE VALUE TO THE DATABASE, REQUEST.FORM(CATEGORY) VALUE.
Sub EditItemAction()
which = Request(strKey)
'which = query string passed as category number
MySQL="SELECT * FROM table Where category = " & which
Set MyRs=MyConn.Execute(MySQL)
MySQL1="UPDATE " & strTable & " SET categoryName = request.form(categoryName) Where " & strKey & " = " & which
Set MyRs1=MyConn.Execute(MySQL1)
MyConn.Close
set MyConn=nothing
End Sub
|
|
|
|
|
alxtech wrote: MySQL1="UPDATE " & strTable & " SET categoryName = request.form(categoryName) Where " & strKey & " = " & which
Making a bunch of assumptions, but try changing above line to this:
MySQL1="UPDATE " & strTable & " SET categoryName = '" & request("categoryName") & "' Where " & strKey & " = " & which
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Thank you for your solution, it works perfect.
|
|
|
|
|
Hai,
please help us in getting records from access database table to Excel sheet using Excel VBA programming.we have data in access database table and that data should be displayed in excel sheet(i.e., result page).Please help us in this query, we are new to VBA programming
|
|
|
|
|
Does it have to be VBA programming? You can't just use the built in excel stuff to pull it through the user interface?
|
|
|
|
|
Thanks for your quick response.
yes it has to be done in VBA programming.
We already written code, for storing data from excel sheet to Access database.But our final requirement is to get data from access database and display it in Excel sheet(i.e., result page).
Please do the needful, as soon as possible.
|
|
|
|
|
Try turning the code upside down....
Brad
Australian
- unknown PHP Developer on "Job Prospect"
Requirement: * Experience working with XML, XSL, XPath
Comment: and other things starting with X.
|
|
|
|
|
HI ALL,
CAN ANY ONE TELL ME WAT R THE WAYS TO CONVERT AN HTML PAGE INTO .ASPX PAGE.
LET ME EXPALIN IN DETAIL....
OUR WEBDESINGNER HAS DESIGNED A PAGE,HE HAS SLICED THE PAGE AND GAVE ME IT IN HTML FORMAT...
NOW I WANT TO CONVERT THAT PAGE INTO .ASPX PAGE .PLS TELL ME WAT R THE EASY WAYS TO CONVERT THEM INTO DOTNET PAGES...SO THAT THE ALIGNMENT DOESNOT CHANGE.AND FIT INTO ANY MONITER...
ITS VERY URGENT..PLS GIVE ARTICLES AND SUGGESTIONS...
THANKS IN ADVANCE.
BINO VARGHESE.V
|
|
|
|
|
Copy the HTML and paste it into the aspx page replacing the existing HTML tags. Be sure to keep the page declaration at the top and add an <asp:form> tag before you use any controls.
|
|
|
|
|
IS YOUR KEYBOARD STUCK ON CAPS LOCK?
Brad
Australian
- bryce on "Problems with Code Project"
*sigh* Maunder's been coding again...
|
|
|
|
|
IS YOUR KEYBOARD STUCK ON CAPS LOCK?
No just to get u ppls attention
|
|
|
|
|
BINO VARGHESE wrote: No just to get u ppls attention
Yes, that worked.
It also had the effect that I didn't read your post at all.
But, yes, you got my attention. Did that help?
---
single minded; short sighted; long gone;
|
|
|
|
|
How do I detect whether or not javascript is active via the use of the code behind.
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
The code behind runs on the server so you'll probably find it difficult (read: impossible) to detect client-side capabilities.
|
|
|
|
|
The only way to detect if Javascript is available is by using Javascript.
Add a Javascript to the page that does something, for example navigate to a different page. If that doesn't happen, then Javascript is not available.
---
single minded; short sighted; long gone;
|
|
|
|