Click here to Skip to main content
16,004,833 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalarrays with for loop Pin
rameshdontagani7-Dec-07 18:31
rameshdontagani7-Dec-07 18:31 
GeneralRe: arrays with for loop Pin
Michael Sync7-Dec-07 19:39
Michael Sync7-Dec-07 19:39 
Generalsession is not going to next page...help me Pin
sowvin7-Dec-07 17:30
sowvin7-Dec-07 17:30 
GeneralRe: session is not going to next page...help me Pin
Michael Sync7-Dec-07 17:43
Michael Sync7-Dec-07 17:43 
GeneralRe: session is not going to next page...help me Pin
sowvin8-Dec-07 3:26
sowvin8-Dec-07 3:26 
GeneralRe: session is not going to next page...help me Pin
sowvin8-Dec-07 3:37
sowvin8-Dec-07 3:37 
GeneralRe: session is not going to next page...help me Pin
Michael Sync8-Dec-07 3:41
Michael Sync8-Dec-07 3:41 
GeneralException pbm in Sql Pin
SreejithAchutan7-Dec-07 17:12
SreejithAchutan7-Dec-07 17:12 
//Getting the UnitId
public string GetUnitId(string UserId)
{
string sqlstatement;
try
{
sqlstatement = "SELECT UnitId FROM department_Members WHERE UserId='"+UserId+"'";
return dbtObj.GetColumnValue(sqlstatement, "UnitId").ToString();
}
finally
{
}
}
//Checking The Unitid

protected void BindRblDftUnit()
{
MembershipUser MU;
string UserId;
MU = Membership.GetUser();
UserId = MU.ProviderUserKey.ToString();
string dUnitId = asObj.GetUnitId(UserId);
string dRoleId = asObj.GetRoleId(UserId);
if (dUnitId != null && dRoleId != null)
{
RblDefaultUnit.Items.Add(new ListItem("Sreejith", "Sreejith"));
RblDefaultUnit.Items.Add(new ListItem("Alex", "Alex"));
}
}
Yesterday i post this query.First of all sorry to post it agin.


The above code is to get the unit id checking with the userid.That means if the user login had the particular unitid.I want to chk that.If the use had login had no unit id thn an exception in sql is displayed.The exception is object reference is not set.How i overcome it..Laos i attach the checking functinality itself with this mail.Please help me to overcome the pbm....Thanks
GeneralRe: Exception pbm in Sql Pin
Gamzun8-Dec-07 9:36
Gamzun8-Dec-07 9:36 
GeneralASP page that stacks on status loading Pin
deus7897-Dec-07 15:07
deus7897-Dec-07 15:07 
QuestionAccess files from remote machine Pin
DotNetXenon7-Dec-07 9:36
DotNetXenon7-Dec-07 9:36 
GeneralRe: Access files from remote machine Pin
DotNetXenon7-Dec-07 9:54
DotNetXenon7-Dec-07 9:54 
Generalonblur i cant get result Pin
Ajeet mittal7-Dec-07 9:35
Ajeet mittal7-Dec-07 9:35 
GeneralRe: onblur i cant get result Pin
pmarfleet7-Dec-07 10:51
pmarfleet7-Dec-07 10:51 
GeneralRe: onblur i cant get result Pin
Ajeet mittal7-Dec-07 11:53
Ajeet mittal7-Dec-07 11:53 
QuestionPlease help - MultiView/View with MenuItems and GridViews Pin
Member 47002257-Dec-07 8:35
Member 47002257-Dec-07 8:35 
Generalusing a class in another webform Pin
nigel20007-Dec-07 6:48
nigel20007-Dec-07 6:48 
GeneralRe: using a class in another webform Pin
Michael Sync7-Dec-07 7:06
Michael Sync7-Dec-07 7:06 
GeneralRe: using a class in another webform Pin
J$7-Dec-07 7:12
J$7-Dec-07 7:12 
GeneralRe: using a class in another webform Pin
nigel20007-Dec-07 8:25
nigel20007-Dec-07 8:25 
QuestionHow To Select Only One Radio Button in GridView Control in C# Pin
mrgaddam7-Dec-07 4:41
mrgaddam7-Dec-07 4:41 
AnswerRe: How To Select Only One Radio Button in GridView Control in C# Pin
Michael Sync7-Dec-07 6:03
Michael Sync7-Dec-07 6:03 
GeneralRe: How To Select Only One Radio Button in GridView Control in C# Pin
Michael Sync7-Dec-07 6:05
Michael Sync7-Dec-07 6:05 
GeneralException when calling web service: The underlying connection was closed Pin
Talal Sultan7-Dec-07 3:49
Talal Sultan7-Dec-07 3:49 
GeneralJavascript Error Pin
M_Menon7-Dec-07 3:43
M_Menon7-Dec-07 3:43 

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.