Skip to content

Commit 964dc2a

Browse files
committed
Adding Project
0 parents  commit 964dc2a

File tree

89 files changed

+4462
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+4462
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
bin/*
2+
App_Data/*
3+
Content/DeveloperPics/*
4+
DeveloperUploadedProject/*
5+
PostedProject/*
6+
Models/*
7+
obj/*
8+
Properties/*
9+
web.config
10+
Web.Debug.config
11+
Web.Release.config

App_Code/Cryptography.cs

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
6+
namespace Techwork.App_Code
7+
{
8+
public class Cryptography
9+
{
10+
public string EncryptMyData(string PlainText)
11+
{
12+
string EncryptedText = "";
13+
int ASCIIValue, NewASCIIValue;
14+
char ch;
15+
for(int x=0;x<PlainText.Length;x++)
16+
{
17+
ch=PlainText[x];
18+
ASCIIValue=ch;
19+
if(ASCIIValue >=65 && ASCIIValue<=90)
20+
{
21+
//UPPERCASE
22+
NewASCIIValue=122 -ASCIIValue+65;
23+
}else if(ASCIIValue>=97 && ASCIIValue<=122)
24+
{
25+
//LOWERCASE
26+
NewASCIIValue = 122-ASCIIValue+97;
27+
28+
}
29+
else if(ASCIIValue>=48 && ASCIIValue<=57)
30+
{ //DIGITS
31+
NewASCIIValue = 57 - ASCIIValue + 48;
32+
33+
}
34+
else
35+
{//Special Symbol
36+
NewASCIIValue =ASCIIValue;
37+
}
38+
ch = (char)NewASCIIValue;
39+
EncryptedText=EncryptedText + ch;
40+
}
41+
return EncryptedText;
42+
}
43+
}
44+
}
45+
/*
46+
What are ww doing in upper class to encrypt the user password to make it more save
47+
A to Z =>65 to90
48+
here we are converting
49+
A=>z
50+
B=>y
51+
C=>x
52+
Z=>a
53+
Y=>b
54+
this can be solved by
55+
NewASCIIvalue=122-OldAsciivalue+65
56+
========================================
57+
here we are converting
58+
a=>z
59+
b=>y
60+
c=>x
61+
z=>a
62+
y=>b
63+
this can be solved by
64+
NewASCIIValue = 122-ASCIIValue+97;
65+
======================================
66+
here we are converting
67+
0=>9
68+
1=>8
69+
2=>7
70+
9=>1
71+
NewASCIIValue = 57 - ASCIIValue + 48;
72+
and not converting to special characters
73+
*/

App_Code/EmailSender.cs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Net;
6+
using System.Net.Mail;
7+
8+
namespace Techwork.App_Code
9+
{
10+
public class EmailSender
11+
{
12+
string myemail="rajgupta.ckt22@gmail.com";
13+
string mailpass = "I_have_delted _the Password._Make Your Own.";
14+
public bool SendMyEmail(string SendTo,string Subject,string Message)
15+
{
16+
try
17+
{
18+
//Setting my email address
19+
MailAddress fromemail = new MailAddress(myemail, "Techwork");
20+
MailMessage msg = new MailMessage();
21+
msg.To.Add(SendTo);
22+
msg.From = fromemail;
23+
msg.Subject = Subject;
24+
msg.Body = Message;
25+
msg.Sender = fromemail;
26+
//Setting my credentials and protocols...
27+
SmtpClient client = new SmtpClient();
28+
NetworkCredential nc = new NetworkCredential(myemail, mailpass);
29+
client.UseDefaultCredentials = false;
30+
client.Credentials = nc;
31+
client.Port = 587;
32+
client.Host = "smtp.gmail.com";
33+
client.EnableSsl = true;
34+
client.Send(msg);
35+
return true;
36+
}catch(Exception ex)
37+
{
38+
return false;
39+
}
40+
}
41+
public int GenerateOTP()
42+
{
43+
Random r=new Random();
44+
int code = r.Next(1000, 9999);
45+
return code;
46+
}
47+
}
48+
}

App_Start/RouteConfig.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace Techwork
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}

Content/CSS/bootstrap-grid.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Content/CSS/bootstrap.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Content/CSS/my.css

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
.nav-item > a:hover, footer .row div a:hover {
2+
opacity: 0.4;
3+
}
4+
.nav-item > a{
5+
color: #ff3800;
6+
text-decoration: none;
7+
}
8+
footer .row div a {
9+
color: #28a745;
10+
text-decoration: none;
11+
}
12+
13+
#sliderContent {
14+
position: absolute;
15+
top: 38%;
16+
text-align:center;
17+
left: 35%;
18+
z-index: 0;
19+
font-weight: bolder;
20+
}
21+
@media screen and (max-width:550px) {
22+
#sliderContent {
23+
text-align: center;
24+
position: absolute;
25+
top: 16%;
26+
left: 12%;
27+
z-index: 0;
28+
}
29+
h1 {
30+
font-size: 20px;
31+
}
32+
.btn {
33+
padding: .15rem .5rem;
34+
font-size: .875rem;
35+
line-height: 1.5;
36+
border-radius: 2rem;
37+
}
38+
}
39+
#Enquiry {
40+
position: fixed;
41+
top: 50%;
42+
right:-22px;
43+
z-index: 1;
44+
transform: rotate(-90deg);
45+
background-image:linear-gradient(#0026ff,#0094ff,#00ffff);
46+
color:black;
47+
}
48+
#fixedIcon{
49+
position: fixed;
50+
top:50%;
51+
left:-95px;
52+
z-index: 1;
53+
transform: rotate(90deg);
54+
background-color:#5a5757;
55+
}
56+
57+
#Enquiry:hover{
58+
box-shadow:0px 0px 10px 3px;
59+
color: black;
60+
}
61+
.row .form-control {
62+
margin-top: 15px;
63+
}
64+
65+
66+
h1 {
67+
color: #53e045;
68+
}
14.1 KB
25.1 KB
106 KB

0 commit comments

Comments
 (0)