16,004,686 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 Vivek.anand34 (Top 200 by date)
Vivek.anand34
9-Oct-19 2:51am
View
yes, thank you actually i removed text that'y why it didn't show text. i added text it works fine.
$("#ddlBillArea").select2("trigger", "select", {
data: { id: val.billing_area_code, text: val.bill_area_name }
});
Vivek.anand34
28-Sep-19 3:29am
View
and another thing i have filter dropdown. without filter dropdown its binded. with filter dropdown not bind.
Vivek.anand34
23-Jan-18 22:45pm
View
sorry am new to php.. how to check apache config. What information need to check in apache
Vivek.anand34
23-Jan-18 7:29am
View
php is installed. wamp server is there in system.
Vivek.anand34
23-Jan-18 6:59am
View
Thank you.. I don't know what is the problem. but i run html code in visual studio. now its displays.
Vivek.anand34
20-Jan-18 2:45am
View
I tried simple html for audio.. its also not showing download option..
Vivek.anand34
27-Oct-17 8:02am
View
Thank you. its working.. am using this
lstCities.Sort();
Vivek.anand34
27-Oct-17 6:36am
View
S working fine.. but how to change order.. can i change order of the cities..
it showing not asc or desc all mixed.
Vivek.anand34
11-Aug-17 23:25pm
View
without that button code executes well in pageload. with button didn't in pageload.
Vivek.anand34
11-Aug-17 7:14am
View
I gave that function like this its right..
$(document).ready(function () {
BindGridview();
});
Vivek.anand34
11-Aug-17 7:07am
View
No this is also not come in page load
Vivek.anand34
1-Aug-17 4:53am
View
No.
Vivek.anand34
1-Aug-17 4:35am
View
S I added but didn't work..
Vivek.anand34
1-Aug-17 4:23am
View
I updated the what i have tried..
Vivek.anand34
25-Jul-17 6:14am
View
i think its cache problem..
Vivek.anand34
25-Jul-17 6:13am
View
actually before append i cleared table and again bind.. now its ok.
$("#tblEmployee").empty();
Vivek.anand34
25-Jul-17 5:28am
View
no..
Vivek.anand34
18-Jul-17 6:34am
View
yes he default assigned for admin and users.. suppose i added one more role in db then how it executes.
Vivek.anand34
17-Jul-17 12:41pm
View
I restrict in web.config then user cant access via url. it comes again to login page. Thats y am using this.
Vivek.anand34
17-Jul-17 12:40pm
View
Why i use web. Config. The user directly type the url and open the screens. Thats why
Vivek.anand34
12-Jun-17 3:04am
View
I used like this:
SqlParameter[] parameters ={new SqlParameter("@Action","INSERT"),
new SqlParameter("@Location",fields.Location),
new SqlParameter("@CrBy",fields.CrBy),
new SqlParameter("@CompCode",fields.CompCode)};
Vivek.anand34
12-Jun-17 2:48am
View
Thank you, how i give parameter in another class..
Vivek.anand34
12-Jun-17 2:24am
View
can i add like this then, how to use this.
public int intSPExecuteNonQuery(string StoredProcName, sqlparamters[] param){
......
cmd.Parameters.Add(parameters);
}
Vivek.anand34
4-May-17 0:27am
View
above my code executed by how save into db means: for eg. I have 10 rows. 1 st columns saved in 10 rows 2nd columns saved in next 10 rows, 3rd column saved in next 10 rows like this... i think using is problem... pls. c my code above..
Vivek.anand34
27-Apr-17 5:19am
View
Yes..... its right.....
Vivek.anand34
27-Apr-17 4:55am
View
Ok.. I need send mail based on this date..........
Vivek.anand34
26-Apr-17 8:47am
View
Ya i added DATEADD(day,3,DATE_OF_COMPLAINT) function..
Vivek.anand34
26-Apr-17 8:42am
View
Above code its right.
Vivek.anand34
26-Apr-17 8:42am
View
Ok..
Vivek.anand34
26-Apr-17 8:23am
View
'strComplaintDate' is db date and check today. if yes then send mail and update date 3 days. its right.
Vivek.anand34
26-Apr-17 8:22am
View
what i have tried updated...
Vivek.anand34
26-Apr-17 8:19am
View
I updated question. plz. see it.
Vivek.anand34
17-Apr-17 0:59am
View
sorry, code is in error above this code thats why its not executed.. i solved that error. now executed...
Vivek.anand34
11-Apr-17 5:54am
View
Deleted
Thank you for your support..
Vivek.anand34
11-Apr-17 5:54am
View
I used code from this site: its executed..
https://www.codeproject.com/Tips/842832/How-to-Download-Large-Files-from-ASP-NET-Web-Forms
Vivek.anand34
11-Apr-17 4:58am
View
bytearray as not a member of system.io.filestream
Vivek.anand34
11-Apr-17 4:35am
View
Then how to download that kind of files.
Vivek.anand34
11-Apr-17 4:33am
View
What is doc here... Using ms As New MemoryStream(doc.ByteArray)
Vivek.anand34
11-Apr-17 3:53am
View
where i use int64 i not declared any int values
Vivek.anand34
10-Apr-17 9:08am
View
Yes, solved my issue.. Thank You... I updated solution above.
Vivek.anand34
10-Apr-17 8:43am
View
For Each MyControl As RepeaterItem In rptBackups.Items
Dim filePaths() As String = Directory.GetFiles("D:/FTP/DB Backup/")
Dim chkdelete As CheckBox = DirectCast(MyControl.FindControl("chkSelect"), CheckBox)
If chkdelete.Checked Then
End If
Next
Vivek.anand34
10-Apr-17 8:38am
View
thats only i don't know to check....
Vivek.anand34
10-Apr-17 8:26am
View
Yes, each rows contains filenames, download button, checkbox...
Vivek.anand34
10-Apr-17 8:10am
View
Actually its a single row delete code. i need to multiple rows delete option using checkbox. i modified that is an error. please can u modify it..
.
Vivek.anand34
10-Apr-17 7:54am
View
I solved issue by using this code:
Dim multi As String() = strMail.Split(",")
For Each ccs As String In multi
mm.CC.Add(New MailAddress(ccs))
Next
Vivek.anand34
8-Apr-17 5:11am
View
Executed this:
Dim multi As String() = strMail.Split(",")
For Each ccs As String In multi
mm.CC.Add(New MailAddress(ccs))
Next
Vivek.anand34
8-Apr-17 3:02am
View
I tried like this: this executed...
Dim multi As String() = strMail.Split(",")
For Each ccs As String In multi
mm.CC.Add(New MailAddress(ccs))
Next
Vivek.anand34
8-Apr-17 2:32am
View
Yes thank you... i solved issued by:
var test = new FormData();
var length1 = $("#tblInvoices2").children().length;
var fileUpload;
var files;
for (var i = 0; i < length1; i++) {
fileUpload= $("#tblInvoices2").find(".files").get(i);
files= fileUpload.files;
for (var j = 0; j < files.length;j++) {
test.append(files[j].name, files[j]);
}
}
Vivek.anand34
28-Mar-17 1:22am
View
then, how fb, twitter,... can get path for image upload.
Vivek.anand34
28-Mar-17 1:21am
View
How to overcome this.. now i need take path in my project.
Vivek.anand34
23-Mar-17 1:03am
View
I have filename and filepaths in html table... when i click 'send' button those files are attached and send mail.
Vivek.anand34
23-Mar-17 1:01am
View
Thank you. one attachement is working but i need to get multiple files from table..
Vivek.anand34
21-Mar-17 7:57am
View
no..
Vivek.anand34
15-Mar-17 7:13am
View
ya its executed.. Thank you....
Vivek.anand34
15-Mar-17 7:10am
View
ya its executed.. Thank you....
Vivek.anand34
15-Mar-17 6:56am
View
ya i added.
Vivek.anand34
15-Mar-17 6:56am
View
actually its check the row by row. for eg. check 1st row already exist message then check 2nd row not exist so values inserted...
Vivek.anand34
15-Mar-17 6:48am
View
else statement also execute after if condition
Vivek.anand34
13-Mar-17 1:38am
View
I want message file transfer while copying the file "please wait file is copying".
Vivek.anand34
13-Mar-17 1:10am
View
any link or some code..
Vivek.anand34
10-Feb-17 1:00am
View
I tried following this link:
http://www.c-sharpcorner.com/UploadFile/ansh06031982/bind-crystal-report-in-Asp-Net-application-and-export-pdf-a/
Vivek.anand34
6-Feb-17 7:54am
View
not page also loaded when i click button its cleared.
Vivek.anand34
6-Feb-17 7:45am
View
yes. what is the solution for that..
Vivek.anand34
6-Feb-17 4:54am
View
thank u. its useful for me.
Vivek.anand34
26-Dec-16 6:48am
View
I need in x axis in chart like this 10-20, 20-30, 30-40
I have values in database.. row by row, 10,20,30,40
Vivek.anand34
30-Nov-16 5:28am
View
Thank you..Now it executes.. i left form tag in masterpage its a problem. i solved it.. forms look like..
Vivek.anand34
30-Nov-16 5:27am
View
I copied full code not fully displaying in screen...
Vivek.anand34
27-Nov-16 23:52pm
View
No.. its also same.. appended field did't sum...
Vivek.anand34
26-Nov-16 6:14am
View
Appended row can't add in the total.. how to resolve it..
Vivek.anand34
26-Nov-16 5:09am
View
Thank You its Executed...
when pagination comes it takes first page total only..
Vivek.anand34
25-Nov-16 5:46am
View
Ya.. Thank you.. I used like this. its executed....
$("table").delegate(".QtyReq", "keyup", function () {
$(this).addClass('selected').siblings().removeClass('selected');
var unitprice = $(this).closest("tr").find('.UnitPrice');
var qtyreq = $(this).closest("tr").find('.QtyReq');
var total = $(this).closest("tr").find('.Total');
total.val(unitprice.val() * qtyreq.val());
});
Vivek.anand34
25-Nov-16 5:38am
View
Deleted
i design to onclick event ah.
Vivek.anand34
24-Nov-16 0:23am
View
Hi.. anyone help this concept.still didn't solve this..
Vivek.anand34
23-Nov-16 7:25am
View
please can u send that code...
Vivek.anand34
23-Nov-16 6:47am
View
how to find the row....
Vivek.anand34
22-Nov-16 4:20am
View
and there what is json, and how i give in url..
i have given like this
var json = { "id": id, "itemname": itemname, "ircode": ircode, "icode": icode, "qtyreq": qtyreq };
var url1 = '@Url.Action("GetGrid", "MRD")';
Vivek.anand34
22-Nov-16 4:17am
View
I use in this site it executed:
http://stackoverflow.com/questions/17066636/parsing-json-objects-for-html-table
there accepted answer click jsfiddle..
Vivek.anand34
22-Nov-16 3:58am
View
$(document).ready(function () {
$.getJSON(url1, json,
function (json) {
var tr;
for (var i = 0; i < json.length; i++) {
tr = $('');
tr.append("" + json[i].id + "");
tr.append("" + json[i].itemname + "");
tr.append("" + json[i].itemcode + "");
tr.append("" + json[i].ircode + "");
tr.append("" + json[i].qtyreq + "");
$('#divgrid').append(tr);
}
});
});
am using this code to append but didn't append.. any error in this code.
Vivek.anand34
22-Nov-16 3:19am
View
see above comment grid coding that is row. i want to append in that row.. but there is no row id.. how to declare in that grid..
Vivek.anand34
21-Nov-16 23:38pm
View
append means dynamically store values in grid right.. but i need it from db. suppose i want to update means i will update based on Id..
Vivek.anand34
21-Nov-16 8:21am
View
i will give my source and db can you see... my screen
Vivek.anand34
21-Nov-16 7:32am
View
This is my grid. how to append in this grid:
@grid.GetHtml(
htmlAttributes: new { id = "grid" },
fillEmptyRows: false,
mode: WebGridPagerModes.All,
firstText: "<< First",
previousText: "< Prev",
nextText: "Next >",
lastText: "Last >>",
columns: new[] {
grid.Column("Id", header: "ID", canSort: true),
grid.Column(header: "Item Name",format: @
@item.ItemName
@Html.TextBox("Item_Name_" + (int)item.Id, (string)item.ItemName, new {@class="ItemName", @style = "display:none" })
),
grid.Column(format: @
@item.IRateCode
@Html.TextBox("ItemR_Code_" + (int)item.Id, (string)item.IRateCode, new { @class = "IRCode", @style = "display:none" })
),
grid.Column(header: "Item Code",format: @
@item.ItemCode
@Html.TextBox("Item_Code_" + (int)item.Id, (string)item.ItemCode, new { @class = "ItemCode", @style = "display:none" })
),
grid.Column(header: "Unit Price",format: @
@item.UnitPrice
@Html.TextBox("Unit_Price_" + (int)item.Id, (int)item.UnitPrice, new { @class = "UnitPrice", @style = "display:none" })
),
grid.Column(header: "Qty Requested",format: @
@item.QtyRequested
@Html.TextBox("Qty_Req_" + (int)item.Id, (decimal)item.QtyRequested, new { @style = "display:none" })
),
// grid.Column(header: "MRNo",format: @
@item.MRNo
@Html.TextBox("MR_No_" + (int)item.Id, (string)item.MRNo, new { @style = "display:none" })
),
grid.Column(header: "Action",format:@<text>
Edit
Update
Cancel
Delete
)
})
Vivek.anand34
21-Nov-16 6:17am
View
can we bind data from db without append...
Vivek.anand34
21-Nov-16 6:08am
View
Ok I will try..
Vivek.anand34
21-Nov-16 5:10am
View
and were i declare that 'someValue'.
Vivek.anand34
21-Nov-16 5:09am
View
here propertyName means below 'mrno' right.
var mrno = $("#MRNo").val();
Vivek.anand34
21-Nov-16 4:46am
View
sorry, I am new to mvc can u send sample code how to read it..
Vivek.anand34
21-Nov-16 4:22am
View
above code is my save method code.. how to get values in success method.
Vivek.anand34
21-Nov-16 4:16am
View
How to attach file here.. and see above its my save code..
Vivek.anand34
21-Nov-16 3:16am
View
actually the grid values comes from database.. when i click the save button in grid it saved and show in grid.
Vivek.anand34
21-Nov-16 2:33am
View
How to append it.. can u sample code..
Vivek.anand34
21-Nov-16 1:05am
View
Actually in script window.location.replace("ShowData"); without this line. save but didn't bind in grid. with this line binded. but header textbox cleared.
Vivek.anand34
21-Nov-16 1:04am
View
Deleted
Actually in script window.location.replace("ShowData"); without this line. save but didn't bind in grid. with this line binded. but header textbox cleared.
Vivek.anand34
21-Nov-16 1:01am
View
3 days am trying not resolve this problem.. please anyone help...
am save using javascript and [HTTPGET] in controller.
Vivek.anand34
19-Nov-16 2:36am
View
I have updated my question. above show data function I gave Remarks="Vivek" its executed. but i need what i enter in remarks textbox..
Vivek.anand34
15-Nov-16 1:25am
View
Ok i will try......
Vivek.anand34
15-Nov-16 1:07am
View
actually without enter the mandantory field when i click the save button the item name fields are cleared in the dynamically added textbox
Vivek.anand34
29-Aug-16 1:52am
View
Display it : echo "You are visitor number $counterVal to this site";
Vivek.anand34
29-Aug-16 1:51am
View
Deleted
Display it : echo "You are visitor number $counterVal to this site";
Vivek.anand34
29-Aug-16 1:50am
View
I have used this code it executed... Thanks...
Vivek.anand34
29-Aug-16 1:49am
View
session_start();
$counter_name = "counter.txt";
// Check if a text file exists. If not create one and initialize it to zero.
if (!file_exists($counter_name)) {
$f = fopen($counter_name, "w");
fwrite($f,"0");
fclose($f);
}
// Read the current value of our counter file
$f = fopen($counter_name,"r");
$counterVal = fread($f, filesize($counter_name));
fclose($f);
// Has visitor been counted in this session?
// If not, increase counter value by one
if(!isset($_SESSION['hasVisited'])){
$_SESSION['hasVisited']="yes";
$counterVal++;
$f = fopen($counter_name, "w");
fwrite($f, $counterVal);
fclose($f);
}
Vivek.anand34
24-Aug-16 6:07am
View
that letter is for eg. i said
Vivek.anand34
24-Aug-16 6:06am
View
number
Vivek.anand34
18-Aug-16 23:32pm
View
s s Thank u... i changed to this.
$(document).ready(function () {
setupAutoComplete();
});
autocomplete is working now.. but selected value changed is changing first row values...
Vivek.anand34
18-Aug-16 23:26pm
View
I put function like this:
var setupAutoComplete = function () {
//Autocomplete code
}
i give setupAutocomplete(); from 2nd row its works.. Now frst row didn't work.
how to put this fn in page load. now i gave button event so from 2nd row its working.
Vivek.anand34
18-Aug-16 12:38pm
View
remove row function are worked in all row.. but this autocompletes not working.
Vivek.anand34
18-Aug-16 12:35pm
View
c above code "Add row" script. any autocomplete function can add in that.
Vivek.anand34
18-Aug-16 12:32pm
View
NO. its too first row only execute.
Vivek.anand34
18-Aug-16 10:08am
View
i used class also. but its too execute 1st row only
Vivek.anand34
18-Aug-16 9:58am
View
1st row is textbox like this @Html.TextBox("[0].ItemName", null, new { @class = "form-control", autocomplete = "off" })
from 2nd row like this: <input type="text" id="[' + rowCount + '].ItemName" name="[' + rowCount + '].ItemName" class="form-control" />
any prob in this.
Vivek.anand34
18-Aug-16 9:49am
View
i put unique id ("ItemName[0],ItemName[1]...) but now 1st line also didn't work..
Vivek.anand34
18-Aug-16 6:00am
View
Actually, $("#ItemName") its a 'Id' or 'name'.. Its Id means all Id in textbox same right.
Vivek.anand34
12-Aug-16 2:11am
View
I have updated my script code. its not auto increment row count.
Vivek.anand34
12-Aug-16 2:08am
View
i found one solution for that but its static: i give input name field like this.
<input type="text" name="[0].IRateCode" />
<input type="text" name="[1].IRateCode" />
<input type="text" name="[2].IRateCode" />
now its saved. but how to auto increment that number in javascript.
Vivek.anand34
29-Jul-16 0:33am
View
What Function is this: OnBegin = "onBeginFunctionHere",
OnSuccess = "onSuccessFunctionHere",
OnFailure = "onFailureFunctionHere",
OnComplete = "onCompleteFunctionHere"
Vivek.anand34
25-Jul-16 3:11am
View
Yes Now Errors solved... Thank You Very Much......
Vivek.anand34
25-Jul-16 2:32am
View
I have updated my overall code above.. Error: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Telecom.ViewModel.VwModel]', but this dictionary requires a model item of type 'Telecom.ViewModel.VwModel'.
Vivek.anand34
25-Jul-16 2:30am
View
I have updated overall code above..
Vivek.anand34
25-Jul-16 1:07am
View
public ActionResult Create()
{
MRHdr objMRHdr = new MRHdr() { MRNo = "", MRDate = DateTime.Now };
MRDtl objMRDtl = new MRDtl() { IRateCode = "", ItemCode = "", QtyRequested = 0 };
List model = new List();
model.Add(new VwModel { MRHdr = objMRHdr, MRDtl = objMRDtl });
return View(model);
}
Vivek.anand34
25-Jul-16 1:06am
View
public ActionResult Create()
{
MRHdr objMRHdr = new MRHdr() { MRNo = "", MRDate = DateTime.Now };
MRDtl objMRDtl = new MRDtl() { IRateCode = "", ItemCode = "", QtyRequested = 0 };
List<vwmodel> model = new List<vwmodel>();
model.Add(new VwModel { MRHdr = objMRHdr, MRDtl = objMRDtl });
return View(model);
}
Vivek.anand34
25-Jul-16 1:02am
View
Same Error: u see above view, that given model is correct or not..
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Telecom.ViewModel.VwModel]', but this dictionary requires a model item of type 'Telecom.ViewModel.VwModel'.
Vivek.anand34
23-Jul-16 4:47am
View
s am using this only..
Vivek.anand34
23-Jul-16 3:00am
View
Same Error: u see above view, that given model is correct or not..
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Telecom.ViewModel.VwModel]', but this dictionary requires a model item of type 'Telecom.ViewModel.VwModel'.
Vivek.anand34
23-Jul-16 2:36am
View
How to initialize properties in object for eg.
Vivek.anand34
23-Jul-16 2:31am
View
Thanks.. But Error like this:
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Telecom.ViewModel.VwModel]', but this dictionary requires a model item of type 'Telecom.ViewModel.VwModel'.
Vivek.anand34
21-Jul-16 6:15am
View
Deleted
CS1061: 'System.Collections.Generic.IEnumerable<telecom.viewmodel.vwmodel>' does not contain a definition for 'MRHdr' and no extension method 'MRHdr' accepting a first argument of type 'System.Collections.Generic.IEnumerable<telecom.viewmodel.vwmodel>' could be found (are you missing a using directive or an assembly reference?)
Vivek.anand34
21-Jul-16 6:14am
View
I don't know how to use multiple modal in single view.. for eg.. I need to save Text box value and Grid values are two different tables... can you send any links.
Vivek.anand34
21-Jul-16 5:55am
View
Deleted
'System.Collections.Generic.IEnumerable<telecom.viewmodel.vwmodel>' does not contain a definition for 'MRHdr' and no extension method 'MRHdr' accepting a first argument of type 'System.Collections.Generic.IEnumerable<telecom.viewmodel.vwmodel>' could be found (are you missing a using directive or an assembly reference?)
@Html.TextBoxFor(model => model.MRHdr.MRNo)
How to pass two modals in controller.. I use one modal in that. i think thats is the prob.
Vivek.anand34
21-Jul-16 5:52am
View
Deleted
yes its cleared...Now error like this.... The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Telecom.Models.MRDtl]', but this dictionary requires a model item of type 'Telecom.ViewModel.VwModel'.
Vivek.anand34
21-Jul-16 5:24am
View
Thank U.. But another error comes now. CS1501: No overload for method 'Write' takes 0 arguments
@{Html.RenderPartial("_MRDtls");}
Vivek.anand34
19-Jul-16 2:26am
View
I didn't done code... i don't knw how to do it.. use one table means i done.. here two table how to two modals in one screen.
Vivek.anand34
18-Jul-16 7:48am
View
<p class="itemcode"> @Html.Display("ItemCode") </p>
$('.itemcode').html(data.icode);
this type working.. but showing validation error "Required Item code"
Vivek.anand34
18-Jul-16 7:43am
View
s. I found the problem. but solution can u tell me.. I gave ItemCode field is [Required] but values didn't comes to display field thats problem.
Vivek.anand34
18-Jul-16 7:32am
View
I have updated my question.. actually when click the submit button the page loads and cleared all the fields..
Vivek.anand34
18-Jul-16 6:00am
View
Ya i change code little bit now executed:
[HttpPost]
public ActionResult Edit(Vw_Items itemrates)
{
if (ModelState.IsValid)
{
var currentPerson = db.ItemRates.FirstOrDefault(p => p.Id == itemrates.Id);
currentPerson.UnitPrice = itemrates.UnitPrice;
currentPerson.GetDate = DateTime.Now;
currentPerson.GetUser = Session["LogedUser"].ToString();
db.Entry(currentPerson).State = EntityState.Modified;
db.SaveChanges();
return RedirectToAction("Index");
}
return View(itemrates);
}
Vivek.anand34
18-Jul-16 5:17am
View
How to resolve this problem.. anyone tell idea please..
Vivek.anand34
18-Jul-16 4:23am
View
I think its take all columns to update.. but i want to update 'ItemCode' and 'Unit Price' that is the prob. i think. And All fields are display fields ItemCode and Unit Price only textbox field
Vivek.anand34
18-Jul-16 4:22am
View
Deleted
I retrieve values from view 'vw_items' and i want to update 'itemrates' table.
Vivek.anand34
18-Jul-16 4:20am
View
thank you. but this error: System.Data.SqlClient.SqlException: View or function 'dbo.Vw_Items' is not updatable because the modification affects multiple base tables.
Vivek.anand34
13-Jul-16 8:21am
View
if any you have done before send some concepts...
Vivek.anand34
13-Jul-16 8:19am
View
der posted 4 years before and that is accepted soln. so don't know they are reply or not. tats y i ask with u all.. what is the soln for that.
Vivek.anand34
30-Jun-16 1:42am
View
Then.. IEnumerable dynamictable.models.tblcustomerinformation
here DynamicTable is "The Type or namespace name could not be found error message.
Vivek.anand34
30-Jun-16 1:33am
View
Thank u... What is DemoEntity in HomeController code...
Vivek.anand34
29-Jun-16 23:25pm
View
Ok thank u....
Vivek.anand34
29-Jun-16 4:28am
View
I updated my question. what i have done..
Vivek.anand34
5-May-16 8:32am
View
actually in server system place power off won't be able to use the application. its right.. any solution for this problem. or install application in client system also then if it possible.
Vivek.anand34
24-Apr-16 8:36am
View
can't update when click the logout button... logout button sp and code above i given.
Vivek.anand34
24-Apr-16 1:19am
View
Deleted
But, this Executed:
IF @mode = 'CHANGELOGIN'
BEGIN
UPDATE [Users]
SET IsLogin = 1 ,
userSession = @sessionID ,
LastLogin = GETDATE()
WHERE LoginID = @loginID
SELECT 1
END
Vivek.anand34
24-Apr-16 1:18am
View
Deleted
I solved this can't find table problem... Now can't update the values. am using sp for this.
IF @mode = 'LOGOUT'
BEGIN
UPDATE [Users]
SET IsLogin = 0 ,
userSession = ''
WHERE LoginID = @loginID
SELECT 0
END
Vivek.anand34
23-Apr-16 3:22am
View
s i got... but suppose he sold to others then how we know that..
Vivek.anand34
22-Apr-16 2:41am
View
Actually we do project for another company. we need to host software in his server. But they can't take that software from server to another server.. i.e, he didn't sell our software to others..
Vivek.anand34
22-Apr-16 1:20am
View
its web application, Actually i hosted application in server.. They need not take a copy of application to another server.
Vivek.anand34
22-Apr-16 1:20am
View
Actually i hosted application in server.. They need not take a copy of application to another server.
Vivek.anand34
22-Apr-16 1:18am
View
I have hosted application in server. i need to restrict to copy of application or can't install in another server.
anyone help me..
Vivek.anand34
22-Apr-16 1:05am
View
can i restrict the copy of application in server to another server..
Vivek.anand34
19-Apr-16 6:23am
View
how to bind.. if gridview then gridview1.datasouce=dt; gridview1.databind();
here div1.datasource is not possible.. can u send any samples
Vivek.anand34
19-Apr-16 2:50am
View
yes, but i bind values from database.. how to bind values inside that div.
Vivek.anand34
16-Apr-16 10:16am
View
Its in css.. i need asp .net c# code
Vivek.anand34
16-Apr-16 0:59am
View
Sorry No time to try its urgent work tats y..
Vivek.anand34
12-Apr-16 23:38pm
View
It showing in config manager but I can't enable it.. "The Request failed or the service didn't respond in a timely fashion. consult the event log or other applicable error logs for details" message showing When i start the agent services in config mgr.
Vivek.anand34
26-Feb-16 7:07am
View
i stored like this then.. how i show like
Weeks 1 2 3 4 5 6
-------------------------------------
Monday Eng Sci Maths Social Biology
Vivek.anand34
15-Feb-16 6:34am
View
no. how to debug it..
Vivek.anand34
15-Feb-16 5:50am
View
Actually, when i open screen and Enter the value then click save, its works fine. Enter the next record the calculation is not working..
Vivek.anand34
15-Feb-16 3:14am
View
Keyup means keyboard keyup ryt.. But, y 2nd time its not execute.. i no need on load event.. without pageload i need, thats why i choose java script code.
Vivek.anand34
15-Feb-16 2:18am
View
above tat code 'txtFeesAmt' enter the amount. the total values is to be display in footer.
Vivek.anand34
15-Feb-16 2:15am
View
i have updated question.. but its not properly displaying.. so part of Item template tag.
Vivek.anand34
6-Feb-16 1:49am
View
I have solved this problem... Actually, I created same temp table in code and database. I deleted temp table in code, now its working. that is a problem
Vivek.anand34
4-Feb-16 7:36am
View
I have downloaded from this site:
http://phpexcel.codeplex.com/
Vivek.anand34
4-Feb-16 4:16am
View
'Exportexcel' is downloaded from online. and attach in third-party folder.
Vivek.anand34
4-Feb-16 4:11am
View
Code moved to OP's question.
Vivek.anand34
3-Feb-16 23:59pm
View
no text empty line in tat..
Vivek.anand34
3-Feb-16 7:11am
View
Ya it solved now...
Vivek.anand34
2-Feb-16 1:46am
View
i have reduced fields in 'chef_orders_pending_temp' view to what i need. Now reduced execution time...
Vivek.anand34
22-Dec-15 2:04am
View
I need Which Table They Modified and time, IPAddress.
Vivek.anand34
22-Dec-15 2:02am
View
Deleted
How to View Values That above function GetCurrentIP
Vivek.anand34
18-Dec-15 2:04am
View
I don't knw about Events.. I want to knw what is Event?
Vivek.anand34
23-Nov-15 4:14am
View
Thanks For Help
Vivek.anand34
23-Nov-15 4:14am
View
Actually its My Mistake I converted the datetime to date its a problem. I solved it.. acutally in db i put datetime format. and Textbox (MM/dd/yyyy) format. It executes now...
Vivek.anand34
23-Nov-15 2:22am
View
yyyy-MM-dd is not good for client.. thats why am trying dd/MM/yyyy format... I will InvariantCulture Property above link...
Vivek.anand34
23-Nov-15 2:09am
View
in database its saved yyyy-mm-dd with time format...
Vivek.anand34
19-Nov-15 4:44am
View
firewall is off mode in both systems.
Vivek.anand34
19-Nov-15 4:22am
View
no network problem.. how to increase timeout..
Vivek.anand34
2-Nov-15 5:01am
View
top 1 is only one row return.. but i need every Items minimum id..
Vivek.anand34
2-Nov-15 4:06am
View
Then Top clause is an error.. when i put top(100) then only executed...
Vivek.anand34
2-Nov-15 3:56am
View
This is also same problem.. all Rows returns..
Vivek.anand34
2-Nov-15 3:25am
View
CTE Means
Vivek.anand34
24-Oct-15 6:38am
View
sql server agent is not showing in my sql server 2008 R2
Vivek.anand34
21-Oct-15 9:11am
View
On my Solution Explorer > Reference > Right click > Add Reference > Project Tab
I add 2 references: 1. ClosedXML dll and
2. DocumentFormat.OpenXML dll
Now Works Well.. Thank You for you reference.
Vivek.anand34
21-Oct-15 0:40am
View
please can u send some code...
Vivek.anand34
20-Oct-15 5:43am
View
anyone help me.............
Vivek.anand34
20-Oct-15 3:02am
View
not execute means values entered in the textbox then didn't filter the values in gridview. please see above link.
Vivek.anand34
12-Oct-15 9:19am
View
Thank You its working now....
Vivek.anand34
12-Oct-15 8:30am
View
actually in where condition i put 2 methods:
1. DCNO=@dc then "Must declare the scalar variable "@dc"."
2. if i put DCNo=' + @dc+ ' then "Invalid Column name error shown"
Vivek.anand34
12-Oct-15 8:21am
View
DECLARE @cols AS NVARCHAR(MAX),
@colsName AS NVARCHAR(MAX),
@query AS NVARCHAR(MAX),
@dc as nvarchar(MAX)
select @cols = STUFF((SELECT distinct ',' + QUOTENAME(ItemCode +'_'+c.col)
from Vw_InOutWard
cross apply (
select 'TotalCount' col union all select 'TotalAmount') c
FOR XML PATH(''), TYPE).value('.', 'NVARCHAR(MAX)') ,1,1,'')
select @colsName = STUFF((SELECT distinct ', ' + QUOTENAME(ItemCode +'_'+c.col) +' as [' + ItemCode + case when c.col = 'TotalCount' then ']' else ' Rate]' end
from Vw_InOutWard
cross apply
(select 'TotalCount' col union all select 'TotalAmount') c
FOR XML PATH(''), TYPE).value('.', 'NVARCHAR(MAX)'),1,1,'')
set @query = 'SET @DCNo ='+Cast(@dc as VARCHAR)+'; SELECT DCNo,DCDate,FromSupName,FromAddress,FromContNo,ToSupName,ToAddress,ToContNo,RefferedBy, ' + @colsName + ' from (select DCDate, DCNo,FromSupName,FromAddress,FromContNo,ToSupName,ToContNo,RefferedBy,ToAddress, ItemCode +''_''+col col, value from(select DCDate, ItemCode, DCNo,FromSupName,FromAddress,FromContNo,ToSupName,ToAddress,ToContNo,RefferedBy,cast(Qty as numeric(10, 2)) totalcount,cast(Rate as numeric(10, 2)) totalamount
from Vw_InOutWard where DCNo=@dc) src
unpivot(value for col in (totalcount, totalamount)) unpiv ) s pivot
(sum(value) for col in (' + @cols + ')) p '
execute(@query)
Vivek.anand34
12-Oct-15 8:19am
View
cmd = new SqlCommand("TEST", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@dc", txtDCNo.Text);
cmd.Connection = con;
cmd.ExecuteNonQuery();
Vivek.anand34
12-Oct-15 5:56am
View
Iput this line in front end:
cmd.Parameters.AddWithValue("@DcNo", txtDCNo.Text);
object reference not set an instance of an object is displayed
Vivek.anand34
12-Oct-15 3:38am
View
ya i put tat line.. but underlined the @DCNO ' must declare the scalar variable @DCNO '
Vivek.anand34
12-Oct-15 2:43am
View
actually here dc no field is there.. i need to retrieve Where DCNo='DC-001'
or give parameter @dcno then how to call this paramter in asp .net c# code i.e, textbox value.
Vivek.anand34
6-Oct-15 11:30am
View
Yes Yes.. I Solved.. now Ouput came exactly..
Thank You for your response..
Vivek.anand34
6-Oct-15 11:22am
View
Thanks. but y i put two times in this line:
for col in ([10prdp_rate], [10prdp_mtqty], [10p_rate], [10p_mtqty], [D-Clamp_rate], [D-Clamp_mtqty], [D_C_rate], [D_C_mtqty])
Show More