15,671,013 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 Python questions
View Javascript questions
View C++ questions
View Java 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 usha C (Top 106 by date)
usha C
14-Aug-14 3:32am
View
I have worked with same code which u updated..
But the grid is not updated at the second time of button click...
usha C
14-Aug-14 2:54am
View
Suddenly it works
And some time its not working..
OMG pls help me out to clear dis issue
usha C
14-Aug-14 2:43am
View
Still the Prob remains same..
usha C
14-Aug-14 2:21am
View
Still Facing the same issue...
At !st time its work and at the next time when i click the button the grid is not updating
And none of the action was performed
Its not Refreshed...
usha C
14-Aug-14 1:03am
View
If i put outside of the content panel my page is get post back...
So no use of including update panel
usha C
19-Jul-14 0:35am
View
Its web application using user control
usha C
14-Jul-14 3:00am
View
[HttpPost]
[AllowAnonymous]
public ActionResult LoginUser(LoginModel logmodel, string returnUrl)
{
int i = 0;
bool isPersistent = false;
if (ModelState.IsValid)
{
if (Membership.ValidateUser(logmodel.username, logmodel.password))
{
string userData = "Application specific data for this user";
// FormsAuthentication.RedirectFromLoginPage(logmodel.username, logmodel.rememberme);
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1,logmodel.username,
DateTime.Now,DateTime.Now.AddMinutes(30),isPersistent,userData,
FormsAuthentication.FormsCookiePath);
//Encrypt the ticket
string encTicket = FormsAuthentication.Encrypt(ticket);
//create the cookie
Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encTicket));
//Redirect back to original url
//return RedirectToAction(FormsAuthentication.GetRedirectUrl(logmodel.username,isPersistent));
i = 1;
}
else
{
ModelState.AddModelError("", "The username and password is incorrect");
}
}
if(i==1)
//return RedirectToAction("Index", "Home");
return RedirectToAction(FormsAuthentication.GetRedirectUrl(logmodel.username, isPersistent));
else
return View(logmodel);
}
This is my LoginController... when i try to run, im getting error like The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Login/Home/Index
usha C
26-May-14 3:06am
View
Am using Date time picker ...
Tried with your code But getting the same error..
usha C
26-May-14 2:50am
View
Am retrieving the value from DB
the value of txtExpiryDate.Text is 26/5/2014
usha C
16-May-14 8:10am
View
So How to rectify this issue???
usha C
16-May-14 7:38am
View
Ya exactly...dis code works in local...
But not in Server...
usha C
16-May-14 6:59am
View
Even if the application not runs also i need to send email... so that only i have written in Global.aspx
usha C
16-May-14 6:40am
View
public class Automate_EmailJobs : System.Web.Services.WebService<br>
{<br>
ClsCommonBAL commonBAL = new ClsCommonBAL();<br>
EmailServices email = new EmailServices();<br>
<br>
private static Mutex mute = new Mutex(false, "JobSchedulerMutex");<br>
<br>
[WebMethod]<br>
public bool RunJob()<br>
{<br>
bool ranJOb = false;<br>
mute.WaitOne();<br>
<br>
try<br>
{<br>
TraceService("Service Reached RunJobs");<br>
//email.SendEmail("Alert Checking", "Scheduler alert checking", "Alert Triggered at " + DateTime.Now + "<br/>", "usha@gmail.com", 1); <br>
commonBAL.RunAllActiveJobs();<br>
ranJOb = true;<br>
}<br>
catch (Exception ex)<br>
{<br>
throw ex;<br>
}<br>
finally <br>
{<br>
mute.ReleaseMutex();<br>
}<br>
return ranJOb;<br>
}<br>
usha C
16-May-14 6:28am
View
I tried working With my code using web services...
And the main code i have writen on Global.aspx page and backend action also Performed....
The code works good when i work on an Local
But When its run on server it doesn't work..
Pls Check My code
Global.aspx:
public Guid AppId = Guid.NewGuid();
public String TestMessage;
public String GetAppDescription(String eventName)
{
StringBuilder builder = new StringBuilder();
builder.AppendFormat("-------------------------------------------{0}", Environment.NewLine);
builder.AppendFormat("Event: {0}{1}", eventName, Environment.NewLine);
builder.AppendFormat("Guid: {0}{1}", AppId, Environment.NewLine);
builder.AppendFormat("Thread Id: {0}{1}", System.Threading.Thread.CurrentThread.ManagedThreadId, Environment.NewLine);
builder.AppendFormat("Appdomain: {0}{1}", AppDomain.CurrentDomain.FriendlyName, Environment.NewLine);
builder.AppendFormat("TestMessage: {0}{1}", TestMessage, Environment.NewLine);
builder.Append((System.Threading.Thread.CurrentThread.IsThreadPoolThread ? "Pool Thread" : "No Thread") + Environment.NewLine);
return builder.ToString();
}
void Application_Start(object sender, EventArgs e)
{
TestMessage = "Not Null";
// Code that runs on application startup
Trace.WriteLine(GetAppDescription("Application_Start"));
}
void Application_BeginRequest(object sender, EventArgs e)
{
CreateTimers();
}
private void CreateTimers()
{
Trace.WriteLine("TimerStarted at" + DateTime.Now + "<br/>");
System.Timers.Timer WebServiceTimer = new System.Timers.Timer();
WebServiceTimer.Enabled = true;
WebServiceTimer.Interval = (60000 * 1440);
WebServiceTimer.Elapsed += new System.Timers.ElapsedEventHandler(WebServiceTimer_Elapsed);
}
public void WebServiceTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
Trace.WriteLine("Timer_Elapsed at" + DateTime.Now + "<br/>");
Automate_EmailJobs objEmailJobs = new Automate_EmailJobs();
objEmailJobs.RunJob();
}
void Application_End(object sender, EventArgs e)
{
// Code that runs on application shutdown
Trace.WriteLine(GetAppDescription("Application_End"));
}
void Application_Error(object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs
Trace.WriteLine(GetAppDescription("Application_Error"));
}
void Session_Start(object sender, EventArgs e)
{
// Code that runs when a new session is started
Trace.WriteLine(GetAppDescription("Application_BeginRequest"));
}
void Session_End(object sender, EventArgs e)
{
// Code that runs when a session ends.
// Note: The Session_End event is raised only when the sessionstate mode
// is set to InProc in the Web.config file. If session mode is set to StateServer
// or SQLServer, the event is not raised.
Trace.WriteLine(GetAppDescription("Application_EndRequest"));
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
// look if any security information exists for this request
if(HttpContext.Current.User != null)
{
// see if this user is authenticated, any authenticated cookie (ticket) exists for this user
if (HttpContext.Current.User.Identity.IsAuthenticated)
{
// see if the authentication is done using FormsAuthentication
if (HttpContext.Current.User.Identity is FormsIdentity)
{
// Get the roles stored for this request from the ticket
// get the identity of the user
FormsIdentity identity = (FormsIdentity)HttpContext.Current.User.Identity;
usha C
31-Aug-13 1:52am
View
Thanks fr ur update..
usha C
14-Aug-13 5:01am
View
sir That problemis solved nw geting my error as "Procedure or function 'insertvalue' expects parameter '@IdentitY', which was not supplied."
usha C
14-Aug-13 4:49am
View
Getting The same error sir
usha C
8-Aug-13 8:39am
View
Thanks fr ur ans sir got my op
usha C
3-Aug-13 2:22am
View
Deleted
In one row i should get number of 0's as 3 and 1 as 3
usha C
26-Jul-13 8:41am
View
Thanks fr ur favour...
usha C
26-Jul-13 8:41am
View
Thanks fr ur favour...
usha C
25-Jul-13 3:34am
View
Ya sir its right...can u pls tel me hw to declare the primary key and auto incremn wit dis code...
usha C
25-Jul-13 0:34am
View
Deleted
sir can u pls explain me with some peace of code.....
usha C
24-Jul-13 5:32am
View
Sir Thnks for ur code it helps to give me the exact result ...
I jus modify the code
XDocument doc = XDocument.Load("Book.xml");
if (doc != null)
{
foreach (var name in doc.Root.DescendantNodes().OfType<xelement>().Select(x => x.Name).Distinct())
{
ListBox1.Items.Add(name.ToString());
}
}
usha C
24-Jul-13 5:08am
View
the xml is not null sir The loop is executing inside the if condition...
usha C
24-Jul-13 5:06am
View
Deleted
sir i got that error in foreach loop itself.....The loop is not executing
usha C
24-Jul-13 5:00am
View
I jus modify ur code sir since i got some error in ur code
After the modification also i faced wit some error...........
XDocument doc = XDocument.Load("Book.xml");
List<string> list = new List<string>();
foreach (var name in doc.Root.Element("catalog").DescendantNodes().OfType<xelement>()
.Select(x => x.Name).Distinct())
{
ListBox1.Items.Add(name.ToString());
}
The error is
"Object reference not set to an instance of an object."
In my for loop
usha C
24-Jul-13 4:02am
View
Thanks fr ur code sir am getting dis error...
my error is
"System.Xml.XmlDocument' does not contain a definition for 'Root' and no extension method 'Root' accepting a first argument of type 'System.Xml.XmlDocument' could be found (are you missing a using directive or an assembly reference?)"
I have used my namespaces
using System.Linq;
using System.Xml.Linq;
wat error is iits????
usha C
23-Jul-13 1:08am
View
Sir I have tried and searched and went through all the Links But whatever the source i found is from either java or not support to our os its an issue....Thats the oly resn i had posted my querry here...
usha C
22-Jul-13 8:06am
View
Sir richtextbox tool will not b available in Asp
usha C
22-Jul-13 7:42am
View
Hey thanks lot it works...u r really awesome gave me answer in single line of code i was trying to work with this in hard logical codes thanks lot...
usha C
22-Jul-13 6:54am
View
Am getting the same result sir i need to read all the values including xml tags....
usha C
17-Jul-13 6:22am
View
Ya sir datas where gt counted...
usha C
17-Jul-13 6:13am
View
Ya tried tht too...no result was found on the gridview..
usha C
17-Jul-13 6:06am
View
Ya tried sir pls look at my error...
"Error 24 Non-invocable member 'System.Windows.Forms.Control.DataBindings' cannot be used like a method"
usha C
17-Jul-13 6:00am
View
Hello sir sry i where in meeting and just finished my lunch and came back.....am not geting the result cant use GridView1.DataBind(); i got an error as
"Error 24 Non-invocable member 'System.Windows.Forms.Control.DataBindings' cannot be used like a method"
Thanks lot fr ur effort...........
usha C
17-Jul-13 2:58am
View
sir am using c# code here the data bind is nt supporting wat to do???
usha C
17-Jul-13 2:53am
View
No sir still same issue...
usha C
17-Jul-13 2:45am
View
Am nt geting any error The form view as not responding....
usha C
17-Jul-13 2:41am
View
This query wrks when i execte in sql server... oly problem with binding the data in gridview i thnk...
usha C
17-Jul-13 1:14am
View
No sir
usha C
17-Jul-13 1:07am
View
Its my error Am geting this problem for every page "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated."
usha C
16-Jul-13 8:52am
View
k k fyn thnk u...
usha C
16-Jul-13 8:07am
View
Ya its working thnk u..
usha C
16-Jul-13 8:03am
View
Ya nw working wats the mistake i had done here sir...
usha C
16-Jul-13 0:58am
View
ya am getting nw thnk u...
usha C
16-Jul-13 0:58am
View
Thank you sir....
usha C
16-Jul-13 0:55am
View
Deleted
what modification is done here sir same process which i done is displaying
usha C
16-Jul-13 0:49am
View
string lk1 = arr[1].ToString(); here i got error
usha C
15-Jul-13 5:43am
View
cmd = new SqlCommand("SP_RENAME 'Classify2.[A]' , '[newtable]', 'COLUMN'", cn.con);
cmd.ExecuteNonQuery();
cmd.Dispose();
usha C
15-Jul-13 5:18am
View
oops am geting dis error "Either the parameter @objname is ambiguous or the claimed @objtype (COLUMN) is wrong."
usha C
15-Jul-13 5:06am
View
Hey got op by using sp_rename thanks timmit18
usha C
15-Jul-13 5:00am
View
sir am geting the error as
"In correct syntax the Keywork Column" my code is
cmd = new SqlCommand("ALTER TABLE Classify1 RENAME COLUMN A TO new ", cn.con);
cmd.ExecuteNonQuery();
cmd.Dispose();
usha C
15-Jul-13 3:58am
View
I tried working with dis quarries sir thnk u...
usha C
15-Jul-13 3:53am
View
The Combo box values contain the field names....leave of that i need to rename my database column name using c# code...is it possible to do???
usha C
15-Jul-13 2:27am
View
Ya i done mistake thnk u got op nw chimcham thnks lot....
usha C
15-Jul-13 2:26am
View
Thank you ...Thnks lot
usha C
15-Jul-13 2:22am
View
Yes ...the probablitystate1 is an table name and combox1 and combobox2 contains the field name in tat particular table
usha C
12-Jul-13 5:33am
View
is it possible with LINQ querry sir... bt i dnt no hw to impliment tat query fr my code............pls do tel if u have any idea..am strugling wit dis from the morn
usha C
12-Jul-13 5:19am
View
Actually above table does not contain any primary key column because of that same type of records exist.
usha C
12-Jul-13 5:09am
View
Hello sir i told tat am nt geting result with ur query if ter any further process is ter to find result i asked........... if nt keep quiet...
usha C
12-Jul-13 5:07am
View
Yep same issues fallowing wit ur code too....
usha C
12-Jul-13 5:03am
View
ya done with linking to second table bt no use c dis code
da = new SqlDataAdapter("SELECT DISTINCT rule1.Age, rule1.workclass, rule1.fnlwgt, rule1.education, rule1.maritalstatus, probablity.fnlwgt FROM rule1 INNER JOIN probablity ON rule1.fnlwgt = probablity.fnlwgt", cn.con);
usha C
12-Jul-13 4:57am
View
Table 1 containts
17 Private 10th Never-married 163836
17 Private 10th Never-married 163836
18 Local-gov 12th Never-married 134935
18 Local-gov 12th Never-married 134935
18 Local-gov 12th Never-married 134935
19 Private 11th Never-married 236396
19 Private 11th Never-married 99246
19 Private 11th Never-married 99246
so n so and Table 2 is
100029
100219
100569
100579
100800
100875
100960
101345
101468
101562
101890
102076
its unique values
usha C
12-Jul-13 4:55am
View
wat to do the next process if i remove the join query..
usha C
12-Jul-13 4:53am
View
Ya tried bt no use
usha C
12-Jul-13 4:50am
View
c my ques i have mentioned what the result am getting........
usha C
12-Jul-13 4:45am
View
Yes tried is ter any other methos to remove duplicate records
usha C
12-Jul-13 4:07am
View
Am struggling with dis code from morning pls do me a favour or give some other method to get my output
usha C
12-Jul-13 4:06am
View
Deleted
Am struggling with dis code from morning pls do me a favour or give some other method to get my output
usha C
12-Jul-13 4:02am
View
no sir its not working
usha C
12-Jul-13 3:59am
View
No i tried with dis method also but am geting the same result oly am founding distinct keyword does not work for entire columns fr me wat to do...
usha C
12-Jul-13 3:59am
View
No i tried with dis method also but am geting the same result oly am founding distinct keyword does not work for entire columns fr me wat to do...
usha C
12-Jul-13 2:04am
View
:-)
usha C
12-Jul-13 1:58am
View
s sir i got it...
usha C
12-Jul-13 1:58am
View
s sir i got it...
usha C
12-Jul-13 1:39am
View
Thnk u...
usha C
12-Jul-13 1:38am
View
I got my result sir
foreach (DataGridViewRow row in dataGridView2.Rows)
{
foreach (DataGridViewCell cell in row.Cells)
{
value1 = row.Cells[0].Value.ToString();
value2 = row.Cells[1].Value.ToString();
value3 = row.Cells[2].Value.ToString();
value4 = row.Cells[3].Value.ToString();
value5 = row.Cells[4].Value.ToString();
cmd = new SqlCommand("insert into rule2 values ('" + value1.ToString() + "','" + value2.ToString() + "','" + value3.ToString() + "','" + value4.ToString() + "','" + value5.ToString() + "')", cn.con);
cmd.ExecuteNonQuery();
cmd.Dispose();
//MessageBox.Show("Execute Process!!");
}
}
MessageBox.Show("Process Complited");
usha C
12-Jul-13 1:22am
View
not geting result i got the exception error as "ColumnCount property cannot be set on a data-bound DataGridView control"
usha C
12-Jul-13 1:19am
View
Ya i checked by removing tat also
usha C
11-Jul-13 3:36am
View
Thnks fr ur excellent work
usha C
11-Jul-13 3:33am
View
Thank u mam....thnks lot
usha C
11-Jul-13 3:21am
View
Thnks lot the code doesnt contents any error bt hw to display dis in my gridview...
usha C
11-Jul-13 3:16am
View
can u pls explain me dis code what does 'articletable','articleID' contents
usha C
11-Jul-13 2:58am
View
Am Selecting 2 and 3 only i need the result from tat table as
2 48 Private 344415 Bachelors 13 Married-spouse-absent
it shuld b my result but am geting both the rows
usha C
11-Jul-13 2:49am
View
Its fr example but actually i have 1000 records in my table with duplicate values
2 48 Private 344415 Bachelors 13 Married-spouse-absent
3 48 Private 241928 HS-grad 9 Separated
from dis i required the result to display as only 1 row..........
usha C
11-Jul-13 2:47am
View
It works for removing value from only 1 column from an table but i have 6 columns from all that 6 column the duplicate values must remove and the result value should display in gridview help me pls..
usha C
11-Jul-13 2:35am
View
still not getting an prob with
Object reference not set to an instance of an object.
usha C
11-Jul-13 2:34am
View
Deleted
still not getting an prob with
Object reference not set to an instance of an object.
usha C
11-Jul-13 2:28am
View
Ya Fyn i have understood that but an not getting the result from ur example am geting 2 rows instead of getting 1 row...
usha C
11-Jul-13 2:15am
View
No mam still not getting the result am geting this error
"'dt' is a 'field' but is used like a 'method'"
usha C
11-Jul-13 1:58am
View
anythng else if it on code its most well and good...
usha C
11-Jul-13 1:57am
View
Deleted
anythng else if it on code its most well and good...
usha C
11-Jul-13 0:58am
View
Yes Yes...
usha C
10-Jul-13 1:01am
View
the database table contain of 6 columns...i have splited those datas and now i need to store that in a database
usha C
8-Jul-13 6:30am
View
Ya :-)
usha C
8-Jul-13 5:40am
View
Yep :-)
usha C
8-Jul-13 5:25am
View
Thank You
usha C
8-Jul-13 5:12am
View
I done myself
usha C
6-Jul-13 7:29am
View
using Tcp/ip protocol pls help ..
usha C
4-Jul-13 3:56am
View
Am geting dis error if i used my code in that method
"The method or operation is not implemented."
pls do explain me clearly Thank You...,
usha C
4-Jul-13 3:31am
View
public override void GenerateKey()
How to use dis method in this code i dont have idea pls help me
usha C
4-Jul-13 1:40am
View
Thanks lot it Works
usha C
4-Jul-13 1:35am
View
"Cannot apply indexing with [] to an expression of type 'object'" Am getting this eddror
usha C
4-Jul-13 1:30am
View
But i need only cmbobox 2 value and not the 1
usha C
4-Jul-13 1:09am
View
thnks fr ur code...but still it not works the code which i given n 1st block is not working.unable to read the value in textbox
Show More