16,019,764 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 Visual Basic questions
View Javascript 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 Parth Mashroo (Top 37 by date)
Parth Mashroo
31-Mar-15 1:29am
View
Yes i have to only work with .xlsx file so can you provide an example for epplus but i have multiple sheets for example nearly 10 sheets will be there in one excel file so will it be helpful in reading all those sheet and inserting those sheets data into database then pl help me with some code!!
and one more doubt it wont make my website hefty and slow? bcz odbc and oledb takes so much time in importing of data nearly 9-12 sec to read all data and inserting of those data into database!!
Parth Mashroo
2-Feb-15 8:25am
View
Sir i tried that and it didnt worked so kept it in comment! pls if there is any other way or solution then pls help!!
THank u for reply!!
Parth Mashroo
17-Jan-15 5:45am
View
Sir the images that are getting stored are having path ~/agentimages/2/119.jpg but now if my collegue want to use that image from that datbase in another website then how will he use it bcs he dosent have any angentimages folder in his pc, yes database is available but folder isnt and folder in my pc might get updated as any user inputs any data the how can my collegue get those i,ages yes images are getting uploaded to server is there a way to get those images then please help!!!
Parth Mashroo
17-Jan-15 5:03am
View
Sir the image is getting displayed but i have one more doubt about displaying those images in another website using same table in another place or another pc then how to do it because only image path is saved and that image is somewhere else then how someone will be able to use that image from another pc. pls help!!
Parth Mashroo
17-Jan-15 0:09am
View
Yes sir thank you for your reply i did that and it worked thank you for your reply!!
Parth Mashroo
16-Jan-15 5:49am
View
sir iam not saving image i am saving image path you can see in my code but the problem is that the path that is stored is the path of my pc but i want to save it to a virtual path of my server i.e npay.in/agent/agentimages
i want to save it in that virtual path if i write it in this code it will create a folder with npay.inand sove it there but i want to save it in server!!
thanks for your reply pls help me on that!!!
Parth Mashroo
16-Jan-15 5:02am
View
sir i am saving only path of the file but the problem is that i am saving only path that exists in my pc but actually i want to save it to a virtual path in server so how to do that!!
pls help me on that!!
thanks for reply!
Parth Mashroo
16-Jan-15 4:36am
View
yes sir thsats what i am doing i am saving it in a folder but that folder is in my pc but i want to save it in server so can you help me with that!!
Parth Mashroo
15-Jan-15 6:06am
View
Sir i have replaced the code and added if condition which checks session on pageload if it is null then redirect it to homepage otherwise continue.
Parth Mashroo
15-Jan-15 6:06am
View
Sir i have replaced the code and added if condition which checks session on pageload if it is null the redirect it to homepage otherwise continue.
Parth Mashroo
15-Jan-15 3:24am
View
Yes Sir I will explain the whole scenario see
1.HOmePage That contains Login form after login it is redirected to products page where the user can add products and view them in grid view and have also used session for displaying particular data to particular user and also have a logout button after clicking logout button the user is redirected to homepage and there i have disabled the back button so that user dosent go to products page i have also cleared sessions on logout i just wanted to disable the back button thats it i have explained full scenario.
and thanx for your quick reply
Parth Mashroo
15-Jan-15 3:16am
View
Sorry Sergey Alaxandrovich sir i am actually new to this and learning coding so i had a requirement of disabling back button on logout so i googled it and found this code and it was working so i tried it but was not knowing how it works so i asked this question sorry for not explaining it in a better way
SIr if you have better suggestion on this then please help me write a better code and once again thanx for reply!!
Parth Mashroo
15-Jan-15 3:10am
View
Sir i understood what you are saying then do you have any suggestion on doing it a better way,i am disabling back button on browser after logout so i googled it and found this code that was working but it seems that it is harmfull according to your explanation then sir can you help me write a better code and thank you for reply
I am actually new to this so i just tried the code and it worked so i used it but was not knowing what it does so i asked here again thanks for explanation!!!
Parth Mashroo
12-Jan-15 0:45am
View
How to use the above code in my code so that i can do some editing!!
Parth Mashroo
8-Jan-15 6:09am
View
yes sir that's what i have done i have cut down the path with C drive to whatever the change is.
Now if i move my files to another directory then i have change that in my code too so is there a way to remove that!!?
Parth Mashroo
8-Jan-15 2:45am
View
Yes sir the first thing i read was that article i understood a lot of things but see sir if i move my website from one location to another i have to change that path so i want to do it dynamically irrelative of any path.
and thank you sir for your reply.
Parth Mashroo
8-Jan-15 2:27am
View
you see sir i am using that code to create a directory dynamically i.e. if directory does not exist it will create /AgentImages/ID/ thats it will go inside that folder which was created thats why i used that code so will this code work!!
Parth Mashroo
7-Jan-15 8:00am
View
sir i dont know why i am using this string code vitualp = directoryPath.Replace(@"C:\Users\NET DEVELOPMENT\Desktop\AgentWeb", "~").Replace(@"\", "/");
actually it showed me an error that a virual path was expected at this line
Directory.CreateDirectory(MapPath(directoryPath + "/"));
so if you have another way of doing this then help me with that!!
Parth Mashroo
7-Jan-15 7:43am
View
sir i have made slight changes to your code and it worked but now there is another problem i.e i had to convert the directory path to virtual path so i had to convert it so now the problem is shown in this question and also the changed code is also uploaded :: http://www.codeproject.com/Questions/861948/How-to-convert-physical-path-to-virtual-path-dynam
thanx to ur help i got this far but pls help me on this one and once again thanx!!!
Parth Mashroo
7-Jan-15 5:39am
View
sir there is no change in the code!!
Parth Mashroo
7-Jan-15 4:56am
View
yes sir i have tried that code but after that code a folder is getting created but i want to insert the file in that folder after getting created on same button click event pls help on that and thanx for reply!!!
Parth Mashroo
7-Jan-15 4:54am
View
it is showing error physical path, but a virtual path was expected. at line where system.io is written and in the line mappathfilepath is not written in correct format pls help on that and thanx for reply!!
Parth Mashroo
31-Dec-14 1:30am
View
I have solved it with a help of my colleague i will post that soon now i have another problem that i want get previous data first in dropdown list i.e. if in my previous data i have surat as my dropdowns selected data before edit then it should get selected first!!
Parth Mashroo
31-Dec-14 0:43am
View
Sir i have posted another question of ddlcityEdit pls see and tell if you can help me on that its about dropdown list and i am binding it in gridview you can look the code over here :: http://www.codeproject.com/Questions/858316/please-solve-the-error-ddlcityEdit-has-a-SelectedV
Parth Mashroo
31-Dec-14 0:17am
View
Sir i have cleared it i was not using ISPostBack thats all!!
Parth Mashroo
30-Dec-14 6:00am
View
sir can you elaborate by changing in my code??
u see sir if i want to update name field then that is not getting update it returns only the same value as it was before so help!!
i have tried using break point it only shows same value..
Parth Mashroo
30-Dec-14 5:08am
View
you see by writing that update command particular row dosent get selected pls see what error i am making??
Parth Mashroo
30-Dec-14 2:44am
View
i have changed that but i have one more problem if i want to change Name field in gridview then then that name isnt getting selected but id is getting correct in the first line of id pls help me on that!!
Parth Mashroo
26-Dec-14 1:59am
View
HE i found the solution
i just changed TextBox field to Label and it worked one more error was about auto generate of keys that i resolved it but thaks u guys for hlp i will add the solution here in due time for others
once again thanx!!
Parth Mashroo
26-Dec-14 0:32am
View
https://www.dropbox.com/s/560skaq5mwf8key/Check_Grid1.rar?dl=0
this is my code i am using vs 2012 u can check out
Parth Mashroo
26-Dec-14 0:32am
View
https://www.dropbox.com/s/3npuzqli8q1w221/work.JPG?dl=0
it shows error as shown in link
Parth Mashroo
25-Dec-14 7:50am
View
sir i tried but isnt working..
pls help
Parth Mashroo
25-Dec-14 7:41am
View
and i dont know what all thigs have u changed bcx its all same.
Parth Mashroo
25-Dec-14 7:37am
View
https://www.dropbox.com/s/jw87mm3bqgwnm5n/Check_Grid.rar?dl=0
this is my file in rar so pls look at this code an tell me how to clear it i am using vs 2012 pls help and i forgot to wish you mery xmas!!
Parth Mashroo
25-Dec-14 7:26am
View
I have tried using for loop and the loop dosent even enter inside if there is only one record and tried your code it shows that data has been inserted sucessfully but id dosent show in table so pls help.!!
if you want i can upload the code in some rar file or something pls let me know if i need to do this!!
Parth Mashroo
25-Dec-14 7:08am
View
what do you mean by insert struct..
pls write that solution u r mentioning in code thanx for reply...
Parth Mashroo
25-Dec-14 7:06am
View
There is aproblem in foreach statement at start whenever i write that code it shows some error.
pls look at that.!!!
thanx for reply!!!
Show More