|
<a href="#" onclick="javascript:popWin = window.open('page2.htm')">Open Window</a>
<a href="#" onclick="javascript:ShowDiv('First')">link1</a>
<a href="#" onclick="javascript:ShowDiv('Second')">link2</a>
<a href="#" onclick="javascript:if(popWin != null)if(!popWin.closed)popWin.close();">Close PopUp</a>
<script>
var popWin;
function ShowDiv(objId)
{
if(popWin == null)
{
alert('Please Open Your PopUp Firstly');
return;
}
popWinObject = popWin.document.getElementById(objId);
if(popWinObject == null)
{
alert('Object Dos Not Exist In PopUp.');
return;
}
if(popWinObject.style.display == "none")
popWinObject.style.display = "";
else
popWinObject.style.display = "none";
return;
}
</script>
and in page2.htm write:
<div id="First"> First Panel </div>
<div id="Second"> Second Panel </div>
We Can Do Anything, If We Want It
|
|
|
|
|
Hi i dont want any popup window on here...,
first,just link1 and link2 button want to display...,
if i click that "link1" then in another html page want to show link1 to link4 else if i click "link2" then link5 to link8 want to display how to do that?????,
Plz explain with codes..........
Plz hlp me..............
Magi
|
|
|
|
|
if you want to do any operation in two seprated pages, those SessionId's must be equal for pages.
if you want two control any object of page2, you must opened than page from first page.
We Can Do Anything, If We Want It
|
|
|
|
|
also, are you can say me your codes for fint that errors?
We Can Do Anything, If We Want It
|
|
|
|
|
Ok thank u...
keep in touch...
Magi
|
|
|
|
|
I have an ASP page, from which I need to download a file. Although i know the code to download the file, I am not able to download the file using the Physical path of the file.
E.g: If the file is saved in C:\backup\1.xls.
I know the path of the path file. Will I be able to download the file using the physical path.
|
|
|
|
|
I guess... your file is outside the web virtual directory
<< >>
|
|
|
|
|
Yes i want to download a file outside the Virtual directory. If it is not possible, then what if i have more than one virtual directory and files are present in it.
|
|
|
|
|
if so,...just give the url which point to the file as normal..
<< >>
|
|
|
|
|
Please give an example. If i the give the URL also I am not able to download.
|
|
|
|
|
What do you mean "not able to download"? What error? the file does not appear to user?
<< >>
|
|
|
|
|
I'm having a problem with the ajax calendar extender.
I have created tabs using multi view control.
In the first tab I have calendar extender control and the second tab one label for indication.
Once you select the date on the first tab then navigate to the next tab, working fine, but once u press the first tab from the second tab again then I'm getting an error.
I'm attaching a sample application for your further reference.
Even I'm trying to solve the issue.
Awaiting for your valuable reply.
Nagarajan R.J.
|
|
|
|
|
What Error you are getting?
Regards,
Satips.
|
|
|
|
|
Is it a good idea to have my Data Access Layer on Web Service?
What I mean is, All communication of different tier with the underlying database must all be done using XML web sevices.
What are the Cons and Pros of my idea?
Thanks in Advance.
|
|
|
|
|
hi I am new in the asp.net world I keep to increase performance of my web site.
I need to know the number of user that use the website.
Ex- I want 60 user use the website at the same time if other user come the website Ignor him.
than you.
wael baidousee ;);P sigh: :->
wpn_soft
|
|
|
|
|
I guess you can write events in your global.asax file.
Create an application variable so that the variable is incremented whenever the application is used by various users.
After the increment in your event (application start/application begin request) check for the variables's value if more than 60 exit from the application.
Just an idea, hope it works!
Gautham
|
|
|
|
|
I have created a master page and I have contentplaceholder on that
master page. I have a aspx page
and I select that aspx page with master page. Later on I add one more
contentplaceholder in master page but my aspx page doesn't show that
second contentpageholder in html because I already attach that aspx
page to master page before adding secondplaceholder. How can I solve
this problem.
Thanks.
hahii
|
|
|
|
|
hahii wrote: How can I solve
this problem.
By using the keyboard to type
only two letters away from being an asset
|
|
|
|
|
Actually this is a good question and it kept me going for a few minutes till I worked it out,
Open up the ASPX page in the designer - you will see your content in ContentPlaceHolder1 (if you didn't change the name from the default) and you will also see the ContentPlaceHolder2 - but this will be a different colour. If you right click on the send ContentPlaceHolder you will get a context menu item which says - create content. Click this and low and behold your ASPX page now has a link to the send place holder as well....
Mark.
|
|
|
|
|
hello , I am learning ASP.NET I have one problem .... when in my web project I click on add new item -> sql database ..... it gives me message "Generating User Instance in SQL Server is disebled . use sp_configure 'user instance enabled' to generate user instace..... I dont know what to do and how to do. Please help me in solveing this problem.I am using visual web developer 2005 and sql server 2005 express.
thanks
ciacia
|
|
|
|
|
Howdy
I don't think you want to add a new sql server database. You probably want to add an existing database server to the project.
View the Server Explorer (View > Server Explorer), right click database connections > add connection. Don't forget that the connection string for SQLServer Express is slightly different to SQLServer. The host should be localhost\sqlexpress
If you just want a connection string to a server then just add one to the web.config
You can also drag a SQLDataSource onto a webpage to get a wizard that will help you go through the process (I think)
Cheers
Q
|
|
|
|
|
I want to make a simple control panel, i have two web pages and in one page i want to put a textbox and one button. When i write some text and click button i want send that text to label which in another aspx page.
I try to do it with freetextbox because i need to put also an image but i couldn't do it.
Thank you for all friend who will try to help me..
|
|
|
|
|
|
I created a dataset with several tables, can I keep this in Cache for the lifetime of the Web Application, do I need a Web Service to do so? Would there be a way to automatically Save the changed or new records in the Cache Object To the Database?
is Cache the only way to keep an object persistent throughout the entire web app and only on the server side?
Can someone point me in the right direction? thanks!
|
|
|
|
|
If this is something that the whole application is going to use that you should probably put it in the Application object. The application object will not expire like the cache will. You can retrieve the dataset from the application object any time you want do whatever you need to do with it and then put it back into the application object.
Hope that helps.
Ben
|
|
|
|