|
Hello Richard
Just a quick question about the code you kindly sent to me.
It concerns this line here:
Dim recordExists As Boolean = False
Is there a reason this is not 'true'? Either the user exists in the database or not. If he does, then he gets sent the link; if not, he should register. Isn't it as black and white as that?
If Boolean is set to false, doesn't that suggest that it is unimportant whether he exists or not?
Thanks
|
|
|
|
|
You need to know whether the record exists to know whether you're going to send a "forgotten password" email or a "register" email.
The flag is initially set to False because the code later updates it to True if the record was found. You could reverse that logic, but I think it makes more sense as it is.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: store the expiration date in the database, not in the link! Or encrypt it and put it in the link.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Thanks, Ryan
Adding a Date/Time column to Access sounds a bit easier!
But thanks for suggesting an alternative!
|
|
|
|
|
Hi All,
I am using CodeSmith NetTier generator for the my DAL generation, I have set the ServiceClassNameFormat field to : {0}Service, but still it not generating the class names with Service Suffix, as I am just maintaining the application, changing the name is giving lots of errors.
Can anybody help me in fixing this, I am in need as I am new to the CodeSmith, I am googling too, still its not of much help. Any help a suggestion or code snippet or even a link would be greatly helpful.
Thanks in advance.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
touch screen application in C++
|
|
|
|
|
1) Your "query" isn't a query at all.
2) You've already posted this and surprisingly had an answer that points you in the right direction
3) This isn't a C++ forum
|
|
|
|
|
Instead of posting non-questions in the wrong forum here, you should post those words into Google, and learn how to do basic research for yourself.
|
|
|
|
|
Once again: read this[^], and pay particular attention to point 2.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I want a solution for validating weakly typed model.
not by using jquery validations,angular js, not by combining all the models to a single model
i want validation to to be done on .cshtml page
|
|
|
|
|
You can surely C# code on the (cshtml) page itself. But how do you want to add the validation? It is just a collection of simple conditional check ups?
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I want to develop touch screen application in .C#.i didnt develop touch screen before.
|
|
|
|
|
|
touch screen application in C++
|
|
|
|
|
|
Read this[^], and pay particular attention to point 2.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
As Richard Deeming say to general. need to Be specific! All i can tell change your event to touch event 
|
|
|
|
|
Why are you telling me this? Did you mean to reply to the OP?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Do you have a question?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I am a sysadmin at the company I work for and I was encrypting connectionStrings in the web.config files of an IIS site in our Stage environment. I was using the instructions from here: Encrypt ConnectionString in Web.Config[^]
The developers deployed a new version of the site over the old one, did not alert me, and so I did not decrypt the web.config file.
Now we are getting error 500 each time we try and use the site.
1. Is it possible that ASP.NET on that server is expecting that web.config to be encrypted?
2. Do you need to decrypt web.config files before doing migrations of new web.config files into the same path, overwriting the old server?
3. Other than doing a restore from backup or having a copy of the encrypted web.config, is there any way to back out of it?
Thank you in advance!
Chris Wright
IIS SysAdmin
|
|
|
|
|
No, as pointed out in the article you reference, "it will run perfectly without any modification to your existing code." This means that the code is the same regardless if you encrypt the web.config or not.
I suggest looking in the event viewer because it does not seem like the encrypt/decrypt issue of web.config is the cause.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
That was my expectation, thank you for the confirmation.
|
|
|
|
|
Hi All,
I am maintaining a Web Application, when I am trying to Publish it I am getting the following error "A namespace cannot directly contain members such as fields or methods" and I am positive that C# won't allow me to have methods directly under a namespace without class.
The above error doesn't give me any information, hence I am researching online for help, please if anybody knows about this, can you please help me by a suggestion, a link or a code snippet. It helps me a lot.
Thanks in advance.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
|
How do I save the values entering into textbox that is dynamically created to database
My Code
for (int i = 0; i < Grid.Rows.Count; i++) //Grid.Rows.Count
{
//TextBox CC = (TextBox)Grid.Rows[i].Cells[2].FindControl("txtCA");
//TextBox CC1 = (TextBox)Grid.Rows[i].Cells[2].FindControl("txtCA") as TextBox;
string StdMat = Grid.Rows[i].Cells[0].Text;
string CA = ((TextBox)Grid.Rows[i].Cells[2].FindControl("txtCA")).Text;
string UserID = Grid.Rows[i].Cells[1].Text;
Response.Write("CA= " + CC1 + "<br>");
MySqlCommand cmdd = new MySqlCommand("UPDATE resultstable2 SET CA=@ca WHERE student_ID=@student_ID", conn);// coursecode=@coursecode
cmdd.Parameters.AddWithValue("@ca", CA);
cmdd.Parameters.AddWithValue("@coursecode", cboCourseCode.Text);
cmdd.Parameters.AddWithValue("@student_ID", StdMat);
cmdd.ExecuteNonQuery();
}
-- modified 11-Jan-16 7:02am.
|
|
|
|