16,016,345 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 .NET 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 saurabh kumar mahto (Top 38 by date)
saurabh kumar mahto
24-Mar-15 10:03am
View
Thanks Griff for your valuable advice.
saurabh kumar mahto
24-Mar-15 9:16am
View
Ryan,
If Gridview have less than 1MB data than Back button works fine as expected. but if it has more than 1 MB data than Back Button does not response.
saurabh kumar mahto
24-Mar-15 9:15am
View
If there is more than 1 MB data in GridView, Back button does not response.
saurabh kumar mahto
31-Jan-14 1:34am
View
and what about TRUNC ? what is its equivalent in T SQL ?
saurabh kumar mahto
2-Jan-14 12:24pm
View
Thanks Karthik :)
saurabh kumar mahto
6-Sep-13 3:20am
View
thanks ^Mo^
saurabh kumar mahto
4-Sep-13 9:16am
View
Thanks ^Mo^ for your valuable solution.
Can you please help with the encryption logic as well..
Thanks a lot.
saurabh kumar mahto
3-Sep-13 4:27am
View
Thank you Bala for your help..You are a genious.
saurabh kumar mahto
3-Sep-13 1:36am
View
Hi Bala..
Can you please help me out with some code sample regarding this..
Thanks a lot..
saurabh kumar mahto
2-Sep-13 7:26am
View
Thanks..
saurabh kumar mahto
1-Aug-13 8:52am
View
I really wonder why all these are not working !!
Still its not saving in the database ??
saurabh kumar mahto
1-Aug-13 7:21am
View
I tried with your solution and i am geeting an compiler error as below,
The best overloaded match for 'LMS2.controllers.dropDownList<lms2.models.employee>.LoadItems(System.Collection.Generic.IList<lms2.models.employee>,string,string)' has some invalid arguments.
I have made the class DropDownList<t> in the EmployeeController itself
saurabh kumar mahto
1-Aug-13 4:43am
View
Thanks Jameel,
I tried with your solution. changed in Edit.cshtml
from @Html.DropDownList("EmployeeID",string.Empty) To your solution
But no change in output.still the same ???
Am I correct ?
saurabh kumar mahto
16-Jul-13 8:38am
View
Instead of hardcoded values ,how can i get the list items from database table column "EmployeeName"
cities.Add(new SelectListItem { Value = "1", Text = "Delhi" });
saurabh kumar mahto
16-Jul-13 8:38am
View
Deleted
Instead of hardcoded values ,how can i get the list items from database table column "EmployeeName"
cities.Add(new SelectListItem { Value = "1", Text = "Delhi" });
saurabh kumar mahto
16-Jul-13 8:27am
View
Thank you Suresh for your spontaneous reply..I am trying your solution.Hope I get my answer..
saurabh kumar mahto
9-Jul-13 5:14am
View
Deleted
I can get the dropdown list of Employee Names for Reporting To column but on selection it does not gets saved to database.
I did below changes in Employeecontroler:
Added below line of code in Edit Action result.
ViewBag.EmpNo = new SelectList(db.Employees, "EmpNo", "EmployeeName", employee.EmpNo);
and in Edit View
<div class="editor-label">
@Html.LabelFor(model => model.EmpNo,"ReportingTo")
</div>
<div class="editor-field">
@Html.DropDownList("EmpNo", String.Empty)
@Html.ValidationMessageFor(model => model.EmpNo)
</div>
saurabh kumar mahto
9-Jul-13 1:57am
View
Thanks Teenustar for your response,
I did this as below:
public ActionResult Edit(int id)
{
Employee employee = db.Employees.Find(id);
ViewBag.DeptID = new SelectList(db.Departments, "DeptID", "DeptShortDesc", employee.DeptID);
ViewBag.DesID = new SelectList(db.Designations, "DesID", "ShortDesc", employee.DesID);
ViewBag.EmployeeID = new SelectList(db.Employees, "EmployeeID", "ReportingTo", employee.EmployeeID);
return View(employee);
}
//
// POST: /Employee/Edit/5
[HttpPost]
public ActionResult Edit(Employee employee)
{
if (ModelState.IsValid)
{
db.Entry(employee).State = EntityState.Modified;
db.SaveChanges();
return RedirectToAction("Index");
}
ViewBag.DeptID = new SelectList(db.Departments, "DeptID", "DeptShortDesc", employee.DeptID);
ViewBag.DesID = new SelectList(db.Designations, "DesID", "ShortDesc", employee.DesID);
ViewBag.EmployeeID = new SelectList(db.Employees, "EmployeeID", "ReportingTo", employee.EmployeeID);
return View(employee);
}
Edit View as below:
<div class="editor-label">
@Html.LabelFor(model => model.EmployeeID,"ReportingTo")
</div>
<div class="editor-field">
@Html.DropDownList("EmployeeID", String.Empty)
@Html.ValidationMessageFor(model => model.EmployeeID)
</div>
But getting error :
Unable to get value of the property 'call': object is null or undefined
saurabh kumar mahto
4-Feb-13 10:12am
View
compile time error
saurabh kumar mahto
4-Feb-13 9:57am
View
Here I tried doing this,
Private lAttribute As MyAutomation.AttributeMap
Public Function Value(ByVal pName As String, ByVal pValue As Object) As String
lAttribute.Add(pName, pValue)
Return pValue
End Function
i am getting this error prompt as below,
Argument not specified for parameter'pValue'of Public Sub Value(pName As String,pValue as Object)
in ModuleDBParam.vb
vDBSection.Value("SI::ESTEC::CommonSetup::Release") = "12A"
saurabh kumar mahto
4-Feb-13 4:23am
View
I just want this VB6 piece of code to be converted into VB.NET ?
can you please help me ?
saurabh kumar mahto
31-Jan-13 9:05am
View
Thanks for your helpful suggestions..
you are a genius.
saurabh kumar mahto
31-Jan-13 8:49am
View
Thanks Ryan for your reply..
I an using 4 Labels for 4 Client's status.
and i want to loop all this lables..?
lblClientStatusColor0,
lblClientStatusColor1,
lblClientStatusColor2,
lblClientStatusColor3...
saurabh kumar mahto
23-Jan-13 5:51am
View
thanks for your reply..
I am new to this language..can you please help me with some reference code snippet or link..
thanks a lot..
saurabh kumar mahto
14-Jan-13 9:22am
View
On Continuation...
I have a VB6 windows Application in running condition.based on client server architecture.
I want to migrate this App to VB.Net framework using WCF.
What steps do I need to follow to start up.
Please guide me..Thank you..
saurabh kumar mahto
14-Jan-13 6:34am
View
Thanks for your help..
saurabh kumar mahto
31-May-12 4:29am
View
Hi,
everything is working fine but a small issue here is that when i click any umber in DDL its not iterating the Gridview on postback,and i have to click on page index for chage reflection.?
i want it to reflect on immediate postback..
saurabh kumar mahto
31-May-12 2:40am
View
Hi,
everything is working fine but a small issue here is that when i click any umber in DDL its not iterating the Gridview on postback,and i have to click on page index for chage reflection.?
i want it to reflect on immediate postback..
saurabh kumar mahto
31-May-12 1:39am
View
thanks sandeep for your response..its working now.
saurabh kumar mahto
31-May-12 1:36am
View
thanks a lot Bhargava..for your great support..
its working.
saurabh kumar mahto
30-May-12 8:25am
View
ok tell me how to write this ...
Dim ddlPager As New DropDownList ...in c#
saurabh kumar mahto
30-May-12 8:25am
View
ok tell me how to write this ...
Dim ddlPager As New DropDownList ...in c#
saurabh kumar mahto
30-May-12 8:24am
View
ok tell me how to write this ...
Dim ddlPager As New DropDownList ...in c#
saurabh kumar mahto
30-May-12 8:13am
View
ya i tried it its showing
-- line 1 col 9: invalid NonModuleDeclaration
how to get rid off..?
can you please help me out in this with the converted code in c#
saurabh kumar mahto
30-May-12 7:49am
View
hey can you please help me with this..
please send me the converted code..i will very greatful to you..
thanks..
saurabh kumar mahto
30-May-12 7:49am
View
hey thanks for urs reply..i actually tried this option but this does not worked..???
saurabh kumar mahto
24-May-12 7:17am
View
thanks for your valuable links..my issue got resolved...
saurabh kumar mahto
24-May-12 7:17am
View
thanks Code 89 for your valuable ans..my issue got resolved..
Show More