I have tried to insert automatically a session("userID")into a table appointment when i insert an appointment
I make a login and i save userID into a session("userID"), when i insert an appointment i would like inserti automatically a userID that is in session("userID")
table
ID
Subject
Start
End
Recurrence-rule
Data_storage
UserID --------------------> table -> User -> column ->UserID
I use a sqldatasource to insert..
Code
SchedulerDefaulForm.ascx
I add a textbox -> <asp:TextBox runat="server" ID="UserIDText" Text='<%# Eval("UserID") %>'></asp:TextBox>
SchedulerDefaultForm.ascx.as
I tried to write this code but don't works
[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
public int UserID
{
get
{
return UserIDText.Text;
}
set
{
UserIDText.Text = Session("userID");
}
}
There is a method to save automatically a session("userID") into a table appointment when i insert?with a customadvancedtemplate is not easy..i have a problem to develop all that i want...
I make a login and i save userID into a session("userID"), when i insert an appointment i would like inserti automatically a userID that is in session("userID")
table
ID
Subject
Start
End
Recurrence-rule
Data_storage
UserID --------------------> table -> User -> column ->UserID
I use a sqldatasource to insert..
Code
SchedulerDefaulForm.ascx
I add a textbox -> <asp:TextBox runat="server" ID="UserIDText" Text='<%# Eval("UserID") %>'></asp:TextBox>
SchedulerDefaultForm.ascx.as
I tried to write this code but don't works
[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
public int UserID
{
get
{
return UserIDText.Text;
}
set
{
UserIDText.Text = Session("userID");
}
}
There is a method to save automatically a session("userID") into a table appointment when i insert?with a customadvancedtemplate is not easy..i have a problem to develop all that i want...