15,885,890 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 PrakashCs.net (Top 28 by date)
PrakashCs.net
16-May-16 1:47am
View
Create roles for user 1. Readonly 2. Modify 3. Delete when use loggedin and have only readonly access then disable save button.
PrakashCs.net
23-Apr-15 0:29am
View
Hi Sorry for late reply , actually is does not give any error it gives response as login page again, there is one more parameter formhash which generate when we first time hit url and it returns random form hash and that we need to send with post data i.e.
1. formhash, 2. account 3.username 4.password
PrakashCs.net
1-Aug-14 8:30am
View
what is difference in return View(ObjOrder and return RedirectToAction("ObjOrder");
PrakashCs.net
1-Aug-14 8:07am
View
debug your code and check which property is null either 1.frmmain.CityName 2.frmmain.UserName 3.newcituname or LeptonDataLayer
PrakashCs.net
1-Aug-14 7:39am
View
I am entering user name in UI then save data in database using saveorder controller after after that I have updated firstName = "New Customer Name " before sending back to view but UI showing FirstName : "Old Customer Name"
PrakashCs.net
1-Aug-14 7:10am
View
i.e not reflecting updated value in @Html.TextBoxFor(m => m.OCustomer.FirstName)
PrakashCs.net
1-Aug-14 7:09am
View
this ObjOrder.OCustomer.FirstName = " New customer name"; this name is not reflecting on my saveorder view.
PrakashCs.net
14-Jul-14 6:36am
View
use this solution
if you want to update same row which is filter use following code
if (_dtrecomendationData.Select("Priority = 2").Length > 0)
{
DataRow[] dr = _dtrecomendationData.Select("Priority = 2");
foreach (DataRow dre in dr)
{
dre["Priority"] = "--";
}
_dtrecomendationData.AcceptChanges();
}
PrakashCs.net
14-Jul-14 6:26am
View
if you want to update same row which is filter use following code
if (_dtrecomendationData.Select("Priority = 2").Length > 0)
{
DataRow[] dr = _dtrecomendationData.Select("Priority = 2");
foreach (DataRow dre in dr)
{
dre["Priority"] = "--";
}
_dtrecomendationData.AcceptChanges();
}
PrakashCs.net
11-Jul-14 2:35am
View
check this link might be help you
link
[
^
]
PrakashCs.net
11-Jul-14 2:32am
View
print or select your @SQL statement and run it in query analyser you will able to trace what exact error is in @SQL statement.
PrakashCs.net
9-Jul-14 7:34am
View
Why do you want to call function in select query ?
instead of that use table join Glass_Lens and Glass_Lense_cat
from t1 in Glass_Lens
join t2 in Glass_Lense_cat on t1.catid equals t2.catid
select new { t1.col1, t2.col2}
PrakashCs.net
4-Jul-14 1:23am
View
answer 3 in link i.e.
When you use a const string, the compiler embeds the string's value at compile-time.
Therefore, if you use a const value in a different assembly, then update the original assembly and change the value, the other assembly won't see the change until you re-compile it.
A static readonly string is a normal field that gets looked up at runtime. Therefore, if the field's value is changed in a different assembly, the changes will be seen as soon as the assembly is loaded, without recompiling.
This also means that a static readonly string can use non-constant members, such as Environment.UserName or DateTime.Now.ToString(). A const string can only be initialized using other constants or literals.
Also, a static readonly string can be set in a static constructor; a const string can only be initialized inline.
Note that a static string can be modified; you should use static readonly instead.
PrakashCs.net
4-Jul-14 1:06am
View
yes use DateTime? MyDate=null; correct answer Suvabrata Roy
PrakashCs.net
4-Jul-14 1:02am
View
static variable value can be change if it is static readonly variable in the constructor .
PrakashCs.net
2-Jul-14 1:29am
View
recreate instance of that class .
PrakashCs.net
2-Jul-14 1:24am
View
could you please share ClientAuthorizetables and TemperingTableTemplates
PrakashCs.net
30-Jun-14 4:19am
View
is it giving some error or returning empty result set?
PrakashCs.net
22-Jun-14 8:53am
View
try this now it should work
public void add(Student std)
{
string CS = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString;
using (SqlConnection con = new SqlConnection(CS))
{
con.Open();
SqlCommand cmd = new SqlCommand("insert into dab (name) values (@name)", con);
//cmd.Parameters.AddWithValue("@name", name);
cmd.Parameters.Add("@name", SqlDbType.NVarChar);
cmd.Parameters["@name"].Size = 4000;
cmd.Parameters["@name"].Value = name;
cmd.CommandType = CommandType.Text;
cmd.ExecuteNonQuery();
}
}
PrakashCs.net
22-Jun-14 8:50am
View
what error it is giving now, give me exact error message.
PrakashCs.net
22-Jun-14 4:33am
View
what exactly error it is giving? from where you call javascript methods?
PrakashCs.net
22-Jun-14 4:31am
View
best way to do this bind you datatable to gridview and export it
please refer this link
http://www.codeproject.com/Answers/788069/How-Can-I-Save-Data-In-A-Datatable-To-Excel-In-Asp#answer1
PrakashCs.net
22-Jun-14 4:17am
View
Do you need table structure or exactly what?
PrakashCs.net
20-Jun-14 1:39am
View
Could please post error ?
PrakashCs.net
20-Jun-14 1:23am
View
welcome friend.
PrakashCs.net
19-Jun-14 9:02am
View
correct Wes Aday,it is already mention in this link
http://www.codeproject.com/Questions/787658/Help-Excel-process-keep-runnung-export-excel-with
PrakashCs.net
13-Jun-14 13:21pm
View
Please read query string before and check whether it returns valid value.
PrakashCs.net
12-Jun-14 4:34am
View
on what basis you are going to map LocationIn and location LocationOut ?
Show More