i am adding data in one page of aspx & i want to display
that stored data in new window how to do that in asp.net using c# And opening
the data of particular person or id how to do plz help.
i am also trying that on botton click geturl
protected void geturl(object sender, EventArgs e)
{
string strTxt= Admissiontxt.Text;
Response.Redirect("showregistration.aspx?pk=" + strTxt);
}
Loading

Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 25, 2012, 7:32 AM EDT
Request.Querystring["pk"]
Check this is correct answer if it helped
Shivanand ArurRank #920 · 2.3K reputationPosted Sep 25, 2012, 7:33 AM EDT
If you want to get the ID and want to re-direct to another page, then your code is perfect...
protected void geturl(object sender, EventArgs e)
{
Response.Redirect("showregistration.aspx?pk=" + Admissiontxt.Text);
}
If you want to open the person's information in a new popup then you can use the Ajax Popup Panel....Please elaborate your requirement properly :)
Dhanashri Patil33 reputationPosted Sep 26, 2012, 12:15 AM EDT
i have created simple page which sends d reminder but how to get that reminder notification after login perticular person.
Shivanand ArurRank #920 · 2.3K reputationPosted Sep 26, 2012, 12:38 AM EDT
In short, add the value in a Session Object in this way
Session["reminder"] = your value;
and then assign this value to the label or any other control you want to show on that page...
in this way... Suppose you want to show the value in a Label...
lblReminder.Text = Convert.ToString(Session["Reminder"]);
Its that simple!!! :)
Feel free to ask questions if you have any doubt!!!
Dhanashri Patil33 reputationPosted Sep 26, 2012, 12:45 AM EDT
i tell u wht i want there is two dept 1.admin 2.employee ,i am create aspx page in admin department which sends the reminder to employee..that page having fields
Name of employee
Date of reminder
reminder message
simple page page is there then i want that this reminder notification come on employee page that means e1 is there then e1 have 1 reminder if admin send 1, employee see the number of reminders as notification afterwords he can see that reminder ...but now i want to show that count on page of emploee after login..
Shivanand ArurRank #920 · 2.3K reputationPosted Sep 26, 2012, 1:05 AM EDT
Shivanand ArurRank #920 · 2.3K reputationPosted Sep 26, 2012, 1:14 AM EDT