Hello,
I was researching if I would be able to do a quick search using an UrlPostback from a MasterPage and I came across an odd behavior.
My master page contains a textbox and an asp.net button with postbackurl to a results page
Then I added the code below every page including the search results page which use the master page:
protected void Page_Load(object sender, EventArgs e)
{
if (this.IsPostBack) { }
}
I added this code so I can add a breakpoint in the if statement.
I notice that no matter which page I was in and I clicked on the asp.net button with the postbackurl. ASP.NET would post to the current page I was in and then it would also post to the page the postbackurl was directed to go. (Noticed this because of the breakpoints in the if statements)
Is this ASP.NET normal behavior (Doesn’t not make sense)? Anyone, has come across this problem? Am I missing something?
I really doubt this is the issue but I’m using VS SP Beta 1. If someone can try it that does not have the VS SP Beta 1 and let me know the results. I’ll be grateful.
Thank you in advance.
H
I was researching if I would be able to do a quick search using an UrlPostback from a MasterPage and I came across an odd behavior.
My master page contains a textbox and an asp.net button with postbackurl to a results page
Then I added the code below every page including the search results page which use the master page:
protected void Page_Load(object sender, EventArgs e)
{
if (this.IsPostBack) { }
}
I added this code so I can add a breakpoint in the if statement.
I notice that no matter which page I was in and I clicked on the asp.net button with the postbackurl. ASP.NET would post to the current page I was in and then it would also post to the page the postbackurl was directed to go. (Noticed this because of the breakpoints in the if statements)
Is this ASP.NET normal behavior (Doesn’t not make sense)? Anyone, has come across this problem? Am I missing something?
I really doubt this is the issue but I’m using VS SP Beta 1. If someone can try it that does not have the VS SP Beta 1 and let me know the results. I’ll be grateful.
Thank you in advance.
H