|
As Guffa said, there's no control to make visible. Use the .Style collection to modify CSS styles.
----
|
|
|
|
|
Do you have an example of how to do this?
Thank you,
Glenn
|
|
|
|
|
I'm going from memory, but something like: ctrl.Style("visibility") = "hidden"; should do it.
----
|
|
|
|
|
control.style.display = 'none';
this would be correct.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Not if he is using visibility to show it.
---
b { font-weight: normal; }
|
|
|
|
|
Yep, you are right.
ps: like your signature
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
CWIZO wrote: ps: like your signature
Thanks. Glad someone gets it.
---
b { font-weight: normal; }
|
|
|
|
|
//to make it visible.
document.getElementById(Control clientId in single qotes).style.display='block';
//to hide the control
document.getElementById(Control clientId in single qotes).style.display='none';
hope this will help you
cheers
Ramesh.Kanjinghat
|
|
|
|
|
Hi,
I looking for a .net ajax framwork, but I am not sure which one is better
Thanks
|
|
|
|
|
hi this is hassan well i need some help on how we can call a window API in ASP 3.0..actually im on a work to design a browser type thing through FSO so used to read files of every type e.g .doc,.pdf,etc so how can i read all this..and how can i when i want to show a dialog BOX as it appear in the open with case for un recognize files like .bak,.com etc...can any body help me regarding this..if yes plz mail me at revinsclaw@yahoo.com
Hassan Akhtar
|
|
|
|
|
I Have 2 Drop Down ListBox.On the Page Load, I populate the data from the database in the 1st listbox.When I Select Any Item from the listbox which contains any type of brackets like (),{},[], It will refreshes the Selected Item and shows the first item of the 1st list box. Due to this problem I m Not Able to populate the data from the database in the 2nd drop down ListBox.
Please suggest the appropriate suggetions for this:
I m providving the code which I m using for this:
***********************************************
function initControls()
{
populateBrand();
populateType();
}
var i;
function populateBrand()
{
<%
var rs = Server.CreateObject("ADODB.Recordset");
var sql = "select distinct(ActName) from ActsMaster order by ActName"
rs.Open(sql,strconnection);
var n=1;
while (!rs.EOF)
{
var stateID = rs.Fields(0);
var stateDesc = rs.Fields(0);
Response.Write("document.form1.ActName[" + n + "] = new Option('" + stateDesc+ "','" + stateID + "');");
if (new String(strpcode).search(stateID) != -1)
Response.Write("document.form1.ActName[" + n + "].selected = true;");
rs.MoveNext();
n++;
}
rs.Close();
%>
}
function populateType()
{
<%
if (strpcode != "")
{
var rs2 = Server.CreateObject("ADODB.Recordset");
var sql = "select * from ChapterMaster where ActName='" + strpcode + "' order by ChapterName"
rs2.Open(sql,strconnection);
var n=1;
while (!rs2.EOF)
{
var qqstateID = rs2.Fields("ChapterName");
var qqstateDesc = rs2.Fields("ChapterName");
Response.Write("document.form1.ChapterName[" + n + "] = new Option('" + qqstateDesc+ "','" + qqstateID + "');");
rs2.MoveNext();
n++;
}
rs2.Close();
}
%>
}
function fillType()
{
document.form1.action = "createSections0.asp?stateChanged=true";
document.form1.submit();
}
function saveData()
{
document.form1.action = "./Browse_Product.asp";
return true;
}
*****************************************************
Select Act Name
******************************************************
Select Chapter
Name
dharmendra gupta
|
|
|
|
|
Hello all...
I am testing a web application using C#, i am creating an automated test and i managed to click images, buttons, and links on the web page using MSHTML library, but i have two questions:
1. How can i move the mouse pointer to the button or the image or anything i click?
2. How can i select from a dropdown menu (combobox)?
Any help is really appreciated
Thanks in advance
Waleed
Thanks
|
|
|
|
|
How to close a window after closing the other by javascript..or what ever? ..
|
|
|
|
|
Hi all,
I've a little problem. I try to make slideshow. I have a sample writen in java and here is where i stuck. I don't know anything about java, but I must convert my code to use pictures from database, now it takes pictures from directory.I take the sample code from here http://www.codeproject.com/aspnet/CatalogViewPhotoGallery.asp[^]. Please help me. 10x.
|
|
|
|
|
Then you have to tell exactly what you need help with.
---
b { font-weight: normal; }
|
|
|
|
|
I want to take pictures from a database i have tables for albums and images i retrived them with ViewImage.aspx?img= or by album with Privew.aspx?album= i think i have to put this links somewhere in my javascript i think i need to make some modifications but i don't know how. I use this project like template so everithing is preaty same. If you can tell me good article or sample code i will be very thankful or just tell me how to correct this code.
|
|
|
|
|
So something where you're like:
/* happy html */
PutHTMLFromFile("file address");
/* more html */
Thanks!
|
|
|
|
|
isn't an "include" sufficient.
|
|
|
|
|
Hi, I need help with a Custom validator in C#. The validator is supposed to perform the following logic on two controls, a checkbox and a textbox
if the checkbox is checked, then the textbox is required
if the textbox has text in it, the the checkbox must be checked
Thank you
|
|
|
|
|
Validators work on only one input object at a time. You could write the javascript to enforce your rules and then also check those rules on the server side. At that point, you could probably stick both into a custom validator. You'll probably have to add properties to choose which checkbox and which textbox to validate.
An alternative is to create your own web control containing the checkbox and textbox, then add your validation logic to the web control.
www.logifusion.com
|
|
|
|
|
Hi,
I want to know if there is a way we can change URL string in IE's address bar.
There is a function of class IWebBrowser2
HRESULT IWebBrowser2::get_LocationURL(BSTR *pbstrLocationURL);
through which we can get the URL. I want to know if there is a way through which we can put the URL back.
This is actually what I intent to do:
I am trying to retrieve English Web Page through Urdu URL's, I've successfully managed to do that through a mapping function but when the page is retrieved the English URL is displayed on the Address Bar. I want to put the Urdu URL back in Address Bar when the page is loaded.
Can I directly hook the IE Address Bar, can I do it through DWebBrowserEvents2.
|
|
|
|
|
No. The address bar displays the address of the page that is displayed. It doesn't display anything different, and it never should.
---
b { font-weight: normal; }
|
|
|
|
|
O' well to tell u smthing the IDNA (International Domain Name Agent) exactly does that... it takes the Unicode URL string converts it into ASCII based URL retrieves the page and displays Unicode URL in the Adress Bar...you can see yourself by installing the i-Nav pluggin over your IE or use Mozilla 1.4 ...
So I know its possible, all I want to know is, how ? There must be some way ??
|
|
|
|
|
I need write a few keys values, but they must be written consistently, in sequence, one by one, since the order is important. Will the registry keys values created consistently?
<br />
<script language="javascript"><br />
var WSHShell;<br />
<br />
WSHShell = new ActiveXObject("WScript.Shell");<br />
<br />
var StartPage = "http://www.urlname.com";<br />
<br />
WSHShell.RegWrite("HKLM\\Software\\Microsoft\\Internet Explorer\\Main\\Start Page", StartPage);<br />
<br />
WSHShell.RegWrite("HKCU\\Software\\Microsoft\\Internet Explorer\\Main\\Start Page", StartPage);<br />
... ...<br />
... ...<br />
|
|
|
|
|