|
can't you try putting target="right Frame ID Attribute" in the form tag??
|
|
|
|
|
Gavin,
Thanks for your reply. Can you elaborate on your solution. I am not quite following what you mean by Frame ID attribute.
<input type="submit" value="Search" onclick="parent.test.location.href='rightFrame.html'; target="right">"
|
|
|
|
|
Each frame element should have an ID attribute, e.g. ID="right" and ID="left" to allow scripts to differentiate between them. The onclick script returns HTML text which should be structured to include the attribute Target="right" - I'm not sure how to do this, since you haven't posted your script, but it must be easily done. For an easy cheat, view the source from the Microsoft MSDN website and follow the example of how they implement it.
On the other hand, you could get away from frames entirely, since they are deprecated elements that most developers consider obnoxious. Look into the positioning elements of CSS for a more robust solution that is supported by more browsers than just IE.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
hi,
try to use folllowing example.
As you said, your frameset code is some thing like following one
<frameset cols="20,*">
<frame id="left_frame" src="left.htm">
<frame id="right_frame" src="right.asp">
</frameset>
now you are posting your values from left frame right, and you want to load results in right frame, right
now try to use following <FORM> tag in your left frame page
<fomr id="frm" method="post" action="right.asp" target="right_frame">
now look at here, I am targeting frame action to right frame by using the right frame ID which I have declared in the frameset code.
I hope now you can go with it
all the best
|
|
|
|
|
I am trying to finish this csv import page, I can currently import files that are located in my C or D drive but if I try to import a file from my desktop I keep getting the error 'File Not Found'. Can anyone help me on how I can address the file from my desktop or network.
I am currently submitting the address from a file-field in a form
then using this code to read the file:
csv_to_import = replace(Request.Querystring("csvImport"),"'","''")
set fso = createobject("scripting.filesystemobject")
set dct = fso.opentextfile(Server.Mappath(csv_to_import))
If anyone can help would be greatly apprecieated.
regards,
JB
|
|
|
|
|
Hi there,
Currently, I have a C++ program running that communicated with
a communication device. I can execute commands and receive responses
via my C++ program to/from this device.
Now,i want to setup another version of this system with WEB BASED
capability. And i want to reuse back my existing resources which is
my C++ program. My questions are:
1. Is there any web technology that be able to integrate with C++ program?
2. Is it possible that ASP.net be able to do the job with combination of
c# or vb.net?
3. How about open source web environment which we can integrate with
C++ program?
4. How can a web browser always listen to the server's response if
there has changes going on from the communication device
without refreshing the whole web page?
Pls suggest a suitable architecture for my system in order to run in
both windows and web application with only 1 back-end engine.
Thanks.Pls as soon as possible.
|
|
|
|
|
1. Is it a dll or exe?
You can try to import the dll into your asp.net project, if it fails, you can write a wrapper and try via a exe or try via a dll that can be imported.
-> exe, you can call exe's and pass arguments to them.
2. I'm not sure what job you're talking about, but I think so. You can also use a general (winforms/services) dll from C#(Vb.net) or use webservices.
3. I'm not sure what you mean by this.
4. I'm thinking in the line of a service. The page will reload, but always the cached version until a flag or something is checked. Then it will refresh.
Hope it helps a bit, good luck.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
I know this is possible, but currently have no time to look into it, so hoping somebody out there will give me the answer
What Im wanting to do is to call a .dll from a .js
Say I've made some HelloWorld.dll with a
hello() system.Console.write("hello")
then in a .js want to call this function how do I do this??
function hello(){
var helloDll = new ActiveXObject("HelloWorld");
helloDll.hello();
}
Would this work if i put it in system32 folder or something..??
apreciate any help Spaceus
How terrible is wisdom when it brings no profit to the wise
|
|
|
|
|
I have a table, with the field name GroupId and GroupName as primary key. In a asp file, I connect to the database and execute an insert query. What if the record which i`m going to insert is already in the database. How do I catch the error?
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
|
How do we know whether the procedure insert the record or not? How do we catch the error. By the way, I`m using SQL Server 2000.
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
|
I don`t know whether ASP script can do that. But thanks anyway.
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
|
You can raise the error in the Stored Procedure
Like Colin Stated
<br />
CREATE PROCEDURE InsertGroupIdAndName <br />
@GroupId int, <br />
@groupName varchar(128)<br />
AS <br />
IF NOT EXISTS(SELECT GroupId,GroupName FORM GroupTable WHERE GroupId = @GroupId AND GroupName=@groupName)<br />
BEGIN <br />
INSERT GroupTable(GroupId, GroupName) <br />
VALUES (@GroupId, GroupName) <br />
END<br />
ELSE<br />
BEGIN <br />
RAISERROR (Group Name:%d with groupID %d Already exists',<br />
16, 1, @groupName , @GroupId)<br />
END<br />
GO
16,1 = severity , state
lookup proper syntax for RAISEERROR
Then Catch the error in the code. You do catch you errors right?
If using vbscript in the asp page....
<br />
On error resume next<br />
<br />
Database insert stuff...<br />
<br />
If err.number <> 0 then<br />
do something with err.number & err.description<br />
End IF
|
|
|
|
|
I read Nick Pirocanac's CoolButton composite control article and downloaded the code and have it running on my machine.
I created a simple composite control from scratch but the delegate is never called and the event never fires. I would appreciate another pair of eyes to point out what I am missing. Here is my code:
namespace TestCustUC
{
[ToolboxData("<{0}:WebCustomControl1 runat=server>")]
public class WebCustomControl1 : System.Web.UI.WebControls.WebControl
{
private Button butOK;
public event EventHandler Click;
protected override void CreateChildControls()
{
butOK = new Button();
butOK.Text = "OK";
butOK.Width = Unit.Pixel(50);
Controls.Add(butOK);
// Add handler for the OK button click postback event.
butOK.Click += new EventHandler(this.OnButOK_Click);
}
protected virtual void OnButOK_Click(object sender, EventArgs e)
{
if (Click != null)
{
Click(this, e);
}
}
}
}
Thanks for taking a look!
tim t
|
|
|
|
|
I had to study the examples in the SDK QuickStart (plus others I found online) quite a bit before I got my own custom control working just the way I wanted. I changed your code slightly in headers and declaration, and the event is now triggered; hope this at least helps get you started. Check out esp. info on implementing the INamingContainer interface and EnsureChildControls.
Regards,
-lp
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace TestCustUC
{
//[ToolboxData("<{0}:WebCustomControl1 runat=server>")]
public class WebCustomControl1 : Control, INamingContainer
{
private Button butOK;
public event EventHandler Click;
protected override void CreateChildControls()
{
butOK = new Button();
butOK.Text = "OK";
butOK.Width = Unit.Pixel(50);
Controls.Add(butOK);
// Add handler for the OK button click postback event.
butOK.Click += new EventHandler(this.OnButOK_Click);
}
protected /*virtual*/ void OnButOK_Click(object sender, EventArgs e)
{
if (Click != null)
{
Click(this, e);
}
}
}
}
|
|
|
|
|
epatton -- Thanks for taking the time to dig into my code and suggest changes and resources for more information!
I played with the code as well and got it to work following a different avenue. It appears that if you attribute the control class for design time support ([DefaultProperty("Text"),ToolboxData...), then you should follow through and implement, for example, the 'Text' property, using the call to 'EnsureChildControls'.
Sounds OK, huh? But the project still didn't run correctly!
This will sound like a bunch of hocus pocus, but the next thing i did was to re-arrange the Page and Register directives on the .aspx page that used the control, F5 and then everything ran perfectly!
I believe this forced VS to rebuild its in memory representation of the project, rewiring the project correctly and allowing it to run.
Anyway, that's my theory....
Thanks again for your help.
tim t
|
|
|
|
|
Hi frinds,
I am working on a project where i want to access the function of child web page
i know if u want to access the function of parent webpage
u can access it through window.opener or document.parent
But i want to access the function of child form
is there any code to access the child form or i can make the object of child form and then access the function.
thanks
(Hemant U. Mane)
|
|
|
|
|
when you open a new window using window.open(), you end up naming the window in the second argument.
window.open("bob.html", "bobWin", "width=500, height=500") for example creates a new window called bobWin. if you use that instead of "window", you should be able to point to anything there.
|
|
|
|
|
I tried to access the frames in an HTML page hosted by CWebBrowser2 control. Each time, I can query valid IOleContainer interface. However. When use EnumObjects function of this interface, an exception was thrown. Does anybody know what kind exception was thrown, what cause this problem?
I followed the instructions published in Microsoft web (How to get the WebBrowser object model of an HTML frame http://support.microsoft.com/default.aspx?id=196340) here are the codes:
I followed the instructions published in Microsoft web(How to get the WebBrowser object model of an HTML frame http://support.microsoft.com/default.aspx?id=196340) here are the codes:
// Get the IDispatch of the document
LPDISPATCH lpDisp = NULL;
lpDisp = m_webBrowser.GetDocument();
if (lpDisp)
{
IOleContainer* pContainer;
// Get the container
HRESULT hr = lpDisp->QueryInterface(IID_IOleContainer,
(void**)&pContainer);
lpDisp->Release();
if (FAILED(hr))
return hr;
IEnumUnknown* pEnumerator;
// Get an enumerator for the frames
hr = pContainer->EnumObjects(OLECONTF_EMBEDDINGS, &pEnumerator);
pContainer->Release();
|
|
|
|
|
Hi all, i am involved in writing an application at the moment that will require IIS to be installed to run. Is there a way that i can check to see if IIS has already been installed when i install my application? And if it has not already been installed i need to install it, although i think i can manage that bit
Cheers
Kev
|
|
|
|
|
Hi,
does anyone know how macromedia does the silent install of the flash player? do i need wise to automatically install some components? or can i use msi...if so how do i do it?
thanks
|
|
|
|
|
i know that other tools have a "/silent" option, where you can execute them with the silent commandline flag. i would presume that msi would have the same or similar...
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
blog: http://blog.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
Even though it is not defined on this page :p, the .msi install option you want is "/q". I'm sure there is a similar list of .msi install option flags somewhere on Microsoft's site...
John Hebert
Solvitur Ambulando
|
|
|
|