Click here to Skip to main content
15,891,409 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Ignore Repost Pin
kvsreedhar29-Aug-08 20:52
kvsreedhar29-Aug-08 20:52 
GeneralRe: Ignore Repost Pin
kenexcelon30-Aug-08 6:39
kenexcelon30-Aug-08 6:39 
GeneralRe: Ignore Repost Pin
kvsreedhar31-Aug-08 21:48
kvsreedhar31-Aug-08 21:48 
Question"Cannot apply indexing with [] to an expression of type 'System.Web.UI.WebControls.ListViewItem'" Pin
Member 387988129-Aug-08 17:56
Member 387988129-Aug-08 17:56 
AnswerWhy Repost? [modified] Pin
Manas Bhardwaj29-Aug-08 20:24
professionalManas Bhardwaj29-Aug-08 20:24 
AnswerRe: "Cannot apply indexing with [] to an expression of type 'System.Web.UI.WebControls.ListViewItem'" Pin
Manas Bhardwaj29-Aug-08 20:37
professionalManas Bhardwaj29-Aug-08 20:37 
QuestionWeird Issue Pin
kenexcelon29-Aug-08 17:51
kenexcelon29-Aug-08 17:51 
QuestionNeed Javascript logic for going to home page if history not present Pin
meeram39529-Aug-08 16:34
meeram39529-Aug-08 16:34 
In my aspx page, I have two tabs. I have written a javascript in such a way that if the user clicks on first tab, it will go to the previous page visited and that will be the required behaviour which is working perfectly fine.

Sometimes the previous history will not be available. In the sense, there is an option that the user can directly visit the page by making changes in the url without going to login and home page. In such a case, I need to show the user the home page. How will I do that? Can anybody provides any logic to me for this?

I have used the following JS code for going to previous page.
function UltraWebTabMain_Click(oWebTab,oTab,oEvent)
{
var wTab = igtab_getTabById("ctl00_TabControl1_UltraWebTab1");
if(wTab!=null)
{
var tab = wTab.getSelectedTab();
if(tab!=null)
{
var tabtext = tab.getText();
var FirstTab = 0;
if ((oTab.Key == "Search") && (tabtext != "Search"))
{
window.history.go(-1);
wTab.setSelectedIndex(FirstTab);

}

}
}
}

Can I do any modification to the above JS code so that the user should be directed to Home Page if history not present? Can anybody provide any help please?

Thanks
Meeram395Smile | :)

Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

AnswerRe: Need Javascript logic for going to home page if history not present Pin
Manas Bhardwaj29-Aug-08 20:43
professionalManas Bhardwaj29-Aug-08 20:43 
QuestionDynamically adding a control to a content page Pin
Cyberpulse29-Aug-08 14:41
Cyberpulse29-Aug-08 14:41 
QuestionReflection - GetValue question Pin
peacefulmember29-Aug-08 9:31
peacefulmember29-Aug-08 9:31 
QuestionConfigurarion error: Pin
salmonraju29-Aug-08 8:55
salmonraju29-Aug-08 8:55 
QuestionFile system object Pin
soorma29-Aug-08 6:22
soorma29-Aug-08 6:22 
AnswerRe: File system object Pin
Expert Coming29-Aug-08 8:07
Expert Coming29-Aug-08 8:07 
Questionprobleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:28
Rinki Mukheraji29-Aug-08 3:28 
AnswerRe: probleam concatenate string in asp.net Pin
Abhijit Jana29-Aug-08 3:31
professionalAbhijit Jana29-Aug-08 3:31 
GeneralRe: probleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:37
Rinki Mukheraji29-Aug-08 3:37 
GeneralRe: probleam concatenate string in asp.net Pin
Abhijit Jana29-Aug-08 3:50
professionalAbhijit Jana29-Aug-08 3:50 
GeneralRe: probleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:41
Rinki Mukheraji29-Aug-08 3:41 
GeneralRe: probleam concatenate string in asp.net Pin
Abhijit Jana29-Aug-08 3:55
professionalAbhijit Jana29-Aug-08 3:55 
AnswerRe: probleam concatenate string in asp.net Pin
Manas Bhardwaj29-Aug-08 3:44
professionalManas Bhardwaj29-Aug-08 3:44 
GeneralRe: probleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:48
Rinki Mukheraji29-Aug-08 3:48 
AnswerRe: probleam concatenate string in asp.net Pin
Abhishek Sur29-Aug-08 3:46
professionalAbhishek Sur29-Aug-08 3:46 
GeneralRe: probleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:51
Rinki Mukheraji29-Aug-08 3:51 
GeneralRe: probleam concatenate string in asp.net Pin
Abhijit Jana29-Aug-08 3:52
professionalAbhijit Jana29-Aug-08 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.