I have attached a comment table in Microsoft's personal starter site database. In details.aspx, i can enter comment on the photo that gets displayed. However, after I click submit button, the page goes back to the previously viewed photo that I have selected
with the pager setting.
What should I do so that after I hit submit button, the page loads and stays in the same page and does not switches to next/prev photo?
I solved the problem.
What is the project scenario?
I added a comment table in Microsoft's Personal Album Database. When user selects a photo from the
album, and insert comment, the comment would appear in the same page where that currently
selected photo is getting displayed.
What was the problem?
If the user selects a photo, say photo # 8, and enters comment, the scenario works fine; however, if the user selects next/prev photo and enters comment, the originally selected photo page appears ( where the currently selected photo page should appear)
Member
5 Points
51 Posts
ASP .NET FormView Question
Jan 12, 2011 08:23 PM|ashley2009|LINK
Hello, I have a question. Please see the attached YouTube video that gives the demonstration of my problem.
http://www.youtube.com/watch?v=3D5kkHEhjmg
The project:
I have attached a comment table in Microsoft's personal starter site database. In details.aspx, i can enter comment on the photo that gets displayed. However, after I click submit button, the page goes back to the previously viewed photo that I have selected with the pager setting.
What should I do so that after I hit submit button, the page loads and stays in the same page and does not switches to next/prev photo?
The details.aspx, photos.aspx are attached.
ASP .net .NET FormView
Member
5 Points
51 Posts
Re: ASP .NET FormView Question
Jan 13, 2011 01:17 AM|ashley2009|LINK
Hello,
ng(); //get the current page index, that is showing the photo/localhost:64570/PersonalWebSiteCSharp/Details.aspx?AlbumID=6&Page= " + txt);
I solved the problem.
What is the project scenario?
I added a comment table in Microsoft's Personal Album Database. When user selects a photo from the
album, and insert comment, the comment would appear in the same page where that currently
selected photo is getting displayed.
What was the problem?
If the user selects a photo, say photo # 8, and enters comment, the scenario works fine; however, if the user selects next/prev photo and enters comment, the originally selected photo page appears ( where the currently selected photo page should appear)
What is the solution?
In button click event, I added
string txt = FormView1.PageIndex.ToStri
Then, later, I added
Response.Redirect(@"http:/
The details.aspx is attached which has the solution inside.