|
Have you tried iframe? Just try iframe.i guess it'll help you.
|
|
|
|
|
Thats perfect, thanks...
I'm a newb, so I've never heard of that one. Works a treat. Thank you very much.
oooo, the Jedi's will feel this one....
|
|
|
|
|
Glad to see it worked.
|
|
|
|
|
|
In addition to IFrame, look at inc. These are text files that may or may not include HTML mark up and inserted into the page using the old #insert directive.
Various manuals at my company are available this way. Each section exists as a separate formatted text file with an .inc extension. The user can retrieve single sections and the text is embedded in the page. The user can also retrieve the entire manual, which includes every section. With this technique, there is a single source for the text (which eliminates discrepancies where one page was changed an another was not), it can be reused in a variety of situations, and the use of simple mark up rather than full HTML means that managing the texts can be done by the doc writers and not IT.
|
|
|
|
|
hey, cant find how to solve this thing,
i have a test project with the following directory structure:
/root/pages/default.aspx
/root/App_LocalResources/default.aspx.resx
/root/App_LocalResources/default.aspx.fr.resx
using the following simple code:
<br />
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestLocale._Default" UICulture="auto:en-US" Culture="auto:en-US"%><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head runat="server"><br />
<title></title><br />
</head><br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
<asp:Label ID="Label1" runat="server" Text="Label" meta:resourceKey="Label1"></asp:Label><br />
</div><br />
</form><br />
</body><br />
</html><br />
at the resx file i have simple mapping for Label1.Text ,
The problem: for ssome reason ASP.NET can't find local resources when my default page is not at the root folder in the project,
when i place the default.aspx in the root project the localization works, when i place the default.aspx inside a folder it doesnt work
i have been searching everywhere and couldnt find how to make it work when using folders.
any kind of help would help!
thank you.
Net
|
|
|
|
|
|
The App_LocalResources folder needs to be in same folder as the aspx file.
/root/pages/App_LocalResources/Default.aspx.resx
/root/pages/Default.aspx
Hope this helps
Martin
|
|
|
|
|
Hi
I am using Page.ClientScript.RegisterStartupScript on my page but its not working.My clientside javascript function is not getting called.
Pls help me.
|
|
|
|
|
Are you using Ajax on you page?
|
|
|
|
|
|
Page.ClientScript does not work when we use ajax on our page.Use
ScriptManager.RegisterStartupScript instead. it'll work
|
|
|
|
|
Thanks. It worked
|
|
|
|
|
Java script is case sensitive, your defined function and calling function should be same
Farogh Haider
Web developer
|
|
|
|
|
Hello All,
I am generating one tab delimited text file.
I need to copy the contents of this file into one excel file's sheet.
Please help.
Thanks in advance.
Regards,
Swati.
|
|
|
|
|
|
Hi,
This is from chandrakanth. working on dotnet.
Actually i got one problem with javascript in button click event.
i have one Datalist control. In that Datalist control i have one Linkbutton. I am trying to find the ID of Link button ID through Javascript.
But it is giving error here
"obj.substring(0, 60);"
--Object does not support this property";
Please see the below my Javascript code which i am using.
---------------------------------------------------------------
'sidebar' -- divtag id
function SwitchMenus()
{
var divObj = document.getElementById('sidebar');
var objdatalist = document.getElementById('<%#dlstToDoList.ClientID%>;').childNodes[0];
var obj = objdatalist.getElementsByTagName('ctl00_dlstToDoList_ctl00_lnkTodo'); -- Link button id
if (divObj.style.width == "22%")
{
divObj.style.width = "26%";
divObj.align = "left";
objdatalist.style.width = "100%";
obj.substring(0, 60);
}
else {
divObj.style.width = "22%";
divObj.align = "left";
obj.substring(0,40);
}
}
-------------------------------------------------------------
----------------------------------------------------------------
|
|
|
|
|
chandragaddam wrote: obj.substring(0, 60);
what are you trying to do here?
you are trying to use substring() method with an object, so it wont work .this function work with strings. make the changes accordingly
|
|
|
|
|
chandragaddam wrote: "obj.substring(0, 60);"
As per your query , you have problem in the above line.
What you have written is bound to get an error like that. Because, "obj" is a reference to a control. And as control does not have substring method in javascript you get this error. You should call obj.innerText or obj.value which ever is applicable in your case( depending upon what the control is rendered in your browser for your code) then call the substring method.
Thanks,
Arindam D Tewary
|
|
|
|
|
Hi im using ajax modal popupextender.. panel consisting of a captcha image,textbox and a button control.. How can i display error message in modal popup itself. if the condition is false i.e, if textbox value doesnt match with captcha...
|
|
|
|
|
Have a label to show the error message.Initially hide it, and show the when there is an error..
Are you asking something else?
|
|
|
|
|
once i click on the button in modal up it disappears whether textbox value is matches or not... I want to display in modal pop up itself if textbox value is false....
|
|
|
|
|
there must be postback on button click,after postback the modelpop will hide.Do one thing ,Attach a clientside event, validate the request if there is an error, show from javascript itself. and if there is no error continue with postback.
|
|
|
|
|
You can also solve this "issue" by calling the Show Method of the extender again within you button click-event (when you're also setting your error-message). This prevents the modal-popup from hiding.
Example:
if (error)
{
lblError.Text ="Something is wrong";
myPopupExtender.Show();
}
else
{
}
Michael
|
|
|
|
|
Hi.
On a button click i'm opening a page with showModalDialog,
depending on the value returned from modal dialog,
i want to clear contents of asp.net controls.
These controls are read only controls.
But i'm unable to clear the controls.
Please guide me how to resolve this issue.
Thanks in Advance.
|
|
|
|