Click here to Skip to main content
15,895,370 members
Home / Discussions / Mobile
   

Mobile

 
QuestionRAS Client on WinCE mobil device Pin
kstoj28-Feb-06 5:40
kstoj28-Feb-06 5:40 
QuestionScreen Shot Pin
Polymorpher27-Feb-06 13:03
Polymorpher27-Feb-06 13:03 
AnswerRe: Screen Shot Pin
Jonas Larsson28-Feb-06 3:40
Jonas Larsson28-Feb-06 3:40 
AnswerRe: Screen Shot Pin
JimRoss2-May-06 12:06
JimRoss2-May-06 12:06 
QuestionContextMenu problem in Compact Framework? Pin
pmasknguyen27-Feb-06 6:02
pmasknguyen27-Feb-06 6:02 
Questionhandwriting recognition API Pin
hellrom26-Feb-06 6:08
hellrom26-Feb-06 6:08 
AnswerRe: handwriting recognition API Pin
Vasudevan Deepak Kumar1-Mar-06 22:46
Vasudevan Deepak Kumar1-Mar-06 22:46 
QuestionLogin Session ASP.NET Pin
oskardiazdeleon25-Feb-06 22:41
oskardiazdeleon25-Feb-06 22:41 
Here is my problem this script will not log me in all the time. Sometimes when the btnEnter is clicked it returns with no value. in this case redirect to login page. (I changed the redirect to something else internal but it doesnt redirect it just empties the field like a post back).

When i try the same exact script from a XP machine it will work. Anyone have any ideas??
This makes no sense to me I left from work thinking this was a bad script, because it didnt work on all envirements. then I VPN in and test from home on a XP os and it worked. I am not sure how to approach this issue.

private void btnEnter_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
try
{
string scm = "sp_Access_SEL @Login='" + this.txtLogin.Text + "', @Password='" + this.txtPassword.Text + "'";
InsertIdtoDB(scm);

}
catch(Exception ex)
{
this.lblAccess.Text = ex.Message;
}
if(this.lblPass.Text == "0")
{
StringBuilder url = new StringBuilder();
url.Append("Login.aspx");
Response.Redirect(url.ToString());
this.lblPass.Visible = true;

}
else
{
StringBuilder url = new StringBuilder();
url.Append("DataModification.aspx");
Session["name"]= this.txtLogin.Text;
Response.Redirect(url.ToString());

}
}

private void InsertIdtoDB(string scm)
{
try
{

string myConnectionString = (string)ConfigurationSettings.AppSettings["Connection_String"];
SqlConnection cn = new SqlConnection(myConnectionString);

SqlCommand cmd = new SqlCommand(scm);
cmd.Connection = cn;
cn.Open();
rdr = cmd.ExecuteReader(CommandBehavior.CloseConnection);
rdr.Read();
this.lblPass.Text = rdr["Access"].ToString();
rdr.Close();
cn.Close();


}
catch(Exception ex)
{
this.lblError.Text= ex.Message;
}
}

QuestionControl for Binding Text and Value using .NET Compact 2.0 Pin
VenkataRamana.Gali24-Feb-06 11:03
VenkataRamana.Gali24-Feb-06 11:03 
QuestionAccess Serial Port on PPC - NEWBY Pin
Embedded Tom24-Feb-06 9:02
Embedded Tom24-Feb-06 9:02 
QuestionCapturing Up and Down Button events in WinMobile5 Pin
paratracker23-Feb-06 8:15
paratracker23-Feb-06 8:15 
Questionhow can i connect database SQL server Pin
Your Code23-Feb-06 1:25
Your Code23-Feb-06 1:25 
Question"Run Program After Device Inactivity" (evc++) Pin
ZapMe122-Feb-06 8:20
ZapMe122-Feb-06 8:20 
AnswerRe: "Run Program After Device Inactivity" (evc++) Pin
Jonas Larsson22-Feb-06 23:55
Jonas Larsson22-Feb-06 23:55 
GeneralRe: "Run Program After Device Inactivity" (evc++) Pin
ZapMe123-Feb-06 12:44
ZapMe123-Feb-06 12:44 
QuestionDisable ActiveSync with evc++ code Pin
ZapMe122-Feb-06 8:14
ZapMe122-Feb-06 8:14 
AnswerRe: Disable ActiveSync with evc++ code Pin
Jonas Larsson22-Feb-06 21:52
Jonas Larsson22-Feb-06 21:52 
GeneralRe: Disable ActiveSync with evc++ code Pin
ZapMe123-Feb-06 12:41
ZapMe123-Feb-06 12:41 
GeneralRe: Disable ActiveSync with evc++ code Pin
ZapMe15-Mar-06 7:35
ZapMe15-Mar-06 7:35 
QuestionThemes Pin
Fernando A. Gomez F.21-Feb-06 11:32
Fernando A. Gomez F.21-Feb-06 11:32 
QuestionAsynchronous Thread Communication in Windows CE Mobile Pin
Jethro6321-Feb-06 4:09
Jethro6321-Feb-06 4:09 
AnswerRe: Asynchronous Thread Communication in Windows CE Mobile Pin
Brian R21-Feb-06 14:09
Brian R21-Feb-06 14:09 
QuestionWeb service Pin
Khaled Mahmoud20-Feb-06 4:01
Khaled Mahmoud20-Feb-06 4:01 
QuestionRemote access to windows/linux pcs from symbian OS PDA Pin
shunnyboy18-Feb-06 11:22
shunnyboy18-Feb-06 11:22 
QuestionAsynchronous Messaging Question Pin
Jethro6317-Feb-06 7:53
Jethro6317-Feb-06 7:53 

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.