|
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 />
|
|
|
|
|
|
OK, just wanted to be sure. Need add few key values after first procedure, is the syntax the same?
<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 />
WSHShell.RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Control Panel");<br />
"HomePage"=dword:00000001<br />
<br />
WSHShell.RegWrite("HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel");<br />
"HomePage"=dword:00000001<br />
<br />
</script><br />
|
|
|
|
|
Hello,
if I want to send a URL-Request like this:
http://www.test.org?param=param_value_string
How does the web-server know which codepage I used for param_value_string? (This is not a question of URL-Encoding).
HTTP defines for the HTTP-Body encoding settings in HTTP-Header. But how to know the "client-encoding" for the HTTP-Request itself?
I searched in the internet for this but didn´t find a concrete answer.
Can anyone please help me in finding an answer.
Thank you very much,
Stefan
|
|
|
|
|
Hi all,
Is there any way to enable ActiveX by javascript?
Thanks,
Thai Nam
|
|
|
|
|
I have the same problem. I need to insert a few Excel documents in one html page. I've founded the object guid (Microsoft office web components - SpreadSheet).
Here is the code:
<br />
<html><br />
<body><br />
<OBJECT ID="Microsoft Office Spreadsheet 10.0" CLASSID="CLSID:0002E551-0000-0000-C000-000000000046"><br />
</OBJECT><br />
</body><br />
</html><br />
2thainam: you can change guid to any activeX object.
But I can't load xls file to this object. Only xml file.
Please, tell me, if you know, how to do this.
Best regards, Alexey.
|
|
|
|
|
Not sure what you mean by "Enable", but you use ActiveX objects
simply by creating:
var Excel = new ActiveXObject("Excel.Application");
where Excel.Application is the ProgID of the object you wish to create. The you use the methods/properties this object exposes.
If you mean "enabling" as enabling ActiveX execution in MS IE security properties tab - the is no way you can do this. Usually I do the following:
try
{
var Excel = new ActiveXObject("Excel.Application");
}
catch(error)
{
alert("Sorry, ActiveX objects cannot be used until enabled!");
}
Hope it helps,
Dmitry.
-------------------------
Don't worry, be happy )
|
|
|
|
|
Any suggestions on how to code a servlet which checks a database for upcoming events like birhtdays, anniversaries etc. and posts it to the inidvidual email account.
Thanks
Shireen
|
|
|
|
|
|
Hi,
I want to open an Public Key from a file. I read the File into a BYTE*...
e.g.:
-----BEGIN PUBLIC KEY-----
FAAOCAQ8AMIIBCgKCAQEAy7Y87v8Bu4vikEH/Mm5TadEy2BKuRPBeuQC7cKbfOXac3km30/zn15YQ2CW6G9pg9b2FF8S2Zx/TVqmAWCN/no5aJttqcKweVLNn7EAQm1SABYko6HRAj/7YFoID+Ca6C89qrIhmUh36OHSGz6FbmM
-----END PUBLIC KEY-----
...
CryptAcquireContext(&hProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)
...
if i call: CryptImportKey(hProv, bTestBlob, dwTestLen, 0, 0, &hKey)
if makes an error: 80090007
bTestBlob is BYTE[]
what is the problem?
please help me
|
|
|
|
|
Key is a base64 encoded string - you need to unencode from that and then to byte.
|
|
|
|