Click here to Skip to main content
15,890,670 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to show excel file from data base which stored in binary form? Pin
Greg Chelstowski9-Mar-09 2:41
Greg Chelstowski9-Mar-09 2:41 
GeneralRe: how to show excel file from data base which stored in binary form? Pin
anujbanka17849-Mar-09 18:57
anujbanka17849-Mar-09 18:57 
QuestionError handling ..... Pin
Sasmi_Office9-Mar-09 0:32
Sasmi_Office9-Mar-09 0:32 
AnswerRe: Error handling ..... Pin
rakeshs3129-Mar-09 1:18
rakeshs3129-Mar-09 1:18 
Questionpopulate textboxes from database.. [modified] Pin
scar_face9-Mar-09 0:23
scar_face9-Mar-09 0:23 
AnswerRe: populate textboxes from database.. Pin
Abhijit Jana9-Mar-09 4:50
professionalAbhijit Jana9-Mar-09 4:50 
GeneralRe: populate textboxes from database.. Pin
scar_face9-Mar-09 19:01
scar_face9-Mar-09 19:01 
Question[newbie] Anonymous Identification Pin
jon-808-Mar-09 23:43
professionaljon-808-Mar-09 23:43 
I'm trying to work with anonymous identification, however the label is not displaying any AnonymousID

Label5.Text = Request.AnonymousID;

Default.aspx.cs
public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Label5.Text = Request.AnonymousID;
    }
    protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
    {
        //Code goes here
    }

    public void AnonymousIdentification_Creating(object sender,
    AnonymousIDentificationEventArgs e)
    {
        e.AnonymousID = "Bubbles " + DateTime.Now;
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        if (Page.User.Identity.IsAuthenticated == true)
        {
            Profile.FirstName = txtFirstName.Text;
            Profile.Surname = txtSurname.Text;
            Profile.Age = txtAge.Text;
            Profile.Member = DropDownList1.SelectedItem.Text;
            Profile.LastVisited = DateTime.Now.ToString();

            Label4.Text = "Stored information includes:<p>" + "First name: " + Profile.FirstName + "<br>Last name: " + Profile.Surname + "<br>Age: " + Profile.Age + "<br>Member: " + Profile.Member + "<br>Last visited: " + Profile.LastVisited;

        }
        else
        {
            Label4.Text = "You must be authenticated!";
            
        }
    }
}

web.config
----------
...
<anonymousidentification enabled="true" cookieless="AutoDetect" />
    <profile>
      <properties>
        <add name="FirstName" />
        <add name="Surname" />
        <add name="LastVisited" allowanonymous="true" /> //required?
        <add name="Age" />
        <add name="Member" />
      </properties>
    </profile>
...


</br></br></br></br></p>



Error:

Error 1 The type or namespace name 'AnonymousIDentificationEventArgs' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Administrator\Documents\Visual Studio 2008\WebSites\TestWebSite\Default.aspx.cs 27 5 C:\...\TestWebSite\

Jon

AnswerRe: [newbie] Anonymous Identification Pin
Christian Graus8-Mar-09 23:48
protectorChristian Graus8-Mar-09 23:48 
GeneralRe: [newbie] Anonymous Identification Pin
jon-809-Mar-09 0:03
professionaljon-809-Mar-09 0:03 
QuestionHello....no reply for my question.... Pin
Krishna Varadharajan8-Mar-09 22:35
Krishna Varadharajan8-Mar-09 22:35 
AnswerRe: Hello....no reply for my question.... Pin
Christian Graus8-Mar-09 23:45
protectorChristian Graus8-Mar-09 23:45 
AnswerRe: Hello....no reply for my question.... Pin
Abhishek Sur8-Mar-09 23:49
professionalAbhishek Sur8-Mar-09 23:49 
AnswerRe: Hello....no reply for my question.... Pin
fred_10-Mar-09 8:53
fred_10-Mar-09 8:53 
Questionthrough gridview update table and also save value in onther table Pin
prateekfgiet8-Mar-09 21:38
prateekfgiet8-Mar-09 21:38 
AnswerRe: gridview editing Pin
Abhijit Jana8-Mar-09 21:43
professionalAbhijit Jana8-Mar-09 21:43 
GeneralRe: gridview editing Pin
prateekfgiet8-Mar-09 21:54
prateekfgiet8-Mar-09 21:54 
GeneralRe: gridview editing Pin
N a v a n e e t h8-Mar-09 21:59
N a v a n e e t h8-Mar-09 21:59 
GeneralRe: gridview editing Pin
prateekfgiet8-Mar-09 22:13
prateekfgiet8-Mar-09 22:13 
GeneralRe: gridview editing Pin
Abhijit Jana8-Mar-09 22:08
professionalAbhijit Jana8-Mar-09 22:08 
GeneralRe: gridview editing Pin
prateekfgiet8-Mar-09 22:11
prateekfgiet8-Mar-09 22:11 
AnswerRe: gridview editing Pin
N a v a n e e t h8-Mar-09 21:55
N a v a n e e t h8-Mar-09 21:55 
GeneralRe: gridview editing Pin
prateekfgiet8-Mar-09 22:09
prateekfgiet8-Mar-09 22:09 
QuestionImage is not displaying Pin
BalasubramanianK8-Mar-09 21:28
BalasubramanianK8-Mar-09 21:28 
AnswerRe: Image is not displaying Pin
Jack Li8-Mar-09 22:05
Jack Li8-Mar-09 22:05 

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.