1
Answer

Hardware Requirements For iPhone Application Development

Photo of Manish Tewatia

Manish Tewatia

13y
2.3k
1
Hello All,

I want to start iPhone Application Development, can somebody tell me what is the minimum hardware requirements for iPhone Application Development..?

Answers (1)

1
Photo of Suraj Kumar
NA 1.3k 14.4k 7y
Hello Vishal,
As you are going to add key as below it will give error
<add key="users" value="rama","sitha" ,"ravi"/>
Change it to
<add key="users" value="rama,sitha ,ravi"/>
No double quote on every value as you have to add it as a single string with comma separated. And you can split it by Split method and put it in an array. And you need to work on that array by index.
Accepted
1
Photo of Vishal Gundage
NA 134 4.6k 7y
ok i will add like that
<add key="users" value="rama","sitha" ,"ravi"/>in value this is my all system usernames
<add key="password" value="123","456"/> something i add is my system password
now i want to know with help of this username and password all computers system information with help of wmi i used below code 
 
 
0
Photo of Vishal Gundage
NA 134 4.6k 7y
In ur code foreach for users and password what code i should enter in console application
because my aim is to get multiple system information with help of storing this mutiple sytsem username and password in app.config file access each key and give me system information with the help of WMI .
Can u give me code for That..I trying But getting something wrong here.
Thankyou!
0
Photo of Suraj Kumar
NA 1.3k 14.4k 7y

Attachment Test123456.rar

Hello Vishal,
 
You can achieve by doing in the following way.
 
First declare the key name and its values with comma separated as below
 
<configuration>
<appSettings>
<add key="user1" value="user1,user2,user3,user4,user5"/>
<add key="pwd1" value="pwd1,pwd2,pwd3,pwd4,pwd5"/>
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
</configuration>
 
Now you can validate with user name and password as below on button click
 
protected void btnLogin_Click(object sender, EventArgs e)
{
string userName = ConfigurationManager.AppSettings["user1"];
string password = ConfigurationManager.AppSettings["pwd1"];
string[] users = userName.Split(',');
string[] pwds = password.Split(',');
foreach (string user in users)
{
if (TextBox1.Text == user) //User Exists
{
foreach (string pwd in pwds)
{
if (TextBox2.Text == pwd) //Password Exists
{
//Now you have already checked the username and passwor is correct
if (Array.IndexOf(users,user) == Array.IndexOf(pwds,pwd)) // This line check user and password for same index.
{
//You can write your logic here
Response.Write("Login Successfull...");
return;
}
else
{
Response.Write("Login Failed...");
return;
}
}
}
}
}
}
 
Alternatively I find the attached code and let me know...
 
Thanks