|
Dinesh ! there is no problem with popup blocker. I want to give a back button functionality on popup window same as normal browser window provides.
|
|
|
|
|
I'm sorry, I got it the otherway around!
Do you get any specific error message on IE? What is the server response?
Might sound silly, but check if there are pages in history. Might be there is nothing in history when u tried from IE.
|
|
|
|
|
Dinesh there is no such issue i just want to provide Back Button on popup window same as normal window has
|
|
|
|
|
The point is that the history maintenance is dependent on the browser. As far as I know, IE only maintains the history from the moment the pop-up window is opened.
So, say if you opened your site on the main window and assume this is your page flow
[Main Window] Page1 > Page2 > Page3 > Page4 > [Pop-up] Page5 > Page6
Now from the pop-up you can go back only till Page5. Page1-4 are not accessible from the pop-up.
I think FireFox maintains history differently.
|
|
|
|
|
My application doesn;t have any concern with Page1-4. the concern is if i m on Pag6 and i click Back button the window should take me to the Page5 . which is not happening
|
|
|
|
|
mm, that's interesting! I've never tried putting a back button on a pop-up, so I can't say why it is not happening. BTW, which version of IE r u using? did u try older/newer versions, other machines?
|
|
|
|
|
|
|
ya abhishek i have posted it there too because i didn't get any answer here
|
|
|
|
|
Can you tell me, are you opening every page in a new window ?
|
|
|
|
|
the scenario is like this.
i have a like on a page that opens up a popup window with another link when i click on that link another page opens in the same popup window with a back button. when i m clicking on back button it doesn't take me to the previous page.
(Normal Window)Page1->(PopupWindow)Page2->Page3(with Back Button). Now when i m clicking on the back button present on Page3 it doesn't take me to the Page2.
I have checked the window.history.length it comes zero.
|
|
|
|
|
sam# wrote: I have checked the window.history.length it comes zero.
Actually there is no way to add anything in browser cache. Even if you do, it will not work. Actually it automatically puts to browser history each page when navigates.
To put in browser history, always use <a href=""> or use location.href
dont do it using javascript.
Also if you dont want the browser to hold the current page, you need to use history.replace with the same url so that it replaces the current page with the one in history.
In your case, just change the control which navigates to the 2nd page to anchor(<a>) and I think it will start working.
|
|
|
|
|
I want to recursively list all the directories and sub directiories in c drive and organize it in treeview control can any body help me.... or else which data structure i have to use so that i can easily assign it to treview.. please help me some code snipet....
Thanks in Advance
|
|
|
|
|
Pardhu2 wrote: I want to recursively list all the directories and sub directiories in c drive and organize it in treeview control can any body help me...
Is this is related with ASP.NET ? if yes what you are going to do with this ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
|
You can use the Directory and DirectoryInfo classes to iterate through the contents of a folder and its sub folders.
Be warned that you'll only be able to access the server's file system and not the clients' and it is not a good practice to show the server's file system on a web application. It is also a very high security risk.
|
|
|
|
|
How to Open certain Folder when a node is clicked in treeiew...
try
{
TreeNode treenode = new TreeNode();
treenode.CollapseAll();
treenode.Text = currentDirectory.Name;
treenode.NavigateUrl = currentDirectory.Name;***************
parent.ChildNodes.Add(treenode);
SubFolders(currentDirectory, treenode);
}
catch (UnauthorizedAccessException uae)
{
TreeNode t=new TreeNode();
t.Text="Unable to Access";
parent.ChildNodes.Add(t);
}
********* indicates jump to that folder? but ho to jump from web page to windows.....
|
|
|
|
|
Hi,
I am working Asp.net gridview. I bind data to this gridview dynamically. I have 5 columns in my gridview. Now I want to display a new column in the gridview which displays the difference of the 3rd and 4th columns i.e.,(Column6= Column3-Column4). Can we do this directly in a gridview to display this result.
If anyone have any idea to do this please reply me.
Thanks in advance.
|
|
|
|
|
Have you checked the last ref link that I have provided to you. You need to do similar to achieve this.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
This can be done on the datasource and on the gridview.
DataSource - Just add another column to your grid view and store the calculated value for each row. Do this before you bind the data.
GridView - Just add a template column and use the expression evaluator <%# %> to calculate and bind the data at runtime.
|
|
|
|
|
Apart from other two solution posted,
you can also do it in RowDataBound Event.
code will go something like this:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.Header)
{
TableHeaderCell cell = new TableHeaderCell();
cell.Text = "Column 6 Name";
e.Row.Cells.Add(cell);
}
else if (e.Row.RowType == DataControlRowType.DataRow)
{
TableCell cell = new TableCell();
decimal result = Convert.ToDecimal(e.Row.Cells[2].Text) - Convert.ToDecimal(e.Row.Cells[3].Text);
cell.Text = result.ToString();
e.Row.Cells.Add(cell);
}
else
{
TableCell cell = new TableCell();
e.Row.Cells.Add(cell);
}
}
|
|
|
|
|
Hi,
I am new with ASP.NET. I want to develop a news website. And I want to pick the information from other authentic news websites in different frame of my websites.
please let me know how can do this.
Regards,
|
|
|
|
|
|
What I have understood about RSS, it allow you to share your information for other websites.
But I want to capture the information displayed on other websites???
|
|
|
|