15,888,269 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 jo.him1988 (Top 44 by date)
jo.him1988
18-Jul-14 7:11am
View
Deleted
welcome :) :) :)
jo.him1988
18-Jul-14 5:12am
View
no if you don't write add than you got same error,
while when i call your method its return nothing in diffrenc table because its found no columns in first table !!
jo.him1988
18-Jul-14 4:27am
View
now in which line gives you error, please debug your code
jo.him1988
17-Jul-14 8:15am
View
make sure your first and seccond datatable with table's columns
jo.him1988
17-Jul-14 2:51am
View
can you paste your code here so we can see where is the problem??
jo.him1988
16-Jul-14 4:38am
View
your code is saying all things, its roll back if there is exception
when you got MessageBox.Show(ex.Message); you know that its rollback
and best way to show the message to user is MessageBox.Show("user creation failed"); or
MessageBox.Show("user creation failed"+ex.Message);
and as a programmer you can log your ex.Message
jo.him1988
16-Jul-14 3:50am
View
if you disable //Trans.Commit(); record will not insert in Database and if you forgot somewhere to write cmd.Dispose();and con.Close(); will take your sql server to busy
so always best to open transaction commit it and if any error rollback it
so fst insertion is work fine
jo.him1988
16-Jul-14 3:17am
View
why you are loading whole page use ajax to update only gridview and which event is fire for postback of page are you using any timer ??
jo.him1988
16-Jul-14 3:07am
View
ok you have to replace your ' to '' because its throw exception
jo.him1988
16-Jul-14 2:14am
View
you have to check it by code because its needed database Existance so if you have textbox write event to validate the branch code
jo.him1988
16-Jul-14 2:10am
View
make two connection string for two database and use it
if you are using edmx create two edmx file
or two xsd file or
write inline sqlConnection
jo.him1988
15-Jul-14 2:48am
View
not sufficient for answer what you want,
if you want to pass all selected parameter in one time
take stringbulder and append selectd list item and pass it to sp
if you want to pass single item
than foreach loop to your selected list item and pass to sp
jo.him1988
15-Jul-14 2:20am
View
you have to write onselectindex change of both dropdownlist
first find drop down parent(Row) than find your drop down control and than simple bind your drop down
jo.him1988
15-Jul-14 1:22am
View
or you can write this without initialize extra property
jo.him1988
14-Jul-14 7:31am
View
ohh, here i was talking about your design source VIEW, any way i am not getting any error to get value disappear kind of error
let me guess you call these method on page on load event with check page.ispostback property,
now is auto post back property is true for both dropdown list than set enableviewstate to true
make sure page load you have mention ispostback pro of page
jo.him1988
14-Jul-14 7:04am
View
hi you can make your own javascript function for this first you have to create img tag with diffrent id and set onclick method to your javascript function with current id( as your new row id here) set current row to toggle while all other to up
here i have made a @country.CountryID as a increment id start from 1
yes you can also use accordion control of ajax or you can also use jquery ui accordion.
but i have made(try :))how accordian code write on javascript
hope this will help you
happy coding :) :) :)
jo.him1988
14-Jul-14 5:35am
View
can you post your source view of page here ,make sure about value property of drop down list
jo.him1988
14-Jul-14 2:41am
View
hi, this is not depend on what is your datagridview and what event fire , its depend on how you are binding your grid, make sure your bind query have order by clause with desc order i.e datetime, salary etc
jo.him1988
11-Jul-14 5:49am
View
if you want to take only two point after decimal than you format your string like here
jo.him1988
11-Jul-14 2:38am
View
hi hope this will help you :)
jo.him1988
10-Jul-14 1:53am
View
take one static property in program.cs or any class
public static List<string> myStringList { get; set; }
assign its value on form 1
and when you move to form 2 you can get your list of string
:)
jo.him1988
9-Jul-14 9:46am
View
how are you access your outlook account did you forgot to mention it
mapiNameSpace.Logon(null, null, false, false);
mapiNameSpace.Logon("your outlook mail id", "password", Missing.Value, true);
here is a code script:-
jo.him1988
9-Jul-14 8:42am
View
your code is ok try this hope it will work for you :)
jo.him1988
9-Jul-14 8:05am
View
your code is right make sure about your password or once again log on to your gmail account
jo.him1988
9-Jul-14 7:08am
View
hi hope this will work for you
jo.him1988
9-Jul-14 6:54am
View
try this
MyInterface mm = new MyClass();
mm.MyFunction();
or
MyInterface myInterFace = mc;
myInterFace.MyFunction();
jo.him1988
9-Jul-14 6:39am
View
hi, hope this will work for you, i have tested working fine for me :)
jo.him1988
9-Jul-14 6:08am
View
make sure about your image path
jo.him1988
9-Jul-14 4:36am
View
sorry !! can u please elaborate what you want to expandable? :(
jo.him1988
9-Jul-14 4:25am
View
Hi, here is an example of transfering data from view to controller
i have made a model class TestString which have a property of list<string>myFriendList
i am using this collection string to bind with listbox and sending this details to controller here is the code
jo.him1988
9-Jul-14 2:03am
View
please see above solution 2
when your fill your grid by for each loop only set <tr class=@className>
jo.him1988
8-Jul-14 9:46am
View
hi why did you not use javascript for this
try this simple script
jo.him1988
8-Jul-14 9:02am
View
ok i am newbie in mvc here is the answer after try on my project its bang to target :)
as simple logic
you have to create two css class as i made here FirstRow and SecondRow now declare one boolvariable to check alter row and one string variable for set class name at runtime
now on foreach loop check bool value and set tr class name
thats it
happy coding :) :) :)
jo.him1988
8-Jul-14 8:41am
View
i dont know whats going on your ActionLink when i wrote on my code its working fine
@Html.ActionLink("back to search", "Index", "Country", new { @class = "linkbtnfull" })
jo.him1988
8-Jul-14 8:40am
View
Deleted
i dont know whats going on your ActionLink when i wrote on my code(mvc-4) its working fine
@Html.ActionLink("back to search", "Index", "Country", new { @class = "linkbtnfull" })
jo.him1988
8-Jul-14 8:19am
View
what is inside your linkbtnfull class ??
jo.him1988
8-Jul-14 7:20am
View
so what's the problem on this please elaborate
jo.him1988
8-Jul-14 7:12am
View
your table name not found or you did not fill your dataset thats why you are getting object reff error here is the solution
jo.him1988
8-Jul-14 7:11am
View
Deleted
your table name not found or you not fill your dataset try this
jo.him1988
8-Jul-14 6:35am
View
hi if grid view data is bind from database table than pivot is the answer :)
SELECT * from (select Combo,[Size], ratio FROM PivotTesting)as s
PIVOT(Sum( ratio)FOR [Size] IN([50],[56],[62],[68]))AS test
output
Combo 50 56 62 68
1 1 2 1 null
2 null 1 2 2
happy coding :) :)
jo.him1988
8-Jul-14 5:42am
View
ok first you have to make Data entity model, i am creating here state table entity and getting the State ID by State Name
Data.TestEntities entity = new Data.TestEntities();
var states = (from s in entity.States
where s.StateName== "Your State Name"
select new { s.StateID }).SingleOrDefault();
now states.StateID is your ID
jo.him1988
8-Jul-14 4:29am
View
hi i am newbi in mvc, hope this will help you :)
i have made same like country and state example
gridview showing all country id and name with viewStates hyperlink
as similer to your Query players like country and states like player details :)
you have to make on action which get the details of player by id and than that return to your players edit view with that object
like i use action redirect(countrycode)and return that state model to respective view
:) :) :)
jo.him1988
8-Jul-14 2:56am
View
don't know what are u saying, php n mvc both are different, if you want to run database query in mvc, create dataset or entity and write logic in controller's action and called it
jo.him1988
7-Jul-14 8:53am
View
hi here is the solution i am newbie in mvc let she if its help you :)
Show More