15,898,876 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Ankur Ramanuj (Top 51 by date)
Ankur Ramanuj
22-Jan-20 6:16am
View
Internal user meant to me is users from my organization or in other words in house developers.
External users are some one to whom I sell my APIs. means someone outside the organization.
Main goal is when in house developer call API they don't need to pass anything like credential but someone outside the organization try to call the same API they need some verification like authentication.
How can I achieve this?
Ankur Ramanuj
22-Jan-20 5:27am
View
That's a main question roaming in my mind
1) How to identify user
2) How to prevent on single url
Ankur Ramanuj
22-Jan-20 2:37am
View
What output you want if tradecode is null? and what do you want when tradecode having values?
Can you elaborate it easy what blocker you are facing?
Ankur Ramanuj
23-May-15 8:24am
View
Thanks for your reply,
I did that but could not get any error during debugging.
I have updated the question with more details.
Can you please guide me?
Ankur Ramanuj
23-May-15 8:22am
View
I have update the question with more details
Ankur Ramanuj
6-Dec-14 6:40am
View
actually what i want is
at first time open a alert box and after that counter is display in same alertbox.
Ankur Ramanuj
4-Apr-14 3:08am
View
what you want ? you want to save image in your network drive from file upload control?
Ankur Ramanuj
29-Mar-14 8:57am
View
your source is on same server?
Ankur Ramanuj
29-Mar-14 2:14am
View
are you want to export html control or data ..can you explain more?
Ankur Ramanuj
29-Mar-14 2:12am
View
this is right answer.
Ankur Ramanuj
28-Mar-14 2:54am
View
this is right if you have set auto increment true than its not updating manually.
Ankur Ramanuj
27-Mar-14 9:19am
View
delete your browser cache and try it.
Ankur Ramanuj
27-Mar-14 8:13am
View
you want column header name which you provided in excel?
Ankur Ramanuj
27-Mar-14 8:06am
View
can saw me a code here?
Ankur Ramanuj
27-Mar-14 7:56am
View
Deleted
TextBox txt = (TextBox)Master.FindControl("am1");
txt.Enable=false;
if you want to disable text box than do like this.and change type as per your requirement.
Ankur Ramanuj
27-Mar-14 5:11am
View
actually i'm working on one sms solution and balance means the quata of sms.
as per your answer i'm finding best way to store it or manage it because i think store in database is dangerous for security reasons.
Ankur Ramanuj
27-Mar-14 5:08am
View
yup..its too much because its a sms solution.
Ankur Ramanuj
27-Mar-14 5:00am
View
after few months database having 2-3 lacs entry of one user so how can i do this?
Ankur Ramanuj
18-Mar-14 8:52am
View
its not print these 3 three table in three sheets...
Ankur Ramanuj
11-Jan-14 6:59am
View
i have decription key.some third party bat file is working fine but i want to do in android thats d problem.
Ankur Ramanuj
18-Nov-13 4:54am
View
thanx..you are right.
Ankur Ramanuj
18-Nov-13 4:38am
View
try it in databound....
protected void GridView1_DataBound(object sender, EventArgs e)
{
if (GridView1.Rows.Count == 1)
GridView1.Rows[0].Visible = false;
}
Ankur Ramanuj
2-Jul-13 6:26am
View
hey..anybody give me answer for this???
alert is working fine when uncomment but marker click event is not working.
Ankur Ramanuj
2-Jul-13 6:22am
View
Actually i want to display map on my behalf..not on google map.
and finally i got it.. its to easy as well.
Ankur Ramanuj
22-Jun-13 6:27am
View
hi,
i have done this but its not working steel.and user controls code is in html side in script
Ankur Ramanuj
22-Jun-13 4:51am
View
sorry..but i don't want to display in google map's url but i need it in my application output.
Ankur Ramanuj
22-Mar-13 7:31am
View
And i want to perform the calculation code if user click OK button otherwise it may be stop .
Ankur Ramanuj
22-Mar-13 7:30am
View
i am working in c#.net(framework 3.5) so messagebox is not working in it.
Ankur Ramanuj
1-Jan-13 1:38am
View
i have calling AccessRights.cs file from timer.cs than d actually happen is HTTP.Current.responce.redirect thrown error and d reason is HTTP.Current is Null so how can i solved it out.???
Ankur Ramanuj
31-Dec-12 23:56pm
View
Deleted
simple i have create one timer.cs and
1)> its execute at every 15 min..when timer is execute than its called above AccessRights.cs file...(so its not working.)
2)> And in every pageload event AccessRights.cs is called for check rights that time its working fine..
Ankur Ramanuj
31-Dec-12 9:05am
View
hEY..REPLY ME AS SOON AS POSSIBLE I'M STUCK IN THIS..
Ankur Ramanuj
25-Dec-12 5:43am
View
amm..actually i want to delete row from repeater not from database...so how can i delete row from item data bound?
Ankur Ramanuj
3-Nov-12 1:46am
View
i have done same in my code..all above code is written in button click event...
Ankur Ramanuj
2-Nov-12 2:33am
View
when i have click on login button than i'm redirect on Home.aspx form but i'm click on this button thn this error is occured or sometimes i have refressed this page than it's work fine ...so i can't understand what can i do?
Ankur Ramanuj
31-Oct-12 9:25am
View
My code is like: Page Name(Default.aspx.cs)
try
{
DataRow drLogin = null;
BAL.bal_tbl_UserLogin balUserlogin = new BAL.bal_tbl_UserLogin();
OAL.obj_tbl_UserLogin oalUserlogin = new OAL.obj_tbl_UserLogin();
oalUserlogin.UserName = Convert.ToString(txtUserName.Text);
oalUserlogin.UserPassword = new AllSecurity().base64Encode(txtPassword.Text);
if (balUserlogin.Select_WithAnd(oalUserlogin))
{
if (balUserlogin.m_RowAffected > 0)
{
drLogin = balUserlogin.m_Ds.Tables[0].Rows[0];
if (Convert.ToBoolean(drLogin["LoginStatus"]) == true)
{
string AppSessionID = "l%34$Cae8D";
if (AppSessionID != "")
{
Session["SessionID"] = Session.SessionID;
HttpCookie UserCookies = new HttpCookie(Convert.ToString(AppSessionID));
UserCookies.Expires = DateTime.Now.AddDays(1);
UserCookies["UID"] = Convert.ToString(drLogin["UserName"]);
UserCookies["UPP"] = Convert.ToString(txtPassword.Text);
UserCookies["EID"] = Convert.ToString(drLogin["EmployeeID"]);
UserCookies["Ename"] = Convert.ToString(drLogin["First_Name"]) + " " + Convert.ToString(drLogin["Last_Name"]);
UserCookies["Utype"] = Convert.ToString(drLogin["OfficeType"]);
UserCookies["Role"] = Convert.ToString(drLogin["RoleID"]);
UserCookies = new HttpCookieEncryption().encrypt(UserCookies);
Response.Cookies.Add(UserCookies);
string strTicket = Convert.ToString(Session.SessionID);
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(strTicket, false, 200);
string encTicket = FormsAuthentication.Encrypt(ticket);
Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encTicket));
Response.Redirect("Dashboard.aspx");
Reset();
}
}
else
lblErrorMSg.Text = "Your login access has been failed, Contact your administrator.";
}
else
lblErrorMSg.Text = "User login failed. Invalid Username or Password.";
}
else
lblErrorMSg.Text = "User login failed. Invalid Username or Password." + balUserlogin.m_Error.ToString();
}
catch (Exception ex) { lblErrorMSg.Text = ex.Message.ToString(); }
Ankur Ramanuj
31-Oct-12 8:57am
View
ok sorry, in my code i have just create a cookie for store value like username,CompanyID,UserID..nothing else
Ankur Ramanuj
31-Oct-12 8:15am
View
i have used c#.net framework 4.0
Ankur Ramanuj
10-Sep-12 8:48am
View
Thanx Pravin,
my problem is solved..but i'm on leave for sometimes thats why delay in reply..
Thank you again..
Ankur Ramanuj
26-Jul-12 7:11am
View
pravin
i have solved it out but one problem is left.i have problem to calling thread at ones it called successfully but i have calling this using application_start from global.asax page but the problem is it fire only once at application start time so after application start its not fire again so what can i do for calling it again and again.. my code is..
protected void Application_Start(object sender, EventArgs e)
{
DateTime someStart = DateTime.Now.AddMinutes(0);
TimeSpan someInterval = TimeSpan.FromMinutes(1);
//sample call
AttendanceProcess ap = new AttendanceProcess();
StartTimer(someStart, someInterval, ap.doSomething);
//StartTimer(someStart, someInterval, btnGenerat_Click);
//end
}
//new Devlopment For Auto Process Attendance Devloped by Shoaib Ganja on 25072012
//The following is the actual guts.. and can be transplanted to an actual class.
private delegate void voidFunc<P1, P2, P3>(P1 p1, P2 p2, P3 p3);
protected void StartTimer(DateTime startTime, TimeSpan interval, Func<bool> action)
{
voidFunc<datetime, timespan,="" func<bool="">> Timer = TimedThread;
Timer.BeginInvoke(startTime, interval, action, null, null);
}
//just a fake function to call
protected void TimedThread(DateTime startTime, TimeSpan interval, Func<bool> action)
{
balTimeFalg = new BAL.bal_tbl_TimeFlag();
oalTimeFlag = new OAL.obj_tbl_TimeFlag();
balTimeFalg.Select_WithAnd(oalTimeFlag);
if (balTimeFalg.m_RowAffected > 0) { }
else { oalTimeFlag.Flag = false; oalTimeFlag.DAtetime = System.DateTime.Now.Date; balTimeFalg.Insert(oalTimeFlag); }
bool keepRunning = true;
DateTime NextExecute = startTime;
while (keepRunning)
{
if (DateTime.Now > NextExecute)
{
oalTimeFlag.DAtetime = System.DateTime.Now.Date;
oalTimeFlag.Flag = false;
balTimeFalg.Select_WithAnd(oalTimeFlag);
if (balTimeFalg.m_RowAffected > 0)
{
if ((NextExecute.TimeOfDay >= System.TimeSpan.Parse("15:05:00")) && (NextExecute.TimeOfDay <= System.TimeSpan.Parse("16:30:00")))
keepRunning = action.Invoke();
else
NextExecute = NextExecute.Add(interval);
}
else
{
oalTimeFlag.Flag = false;
oalTimeFlag.DAtetime = System.DateTime.Now.Date;
balTimeFalg.Insert(oalTimeFlag);
NextExecute = NextExecute.Add(interval);
}
}
//could parameterize resolution.
Thread.Sleep(1000);
}
}
Ankur Ramanuj
25-Jul-12 7:42am
View
why it is not possible think yaar any other way and i want the all cookies list after publish my Application on client side and i want to restrict admin login using this list's keys.
Ankur Ramanuj
25-Jul-12 6:43am
View
guys tell me how can i get all the cookie from all browser..
Ankur Ramanuj
25-Jul-12 6:34am
View
no its not working..its display only current browser's cookie..
Ankur Ramanuj
25-Jul-12 6:32am
View
i had try this but its display only one browser's cookies but i want all the cookies list in my application actually ruaning
Ankur Ramanuj
25-Jul-12 1:40am
View
how can i use timer or thread??
Ankur Ramanuj
23-Jul-12 7:12am
View
its a one class file..firstly i'll say i have create one web base application and in this i have create one attendance process class file.i want to call it every day at 12:00 am.
Ankur Ramanuj
23-Jul-12 4:46am
View
Actually i have work on Payroll software and i want to call attendance process cs file at night(12.00)..so how can i do i don't understand...
Ankur Ramanuj
23-Jul-12 2:19am
View
ohh Thanx my problem is solved using Top clause ...Thank you Karthik Harve
Ankur Ramanuj
10-Jul-12 5:35am
View
HEy..third option is very usefull and almost done in my application....now i'm able to forcefully signout the perticular User..thank you SHEMEER NS.
Ankur Ramanuj
4-Jul-12 7:30am
View
ya you are right but i want to restrict the user my mean is in my application only 4 user is loged in if user's 5 is coming and 4 user allready logging than number 5 is not able to login...than admin forcefully signout any of the four user and 5 is able to login..so how can i forcefully signout the user.
Ankur Ramanuj
20-Sep-11 5:14am
View
thnk you..
Ankur Ramanuj
20-Sep-11 5:14am
View
ok...but i m new in this..thts why...
Show More