15,920,111 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 prthghosh999 (Top 42 by date)
prthghosh999
24-Jun-15 10:30am
View
I got the .apk file in debug mode . do you have any idea for that????
prthghosh999
14-May-15 2:28am
View
Deleted
i've edited my question. you can check that
prthghosh999
13-May-15 10:49am
View
i thing you should check my code carefully....
$.ajax({
type: 'POST',
url: 'http://www.transapi.ksoftware.co.in/api/RoleApi',
prthghosh999
13-May-15 4:45am
View
i'm having a table name tblRole [ID, Name, Status] in the database. i have to insert a new row in this Role table passing the name and status as parameter. status field will take boolean vale i.e. true/false. Now i created a post method in my api controller [public int Post(RoleModel model){....} ] and call the procedure for data insertion from that method. here i send model object as parameter to that post method. this model contains RoleName and status. now my problem is that , how to call this post method from my html page and pass those field as parameter to insert a new row into the table
prthghosh999
13-May-15 3:19am
View
i have to insert new row in role table having the fields like RoleId,RoleName,Status
prthghosh999
13-May-15 3:16am
View
public int Post(RoleModel model)
{
return _repository.InsertRole(model);
}
this is my post method in api controller and i call this from my html page as..
<script type="text/javascript">
var RoleModel = new Object();
RoleModel.RoleName = "test";
RoleModel.Status= true;
$.ajax({
type: 'POST',
url: 'http://www.transapi.ksoftware.co.in/api/RoleApi',
data: JSON.stringify(RoleModel),
contentType: "application/json",
dataType: "json",
success: function (data, textStatus, xhr) {
alert('success');
},
error: function (jqXHR, textStatus, errorThrown) {
alert('e');
}
});
prthghosh999
13-May-15 2:27am
View
i've created those api controller in c#. is there anything that i've to change in my solution.
prthghosh999
13-May-15 2:12am
View
i get all data from my api but my problem is whenever i want to call post method to insert or update into the database it returns an error.
my url is http://transapi.ksoftware.co.in/api and passes a model (named RoleModel and its object are RoleName, Status) object into that post method. but it does not call to that method
prthghosh999
13-May-15 1:57am
View
thank you for your suggestion. actually the problem was in my WebApiConfig file. that does not return json format.
prthghosh999
2-Feb-15 5:45am
View
i need both lat an lng value..
prthghosh999
2-Feb-15 5:29am
View
tried your link but not getting the exact location..!!
prthghosh999
2-Feb-15 3:29am
View
I can't get my accurate lat, lng value using position.coords.latitude and position.coords.longitude.
prthghosh999
23-Aug-14 11:40am
View
Thank you sir. your link was really helpful for me. i have created .apk file for android but can't build it for i phone. is there any code that i've to write in my web config??
prthghosh999
21-Aug-14 23:03pm
View
I've no experience producing mobile apps. I am working with visual studio + windows 7 OS. is it possible to create an apps for iphone in my system.
prthghosh999
21-Aug-14 8:35am
View
you've said javascript and css files are bundled into a package but how ??
i have html,css and js files and i want to create a set up file. so that the users can download and install it into their phone. please replay me. thank you.
prthghosh999
6-May-14 15:35pm
View
i have append dynamic text box with product name in list item using jquery autocomplete. but when i click on a dynamic text box to put some quantity my list item get disappears and cursor get focus to parent text box (from where i have called auto complete method).
prthghosh999
6-May-14 10:52am
View
nothig happens.. it disappears automatically when i click on list item
prthghosh999
6-May-14 10:09am
View
anyone please hlp me
prthghosh999
16-Dec-13 9:52am
View
i have written this code bellow..
<iframe width="560" height="315" src='Content/ProductVideo/abc.mp4' autoplay="0" frameborder="0" allowfullscreen ></iframe>
but when my page become load it gets download automatically in the browser..
please give me some idea to stop this...
prthghosh999
27-Nov-13 9:24am
View
i put my updatepanel-code which is in my PetUserControl....
<asp:UpdatePanel ID="upnlMain" runat="server" UpdateMode="Conditional">
<contenttemplate>
<asp:Label ID="lblMsg" runat="server">
<br />
<asp:HiddenField ID="hdnID" runat="server" />
<table class="valignmiddle">
<tbody>
<tr>
<td class="label-cell">
<label>Pet Name
*
</label></td>
<td>
<asp:TextBox ID="txtPetName" runat="server">
</td>
<td class="label-cell"></td>
<td class="label-cell">
<label>Owner</label></td>
<td>
<asp:DropDownList ID="ddlOwner" runat="server">
</td>
</tr>
<tr>
<td class="label-cell">
<label>Type of Pet</label>
</td>
<td>
<asp:DropDownList ID="ddlPetType" runat="server">
</td>
<td class="label-cell"></td>
<td class="label-cell">
<label>Breed</label>
</td>
<td>
<asp:DropDownList ID="ddlBreed" runat="server">
</td>
</tr>
<tr>
<td class="label-cell">
<label>Weight
*
</label></td>
<td>
<asp:TextBox ID="txtWeight" runat="server">
</td>
<td class="label-cell"></td>
<td class="label-cell">
<label>Age
*
</label></td>
<td>
<asp:TextBox ID="txtdob" runat="server">
</td>
</tr>
<tr>
<td class="label-cell">
<label>Gender</label></td>
<td>
<asp:DropDownList ID="ddlGender" runat="server">
</td>
<td class="label-cell">
<td class="label-cell">
<label>Active</label></td>
<td>
<asp:CheckBox ID="chkActive" runat="server">
</td>
</tr>
</tbody>
</table>
<br />
<table class="valignmiddle">
<tbody>
<tr>
<td class="label-cell">
<label>Is your pet allergic to any medications?</label></td>
<td>
<asp:RadioButtonList ID="rdIsYourPetAllergic" runat="server" AutoPostBack="true" OnSelectedIndexChanged="rdIsYourPetAllergic_SelectedIndexChanged">
<asp:ListItem>No
<asp:ListItem>Yes
</td>
</tr>
</tbody>
</table>
<br />
<table class="valignmiddle" id="PetAllergic" runat="server">
<tbody>
<tr>
<td class="label-cell">
<label>Please Select All
prthghosh999
27-Nov-13 9:19am
View
Deleted
<asp:UpdatePanel ID="upnlMain" runat="server" UpdateMode="Conditional">
<contenttemplate>
<asp:Label ID="lblMsg" runat="server">
<br />
<asp:HiddenField ID="hdnID" runat="server" />
<table class="valignmiddle">
<tbody>
<tr>
<td class="label-cell">
<label>Pet Name
*
</label></td>
<td>
<asp:TextBox ID="txtPetName" runat="server">
</td>
<td class="label-cell"></td>
<td class="label-cell">
<label>Owner</label></td>
<td>
<asp:DropDownList ID="ddlOwner" runat="server">
</td>
</tr>
<tr>
<td class="label-cell">
<label>Type of Pet</label>
</td>
<td>
<asp:DropDownList ID="ddlPetType" runat="server">
</td>
<td class="label-cell"></td>
<td class="label-cell">
<label>Breed</label>
</td>
<td>
<asp:DropDownList ID="ddlBreed" runat="server">
</td>
</tr>
<tr>
<td class="label-cell">
<label>Weight
*
</label></td>
<td>
<asp:TextBox ID="txtWeight" runat="server">
</td>
<td class="label-cell"></td>
<td class="label-cell">
<label>Age
*
</label></td>
<td>
<asp:TextBox ID="txtdob" runat="server">
</td>
</tr>
<tr>
<td class="label-cell">
<label>Gender</label></td>
<td>
<asp:DropDownList ID="ddlGender" runat="server">
</td>
<td class="label-cell">
<td class="label-cell">
<label>Active</label></td>
<td>
<asp:CheckBox ID="chkActive" runat="server">
</td>
</tr>
</tbody>
</table>
<br />
<table class="valignmiddle">
<tbody>
<tr>
<td class="label-cell">
<label>Is your pet allergic to any medications?</label></td>
<td>
<asp:RadioButtonList ID="rdIsYourPetAllergic" runat="server" AutoPostBack="true" OnSelectedIndexChanged="rdIsYourPetAllergic_SelectedIndexChanged">
<asp:ListItem>No
<asp:ListItem>Yes
</td>
</tr>
</tbody>
</table>
<br />
<table class="valignmiddle" id="PetAllergic" runat="server">
<tbody>
<tr>
<td class="label-cell">
<label>Please Select All that Apply</label></td>
</tr>
prthghosh999
27-Nov-13 7:25am
View
actually i have to open a pop up window inside an update panel. and my popup content will come from user control. when i click on 'show popup' button, my pop is open but when i fill all contents and submit the form , the click event doesn't fired. my submit button is in the same user control...
prthghosh999
31-Oct-13 7:32am
View
Its a Linq Query. so i cant use AND instead of &&
prthghosh999
25-Oct-13 3:10am
View
Can't load dynamic value in content...
prthghosh999
7-Oct-13 3:15am
View
because of food_Id..
prthghosh999
7-Oct-13 3:13am
View
it works for me. many many thanks to you..
i also tried this code but my fault was i use "select * from ...."
and it gives me an error
prthghosh999
7-Oct-13 2:56am
View
yes..
prthghosh999
18-Sep-13 3:34am
View
Actually my Question is to Create a web application then add two directory asp and vb .then add a web form in c# language in asp directory and a web form of vb.net in vb directory. Is it possible or not?????
please replay me..
prthghosh999
15-Sep-13 6:55am
View
i've written
HttpContext.Current..
instead of Response.End() and exception is not thrown..
but i'm not getting the excel file also
prthghosh999
15-Sep-13 6:55am
View
i've written
HttpContext.Current..
instead of Response.End() and exception is not thrown..
but i'm not getting the excel file also
prthghosh999
13-Aug-13 9:38am
View
my database name is MeetingRoomsManager entity name is MeetingRoomsManagerEntities. i have written given code in my web config file...
<configuration>
<connectionstrings>
<add name="MeetingRoomsManagerEntities" connectionstring="metadata=res://*/MeetingRoomsManager.csdl|res://*/MeetingRoomsManager.ssdl|res://*/MeetingRoomsManager.msl;provider=System.Data.SqlClient;provider connection string='Data Source=KSOFT1;Initial Catalog=MeetingRoomsManager;User ID=mssqlmain;Password=ksoftware;Integrated Security=true;MultipleActiveResultSets=True'" providername="System.Data.EntityClient">
...
<membership defaultprovider="AspNetSqlMembershipProvider">
<providers>
<clear>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionstringname="MeetingRoomsManagerEntities"
="" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="false" requiresuniqueemail="false" maxinvalidpasswordattempts="5" minrequiredpasswordlength="6" minrequirednonalphanumericcharacters="0" passwordattemptwindow="10" applicationname="/">
</providers>
<profile>
<providers>
<clear>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionstringname="MeetingRoomsManagerEntities" applicationname="/">
</providers>
</profile>
<rolemanager enabled="true" defaultprovider="AspNetSqlRoleProvider">
<providers>
<clear>
<add connectionstringname="MeetingRoomsManagerEntities" applicationname="/"
="" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider">
<add applicationname="/" name="AspNetWindowsTokenRoleProvider"
="" type="System.Web.Security.WindowsTokenRoleProvider">
</providers>
....
....
but when i click on submit button to register some one
i got this error "An error occurred while attempting to initialize a System.Data.SqlClient.SqlConnection object. The value that was provided for the connection string may be wrong, or it may contain an invalid syntax.
Parameter name: connectionString"
prthghosh999
13-Aug-13 5:50am
View
yes, i've solved my problem. Thanks for your kind help...
prthghosh999
6-Aug-13 7:35am
View
actually i have to change the dropdown list items on the basis of value(date) entered in to the textbox. i've called onChange event to get text box value. but i've to bind dropdownlist
prthghosh999
6-Aug-13 6:58am
View
i use to call a javascript method in my textbox like this..
@Html.TextBoxFor(model => model.AppointmentDate, new { @style = "height:25px;width:100px; border: 1px #ccc solid;", id = "AppointmentDate", onChange = "return compute()" })
prthghosh999
5-Aug-13 4:37am
View
thanks to all of u...
prthghosh999
2-Aug-13 2:54am
View
thanks for giving me the solution.
but if i want to bind numbers from 1 to 30 then what will i do in mvc???
prthghosh999
2-Aug-13 2:51am
View
i want to know the process in mvc
prthghosh999
14-Jul-13 16:51pm
View
I need to convert a doc or docx file into a image file.and my code is
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document wordDoc = new Microsoft.Office.Interop.Word.Document();
object falseVal = false;
string fileName = @"D:\document.doc";
FLimage.PostedFile.SaveAs(Server.MapPath("~/temp") + "/test.docx");
System.IO.MemoryStream ms = new System.IO.MemoryStream(System.IO.File.ReadAllBytes(Server.MapPath("~/temp") + "/test.docx"));
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
img.Save(fileName, System.Drawing.Imaging.ImageFormat.Jpeg);
but got an error "parameter is not valid" on
....Image.FromStream(ms);
please help me sir.
prthghosh999
13-Jul-13 13:53pm
View
i've used this code...
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document wordDoc = new Microsoft.Office.Interop.Word.Document();
object falseVal = false;
string fileName = @"D:\document.doc";
FLimage.PostedFile.SaveAs(Server.MapPath("~/temp") + "/test.docx");
System.IO.MemoryStream ms = new System.IO.MemoryStream(System.IO.File.ReadAllBytes(Server.MapPath("~/temp") + "/test.docx"));
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
img.Save(fileName, System.Drawing.Imaging.ImageFormat.Jpeg);
but got an error "parameter is not valid" on the line
....Image.FromStream(ms);
prthghosh999
13-Jul-13 4:48am
View
if it requires for a certain condition then what would be answer????
prthghosh999
13-Jul-13 4:37am
View
is there any way to change the document into byte array and then it to a image file...
prthghosh999
12-Jul-13 14:27pm
View
i want to convert .docx file into .jpeg image and my code is:
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document wordDoc = new Microsoft.Office.Interop.Word.Document();
object falseVal = false;
string fileName = @"D:\document.doc";
FLimage.PostedFile.SaveAs(Server.MapPath("~/temp") + "/test.docx");
System.IO.MemoryStream ms = new System.IO.MemoryStream(System.IO.File.ReadAllBytes(Server.MapPath("~/temp") + "/test.docx"));
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
img.Save(fileName, System.Drawing.Imaging.ImageFormat.Jpeg);
but got an error "parameter is not valid" in- ....System.Drawing.Image.FromStream(ms);
please help me out...
Show More