CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 how i get user name from session in ASP.NET with C# ?

Print topic Send  topic

Author Message
username

Posts: 24
Posted: 09/04/2007, 12:09 AM

i type in BeforeBuildInsert
item.task_user_id_assign_by.SetValue(System.Web.HttpContext.Current.Session.Remove("UserID"),"");

but i have error
Error:
taskDataProvider.cs(345,3): error CS1502: The best overloaded method match for 'task.Data.FieldBase.SetValue(object, string)' has some invalid arguments
Error:
taskDataProvider.cs(345,40): error CS1503: Argument '1': cannot convert from 'void' to 'object'


View profile  Send private message
username

Posts: 24
Posted: 09/04/2007, 12:20 AM

I am using CodeCharge 3.2 ASP.NET C#. Code . :-(
View profile  Send private message
username

Posts: 24
Posted: 09/04/2007, 12:35 AM

.net codecharge is very poor but php codecharge is very strong.:-@
View profile  Send private message
username

Posts: 24
Posted: 09/04/2007, 4:52 AM

bingo


int userid = (int)System.Web.HttpContext.Current.Session["UserID"];
item.task_user_id_assign_by.SetValue(userid,"0");
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.