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
Shivanand ArurPosted Sep 26, 2012, 5:14 AM
Shivanand ArurPosted Sep 26, 2012, 5:05 AM
Dhanashri PatilPosted Sep 26, 2012, 4:45 AM
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 ArurPosted Sep 26, 2012, 4:38 AM
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 PatilPosted Sep 26, 2012, 4:15 AM
i have created simple page which sends d reminder but how to get that reminder notification after login perticular person.
Shivanand ArurPosted Sep 25, 2012, 11:33 AM
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 :)
Sukesh MarlaPosted Sep 25, 2012, 11:32 AM
Request.Querystring["pk"]
Check this is correct answer if it helped