15,881,413 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 Vi(ky (Top 121 by date)
Vi(ky
19-Jan-15 4:40am
View
Thanks for your consideration :)
Please let me know what you need to understand.
Vi(ky
19-Jan-15 4:37am
View
Thanks for reply. I use your code and it works but not as I want. Actually problem is In my Treeview some TreeViewItems are invalid. I show those invalid items with red background & I done it but when user add a new TreeViewItem from UI (there is option to add) or user can edit the TreeView Item values. I need mechanism that change background color of TreeView Item based on validation. I already written the code for validation but I can't understand how to change item background when user edit or add new items?
Vi(ky
17-Dec-14 1:12am
View
No
Vi(ky
17-Dec-14 1:11am
View
yes, CurrentIndex property is changing.
Vi(ky
9-Dec-14 6:22am
View
You can write the code where you writing the business rules.
Vi(ky
7-Oct-14 7:49am
View
Thank you so much :)
Vi(ky
15-Jul-14 5:01am
View
make sure Model has values.
Vi(ky
14-Jul-14 2:49am
View
sure :)
Vi(ky
8-Jul-14 5:02am
View
Yes full row values. It will hold the object of Class customer with property values and you can access value like result.Id, result.Name etc.
Vi(ky
8-Jul-14 2:58am
View
You can use same query or If You are using Entity Framework then use LINQ query Like
var result = (from c in DbContext.customer
where c.name == "salma"
select c).FirstOrDefault();
Vi(ky
4-Jul-14 1:56am
View
You can use "text" property of form.
Vi(ky
4-Jul-14 1:50am
View
try window.print();
Vi(ky
26-Jun-14 3:07am
View
make sure Access Database Engine installed on target machine. You can download it from here
http://www.microsoft.com/en-in/download/details.aspx?id=13255
Vi(ky
25-Jun-14 7:19am
View
See here
http://jqueryui.com/datepicker/
Vi(ky
24-Jun-14 1:57am
View
try with Full Qualified Name like "C:\Users\Jack\Documents\TEMP\directoryB\file.txt" for both source & destination path.
Vi(ky
16-Jun-14 8:49am
View
you can't solve server side error using JavaScript.
Vi(ky
16-Jun-14 5:07am
View
You must have to create a windows service that continuously run in background and check you condition to perform the operation.
Vi(ky
5-Jun-14 10:32am
View
Once check YourAppName.vshost.exe.config in debug or release folder in bin directory of project.
Vi(ky
5-Jun-14 10:23am
View
Is there any table that map role to user?
Vi(ky
5-Jun-14 7:04am
View
It is console application.
Vi(ky
3-Jun-14 10:39am
View
can you show the code that you are using to access.
Vi(ky
21-May-14 10:05am
View
Do you want to remove Column Names?
Vi(ky
19-May-14 6:17am
View
which .Net Framework you installed?
Vi(ky
15-May-14 4:16am
View
you should fetch only number of records at a time instead of all records.
Vi(ky
14-May-14 8:21am
View
great reply :)
Vi(ky
14-May-14 8:17am
View
update your question . Specify the error
Vi(ky
13-May-14 11:03am
View
Try this
i = document.getElementById('#2');
and why you pass parameter "a" in test(a), if are not using it
Vi(ky
13-May-14 10:48am
View
what are you doing dear. You can simply execute "Select * From MyTable" query to get data and fill DataTable using SqlDataAdapter. see here
http://www.dotnetperls.com/sqldataadapter
Vi(ky
13-May-14 10:41am
View
Please see the update solution
Vi(ky
13-May-14 10:39am
View
you want it client side or server side?
Vi(ky
13-May-14 10:38am
View
Deleted
you want it on client side or server side ?
Vi(ky
13-May-14 10:04am
View
Try to debug & see on which line of code error throw
Vi(ky
13-May-14 5:40am
View
yes it is possible, if you want to show data weekly or data between two dates. you have to pass Start Date & End Date and you can use these date to filter the Data
Vi(ky
12-May-14 9:53am
View
Deleted
Please accept solution . it will help to others.
Vi(ky
12-May-14 9:43am
View
Contains() has no overload method to accept array. You can not pass string array to Contains()
Vi(ky
12-May-14 9:20am
View
can you paste your code
Vi(ky
12-May-14 7:57am
View
Deleted
string cus = "a,b,c,d";
string[] ids = cus.Split(',');
Vi(ky
12-May-14 7:21am
View
use google
Vi(ky
10-May-14 5:25am
View
use jquery dialog
http://jqueryui.com/dialog/
Vi(ky
9-May-14 16:15pm
View
use excel file instead of word and pdf
Vi(ky
9-May-14 16:05pm
View
sorry, its my mistake. "Find" works with primary key
Vi(ky
9-May-14 16:03pm
View
please check my update solution
Vi(ky
9-May-14 15:22pm
View
what error you face
Vi(ky
9-May-14 4:55am
View
Deleted
ok, if you saved successfully then how client will use the file if there is no user interface
Vi(ky
9-May-14 3:32am
View
Deleted
i don't thing its a better idea, instead of you can give link to download or view the file.
Vi(ky
9-May-14 3:28am
View
do you want to save file to all 800 client's folder ?
Vi(ky
8-May-14 11:13am
View
make sure your Field and value are in same order & then you can loop and StringBuilder class to make query.
Vi(ky
8-May-14 8:34am
View
when you run you console app in run from debug/ release folder inside bin folder. to get access your html file you have to put the file in debug/ or release folder & then you can use
string fileName = "HTMLPage.htm";
string folder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
string filePath = Path.Combine(folder, fileName);
Vi(ky
8-May-14 7:20am
View
//one way
String[] users = new String[1000];
Application["users"] = users;
// Another way
Application.Add("users", users);
// Another way
string[] usersTable = (string[])Application["users"];
Vi(ky
8-May-14 7:10am
View
see here http://jquery.bassistance.de/treeview/demo/
Vi(ky
8-May-14 7:05am
View
before using parseFloat, you can use the below pattern to ensure the input contains only numbers if not then throw error<br>
var pattern = /^[0-9-+]+$/; <br>
if (pattern.test(textfield)) == false){<br>
//do whatever you want<br>
}
Vi(ky
8-May-14 5:14am
View
why? and if it is possible then how you will get out of this ?
Vi(ky
8-May-14 5:03am
View
can you paste your xml code
Vi(ky
8-May-14 4:43am
View
make sure FileUpload2 reuied property is false and In database FileUpload2 field NULL allow
Vi(ky
8-May-14 4:32am
View
see that https://www.youtube.com/watch?v=8mCKvy6XL-o
Vi(ky
8-May-14 4:23am
View
Ensure your xml file is correct. Paste xml code here
http://www.w3schools.com/xml/xml_validator.asp
Vi(ky
8-May-14 4:13am
View
it's work. check the update code
Vi(ky
8-May-14 3:32am
View
requirement not clear
Vi(ky
8-May-14 3:25am
View
please accept the solution and rate it. :)
Vi(ky
8-May-14 3:21am
View
yes you can
Vi(ky
8-May-14 3:15am
View
just change the image url in css on child page for masterpage
Vi(ky
8-May-14 3:10am
View
Deleted
you can store that value in app.config file
Vi(ky
8-May-14 3:09am
View
thanks
Vi(ky
7-May-14 10:53am
View
what is other url and where to appear?
Vi(ky
7-May-14 10:29am
View
You want loginurl on Auth view, right?
Vi(ky
7-May-14 9:09am
View
Provide some more details
Vi(ky
7-May-14 8:52am
View
On which page your session created ?
Vi(ky
7-May-14 8:40am
View
make sure your json data is correct
Vi(ky
7-May-14 8:16am
View
Thanks DamithSL
Vi(ky
7-May-14 8:05am
View
How to merge if 3 array
string[] array1 = new string[] { "1", "2", "3" };
string[] array2 = new string[] { "6", "7", "8" };
string[] array3 = new string[] { "8", "11", "13" };
Vi(ky
7-May-14 7:58am
View
+5 :)
Vi(ky
7-May-14 7:30am
View
can you post all code?
Vi(ky
7-May-14 7:28am
View
means you want to pass the data that user entered in form for ex name, age etc & pass same values on website2's registration form. Am i right ?
Vi(ky
7-May-14 7:21am
View
See here
http://www.codeproject.com/Articles/32545/Exploring-Session-in-ASP-Net
Vi(ky
7-May-14 7:04am
View
try to debug and check if condition is true or not
Vi(ky
7-May-14 5:43am
View
Let me google that for you
http://lmgtfy.com/?q=What+is+Linq+%3F
Vi(ky
7-May-14 5:14am
View
ok, any question ?
Vi(ky
7-May-14 4:59am
View
Can you show your code ?
Vi(ky
6-May-14 6:15am
View
thanks for the reply. I correct my xml file but the problem remain same then i according to this http://calvinirwin.net/2011/02/10/xmlserialization-deserialize-causes-xmlns-was-not-expected/
XmlSerializer serializer = new XmlSerializer(typeof(List<configuration>), xRoot);
XmlReader OXmlReader = XmlReader.Create(filePath);
List<configuration> OBlobConfig = (List<configuration>)serializer.Deserialize(OXmlReader);
but OBlobConfig is showing null
Vi(ky
6-May-14 3:11am
View
You're welcome
Vi(ky
1-May-14 7:53am
View
my application works fine with Azure Storage Blob but problem occur when i run my app in Development Blob Storage
Vi(ky
1-May-14 4:10am
View
In each operation it takes 3 - 4 min
Vi(ky
29-Apr-14 8:49am
View
well, In your question there is no any ComboBox, but if you want to catch how many time ComboBox event occur then you can use jquery change event.
See here : http://stackoverflow.com/a/19922857
Vi(ky
21-Apr-14 8:01am
View
Thank you
Vi(ky
8-Apr-14 5:44am
View
If i do this , then whole view will open inside page.
Vi(ky
1-Apr-14 4:01am
View
here my code
On view
@Html.ActionLink("Roles", "showAllRole", "User")
On controller
[HttpGet]
public ActionResult showAllRole()
{
try
{
return PartialView();
}
catch (Exception ex)
{
return Json(new NotifyMsg { status = "error" , Msg = "Error" });
}
}
Vi(ky
31-Mar-14 6:07am
View
i already pasted the code of view
Vi(ky
31-Mar-14 5:28am
View
I already tried this but problem remain same
In my case i used
public Movie(string name)
{
this.name = name;
}
Vi(ky
10-Mar-14 7:15am
View
//use like this
public int UpdateCustomer(Customer OCustomer)
{
var context = new MyDBEntities();
var original = context.Customer.Find(OCustomer.Id);
db.Entry(original).CurrentValues.SetValues(OCustomer);
if(db.SaveChanges() > 0)
return original.Id
else
return 0;
}
& make sure you added the EntityFramework.dll reference to your project
Vi(ky
10-Mar-14 6:50am
View
I don't know why you are doing in this complex way
You can use my first option or you can use this also
db.Users.Attach(updatedUser);
db.Entry(updatedUser).State = EntityState.Modified;
db.SaveChanges();
Vi(ky
4-Jan-14 3:28am
View
This is my view containing fields...
What should i do to solve this problem?
@using (html.BeginForm(null, null, FormMethod.Post, new { id = "MyForm" }))
{
@Html.LabelFor(model => model.OTablesField.fieldName, "Field Name")
@Html.TextBoxFor(model => model.OTablesField.fieldName)
@Html.ValidationMessageFor(model => model.OTablesField.fieldName)
@Html.LabelFor(model => model.OTablesField.displayName, "Display Name")
@Html.TextBoxFor(model => model.OTablesField.displayName)
@Html.ValidationMessageFor(model => model.OTablesField.displayName)
@Html.LabelFor(model => model.OTablesField.displayFieldTypeId, "Display Field Type")
@Html.DropDownListFor(model => model.OTablesField.displayFieldTypeId, new SelectList((IEnumerable<displayfieldtype>)ViewData["ODisplayFieldTypeList"], "Id", "fieldName"), new { @class = "dataTypedrpdwn" }) @* , ODisplayFieldTypeList.First().Id )*@
@Html.ValidationMessageFor(model => model.OTablesField.displayFieldTypeId)
<div id="AddiPrprty">Additional Properties </div>
<div class="LinkOptionControl" id="rtableview" >
<input id="rtableLinq" type="radio" name="r" checked="checked"/> @Html.Label("System Define Value")
<input id="ruserValue" type="radio" name="r"/> @Html.Label("User Define Value")
<div id="tableLinq">
<div id ="byLink" class ="projectviewLeft" >
@Html.Label("Select Table", new { @class = "label" })
@Html.DropDownListFor(model => model.Olookup.linkTableId, new SelectList((IEnumerable<Table>)ViewData["OTableList"], "Id", "tableName"), new { @class = "drpdwn" })
</div>
<div id="displayObj" class="projectviewLeft">
@Html.Label("Display Object")
@Html.TextBoxFor(model => model.Olookup.displayObject, new { @id = "inputToken" })
</div>
</div>
<div id="userValue" class ="projectviewLeft">
@Html.Label("Enter Possible Value")
@Html.TextAreaFor(model => model.OLookupDataList.Data, 3, 5, null)
</div>
</div>
<div id="calculateNumDiv">
<div class="projectviewLeft">
@Html.Label("Display Object")
@Html.TextBoxFor(model => model.OformulaRule.formulaObject, new { @id = "TinputToken" })
</div>
</div>
<div class ="IsTimeBase" id="IsTimeprojectview">
@Html.CheckBoxFor(model => model.OTablesField.isTimeBase, new { @id = "isTBSelected" })
@Html.LabelFor(model => model.OTablesField.isTimeBase, "Time Base")
@Html.ValidationMessageFor(model => model.OTablesField.isTimeBase)
<div class="hidedivbc">
@Html.TextBoxFor(model => model.OfrequencyRule.frequencyValue, new { @id = "texbox" })
@Html.DropDownL
Vi(ky
3-Jan-14 10:59am
View
var val = Json.Encode(Model);
Vi(ky
28-Dec-13 6:56am
View
.Net framework version is 4.5 & Entity Framework version is 5.0
Vi(ky
28-Dec-13 6:55am
View
yes, the function name is in the list of Function Import list
Vi(ky
27-Dec-13 6:08am
View
yes i tried but there is no message append in validation summary.
Vi(ky
17-Dec-13 3:58am
View
trying to solve
Vi(ky
17-Dec-13 2:54am
View
Thanks to reply!This example is good to upload images or any file but the problem is, I am sending json data also to action method. both are not working together. if i am not sending json data then file is successfully uploaded.
Vi(ky
5-Dec-13 10:47am
View
Deleted
I solve this but i have another problem.
How i can make this webgrid editable?
Vi(ky
5-Dec-13 10:38am
View
thanks :)
Vi(ky
5-Dec-13 10:11am
View
thanks for your reply. I solved this with some different approach.
Vi(ky
3-Dec-13 11:26am
View
i don't want to create model when creating the table, it could be happened when showing the data of table.
Vi(ky
3-Dec-13 6:53am
View
thank for your reply but in my case number of columns and column name is not predefind
Vi(ky
31-Oct-13 6:31am
View
How i can do this?
Vi(ky
31-Oct-13 6:19am
View
Do you have any demo?
Vi(ky
31-Oct-13 6:11am
View
Yes
Vi(ky
31-Oct-13 6:08am
View
Not search the web i just want to filter webgrid
Vi(ky
31-Oct-13 6:04am
View
yes but the result should be shown in webgrid.
Vi(ky
28-Oct-13 7:29am
View
as string
Vi(ky
28-Oct-13 7:22am
View
Error: Cannot convert from 'System.DateTimeOffset?' to 'string' and searchkey value is 12/01/2012
Vi(ky
28-Oct-13 6:58am
View
public IEnumerable<Project> SearchByKey(string SearchKey)
{
var context = new MyDbEntities();
var matches = from m in context.Project
where m.projectName.Contains(SearchKey) || m.description.Contains(SearchKey) || m.modificationDate.ToShortDateString().Contains(EntityFunctions.TruncateTime(SearchKey))
select m;
return matches;
}
Vi(ky
28-Oct-13 6:40am
View
error: "The best overloaded method match 'string.Contains(string)' has some invalid arguments"
Vi(ky
28-Oct-13 6:13am
View
.Contains option is coming to use it when typing the code
Vi(ky
28-Oct-13 6:08am
View
n.modificationdate.Contains is not occuer
Vi(ky
21-Oct-13 11:38am
View
Thanks for your answers but Soumitra actually i want to know "how controller understand to which ActionMethod has to invoke for a particular click?"
Vi(ky
21-Oct-13 8:59am
View
How can i use above if we have ActionLink rather than Button?
Vi(ky
21-Oct-13 8:28am
View
Thank You! Gitanjali
It's Worked
Vi(ky
21-Oct-13 4:23am
View
Thank You :) Sampath Lokuge
Vi(ky
17-Oct-13 3:56am
View
I already done this but same result
Vi(ky
8-Oct-13 6:04am
View
Thank You Tanveer to reply but the number of coulmn is not predefined and it is defined at run time
Vi(ky
8-Oct-13 5:49am
View
i am trying bro but ExecuteSqlCommand() only takes sql query and Params Object array.
still searching
Vi(ky
7-Oct-13 6:06am
View
It works ...!
Thank You Mahesh :)
Show More