15,894,040 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 Sheerin Shaik (Top 48 by date)
Sheerin Shaik
31-May-16 23:42pm
View
could you plz tell me how to mention the address in the above code.am also facing same issue
Sheerin Shaik
31-May-16 23:41pm
View
could plz mention that block of code here ?its giving me also error and i dont no how to place it
Sheerin Shaik
31-May-16 23:40pm
View
hi.its not taking message.box .coul plz suggest me something else
Sheerin Shaik
29-May-16 10:33am
View
onemore thing thanks for letting me know abt the phtxt textbox .i had set it to bigint and now i will edit it to varchar .thanks once again .happy times upon u takecare:)
Sheerin Shaik
29-May-16 10:32am
View
Iam afraid to say this ,but i havnt asked you to set the whole system for me .in my project there are 30 pages to set and i had created almost 8+ procedures and few tables at my own .i dont know the .net .thats the biggest thing making me feel low .even i dont know .net am trying to workout by refering articles and lot more stuff which i found at google. u know wats the biggest problem am facing? the code snippets .iam able to understand the snippets but am unable to place them at right place .now also u given me a block of code and i dont know where to place it.i had placed right next to my button syntax but unfortunately in my code there is a connection open on the above of button syntax and am confused whether it should be there or not? should i open any other connection to work other buttons or shud i close? am i doing it in a right way r not ? these r the questions going in my mind.i jus asked u for a page .that too when i noticed may b it can work . u were quite confident about ur code .so i thought may b u might help me to understand it in a better way.i just requested for a doctorsignup.aspx.cs file for the reference coz i hav to work on my project basing on the code you give me here and while coming to point of exception i wanna show u something here
Error 1 Invalid token '(' in class, struct, or interface member declaration C:\Users\Angel\Desktop\Hospital Management System Source Code\doctorsignup.aspx.cs 44 16 C:\...\Hospital Management System Source Code\
Error 2 Invalid token '=' in class, struct, or interface member declaration C:\Users\Angel\Desktop\Hospital Management System Source Code\doctorsignup.aspx.cs 73 29 C:\...\Hospital Management System Source Code\
Error 3 Invalid token ';' in class, struct, or interface member declaration C:\Users\Angel\Desktop\Hospital Management System Source Code\doctorsignup.aspx.cs 73 58 C:\...\Hospital Management System Source Code\
Error 3 Invalid token ';' in class, struct, or interface member declaration C:\Users\Angel\Desktop\Hospital Management System Source Code\doctorsignup.aspx.cs 73 58 C:\...\Hospital Management System Source Code\
Error 3 Invalid token ';' in class, struct, or interface member declaration C:\Users\Angel\Desktop\Hospital Management System Source Code\doctorsignup.aspx.cs 73 58 C:\...\Hospital Management System Source Code
am getting exceptions like this and i dont find anyerror there .
finally ,thankyou for help me .its pleasure working with u .
Sheerin Shaik
29-May-16 10:00am
View
there is the same code as i mentioned here.and there are that values only .I request u to post the entire code in the comment with ur suggested code .coz am little bit confused by reading lot of articles related to that.infact am confused with my own code now so plz consider it and send me the whole c# page here itself.thanks in advance .thankyou
Sheerin Shaik
29-May-16 9:58am
View
iam afraid to say this,but i jus added deadline coz someone can know my situation to a little bit and take a step forward to help me and except this i dint mean anything by adding a deadine there .and thankyou for taking a step ahead for helping me :)
Sheerin Shaik
29-May-16 9:55am
View
phtxt
Sheerin Shaik
29-May-16 8:56am
View
yes i kept it as bigint
Sheerin Shaik
29-May-16 8:53am
View
i think there might be something like command.ExecuteReader ,DataReader,DataAdapter or ds.fill should be used or if (!page.IsPostBack) should be used .will u suggest me something from this
Sheerin Shaik
29-May-16 8:49am
View
i had tried that too after trying ttat i got this error
Sheerin Shaik
29-May-16 8:23am
View
do u hav any solution for this?
Sheerin Shaik
29-May-16 8:23am
View
Server Error in '/Hospital Management System Source Code' Application.
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
Line 35:
Line 36: cn.Open();
Line 37: command.ExecuteNonQuery(); // Nothing to return. Right?
Line 38:
Line 39: // this code would never be called in your original code and with the using statement
Source File: c:\Users\Angel\Desktop\Hospital Management System Source Code\doctorsignup.aspx.cs Line: 37
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +11013491
System.Number.ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt) +156
System.String.System.IConvertible.ToInt64(IFormatProvider provider) +48
System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) +10785804
System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType, Boolean& coercedToDataFeed, Boolean& typeChanged, Boolean allowStreaming) +5333855
[FormatException: Failed to convert parameter value from a String to a Int64.]
System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType, Boolean& coercedToDataFeed, Boolean& typeChanged, Boolean allowStreaming) +5332847
System.Data.SqlClient.SqlParameter.GetCoercedValue() +185
System.Data.SqlClient.SqlParameter.Validate(Int32 index, Boolean isCommandProc) +102
System.Data.SqlClient.SqlCommand.SetUpRPCParameters(_SqlRPC rpc, Int32 startCount, Boolean inSchema, SqlParameterCollection parameters) +122
System.Data.SqlClient.SqlCommand.BuildRPC(Boolean inSchema, SqlParameterCollection parameters, _SqlRPC& rpc) +78
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) +1421
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +177
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) +208
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +163
doctorsignup.subbtn_Click(Object sender, EventArgs e) in c:\Users\Angel\Desktop\Hospital Management System Source Code\doctorsignup.aspx.cs:37
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9628442
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
this is the error now .could u plz tell me if u no watshappening/
Sheerin Shaik
29-May-16 7:34am
View
if you dont mind could you plz mail me the whole page/code on my mail id :(happylearning786@gmail.com): ? plz
Sheerin Shaik
29-May-16 7:33am
View
using (SqlConnection cn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Angel\Desktop\Hospital Management System ASP.NET Project\Hospital Management System Source Code\App_Data\ASPNETDB.MDF;Integrated Security=True;User Instance=True"))
its not recognising it .it showing that its wrong
Sheerin Shaik
29-May-16 7:32am
View
its not recognising using( line
Sheerin Shaik
29-May-16 7:30am
View
it is prompting that when i keep cursor there .am working with visual web developer express
Sheerin Shaik
29-May-16 7:29am
View
doctorsignup.command is a field but it is used like a type
Sheerin Shaik
29-May-16 7:15am
View
its not working i kept at first place
Sheerin Shaik
29-May-16 7:12am
View
could you plz make it little bit clear by mailing me the entire page on happylearning786@gmail.com ? it will be very helpful
Sheerin Shaik
29-May-16 7:09am
View
could you plz send me like i had posted here the entire page
coz it might be helpful am still in confusion wher ei shud place this .and my u had refered to my procedure?
Sheerin Shaik
29-May-16 6:58am
View
may b i cant, coz thats my exact problem.i want to link the stored procedure to my page doctorsignup.aspx.cs and store the values in the tab;e which i had mentioned above .
Sheerin Shaik
29-May-16 6:56am
View
at which part i should replace?
Sheerin Shaik
29-May-16 6:45am
View
can u fix this code
Sheerin Shaik
29-May-16 6:43am
View
can u fix the problem?
Sheerin Shaik
29-May-16 6:42am
View
k
Sheerin Shaik
29-May-16 6:38am
View
what u meant by first part is mess? its well nd good there
Sheerin Shaik
29-May-16 6:35am
View
Deleted
where should i post instead of that?
Sheerin Shaik
29-May-16 6:29am
View
Deleted
continuation of that code
</td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="speddl"
ErrorMessage="Specialization" Style="position: relative">*</td></tr>
<tr><td>Phone Number</td><td><asp:TextBox ID="phtxt" runat="server"></td><td style="width: 157px"></td></tr>
<tr><td>Address</td><td><asp:TextBox ID="addtxt" runat="server"></td><td style="width: 157px"></td></tr>
<tr><td>E-Mail</td><td><asp:TextBox ID="emtxt" runat="server"></td><td style="width: 157px">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="emtxt"
ErrorMessage="Incorrect Format" Style="position: relative" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</td></tr>
</table>
<table style="z-index: 101; left: 299px; position: absolute; top: 549px; font-weight: bold; color: #ffffff; font-family: 'Lucida Console';">
<tr><td style="width: 88px">
<asp:Button ID="subbtn" runat="server" Text="Submit" Width="94px" OnClick="subbtn_Click" /></td>
<td style="width: 93px">
<asp:Button ID="Resbtn" runat="server" Text="Reset" Width="94px" OnClick="Resbtn_Click" /></td>
<td style="width: 93px">
<asp:Button ID="canbtn" runat="server" Text="Cancel" Width="94px" OnClick="canbtn_Click" /></td></tr>
</table>
Sheerin Shaik
29-May-16 6:29am
View
Deleted
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="doctorsignup.aspx.cs" Inherits="doctorsignup" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Text=" Register Here "
style="z-index: 100; left: 256px; position: absolute; top: 202px; width: 303px;"
Font-Names="Modern" Font-Size="32pt" ForeColor="Red">
<table style="z-index: 101; left: 234px; position: absolute; top: 275px; color: #ffffff; font-family: 'Lucida Console';">
<tr><td style="height: 26px">Name</td><td style="height: 26px"><asp:TextBox ID="nametxt" runat="server"></td><td style="height: 26px; width: 157px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Enter Name"
Style="position: relative" ControlToValidate="nametxt">*</td></tr>
<tr><td>Login Id</td><td><asp:TextBox ID="lidtxt" runat="server"></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Enter Login Id"
Style="position: relative" ControlToValidate="lidtxt">*</td></tr>
<tr><td>Password</td><td><asp:TextBox ID="pwdtxt" runat="server"></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="pwdtxt"
ErrorMessage="Enter Password" Style="position: relative">*</td></tr>
<tr><td>Confirm Password</td><td><asp:TextBox ID="conpwdtxt" runat="server"></td><td style="width: 157px">
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="pwdtxt"
ControlToValidate="conpwdtxt" ErrorMessage="Not Matching" Style="position: relative">*</td></tr>
<tr><td>Department</td><td>
<asp:DropDownList ID="depddl" runat="server" Width="153px">
<asp:ListItem>----Select----
<asp:ListItem>Cardiology
<asp:ListItem>Neurology
<asp:ListItem>Opthalmology,
<asp:ListItem>Nephrology
<asp:ListItem>Surgery
<asp:ListItem>Pediatrics
</td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="depddl"
ErrorMessage="Enter Your Department" Style="position: relative">*</td></tr>
<tr><td>Specialization</td><td>
<asp:DropDownList ID="speddl" runat="server" Width="154px">
<asp:ListItem>----Select----
<asp:ListItem>Pulmonology
<asp:ListItem>Cardiology
<asp:ListItem>Neurology
<asp:ListItem>Nephrology
<asp:ListItem>Opthalmology
Sheerin Shaik
29-May-16 6:28am
View
Deleted
<tr><td>E-Mail</td><td><asp:TextBox ID="emtxt" runat="server"></td><td style="width: 157px">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="emtxt"
ErrorMessage="Incorrect Format" Style="position: relative" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</td></tr>
</table>
<table style="z-index: 101; left: 299px; position: absolute; top: 549px; font-weight: bold; color: #ffffff; font-family: 'Lucida Console';">
<tr><td style="width: 88px">
<asp:Button ID="subbtn" runat="server" Text="Submit" Width="94px" OnClick="subbtn_Click" /></td>
<td style="width: 93px">
<asp:Button ID="Resbtn" runat="server" Text="Reset" Width="94px" OnClick="Resbtn_Click" /></td>
<td style="width: 93px">
<asp:Button ID="canbtn" runat="server" Text="Cancel" Width="94px" OnClick="canbtn_Click" /></td></tr>
</table>
Sheerin Shaik
29-May-16 6:26am
View
Deleted
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="doctorsignup.aspx.cs" Inherits="doctorsignup" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Text=" Register Here "
style="z-index: 100; left: 256px; position: absolute; top: 202px; width: 303px;"
Font-Names="Modern" Font-Size="32pt" ForeColor="Red">
<table style="z-index: 101; left: 234px; position: absolute; top: 275px; color: #ffffff; font-family: 'Lucida Console';">
<tr><td style="height: 26px">Name</td><td style="height: 26px"><asp:TextBox ID="nametxt" runat="server"></td><td style="height: 26px; width: 157px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Enter Name"
Style="position: relative" ControlToValidate="nametxt">*</td></tr>
<tr><td>Login Id</td><td><asp:TextBox ID="lidtxt" runat="server"></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Enter Login Id"
Style="position: relative" ControlToValidate="lidtxt">*</td></tr>
<tr><td>Password</td><td><asp:TextBox ID="pwdtxt" runat="server"></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="pwdtxt"
ErrorMessage="Enter Password" Style="position: relative">*</td></tr>
<tr><td>Confirm Password</td><td><asp:TextBox ID="conpwdtxt" runat="server"></td><td style="width: 157px">
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="pwdtxt"
ControlToValidate="conpwdtxt" ErrorMessage="Not Matching" Style="position: relative">*</td></tr>
<tr><td>Department</td><td>
<asp:DropDownList ID="depddl" runat="server" Width="153px">
<asp:ListItem>----Select----
<asp:ListItem>Cardiology
<asp:ListItem>Neurology
<asp:ListItem>Opthalmology,
<asp:ListItem>Nephrology
<asp:ListItem>Surgery
<asp:ListItem>Pediatrics
</td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="depddl"
ErrorMessage="Enter Your Department" Style="position: relative">*</td></tr>
<tr><td>Specialization</td><td>
<asp:DropDownList ID="speddl" runat="server" Width="154px">
<asp:ListItem>----Select----
<asp:ListItem>Pulmonology
<asp:ListItem>Cardiology
<asp:ListItem>Neurology
<asp:ListItem>Nephrology
<asp:ListItem>Opthalmology
</td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="speddl"
ErrorMessage="Specialization" Style="position: relative">*</td></tr>
<tr><td>Phone Number</td><td><asp:TextBox ID="phtxt" runat="server"></td><td style="width: 157px"></td></tr>
<tr><td>Address</td><td><asp:TextBox ID="addtxt" runat="server"></td><td style="width: 157px"></td><
Sheerin Shaik
29-May-16 6:25am
View
Deleted
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="doctorsignup.aspx.cs" Inherits="doctorsignup" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Text=" Register Here "
style="z-index: 100; left: 256px; position: absolute; top: 202px; width: 303px;"
Font-Names="Modern" Font-Size="32pt" ForeColor="Red">
<table style="z-index: 101; left: 234px; position: absolute; top: 275px; color: #ffffff; font-family: 'Lucida Console';">
<tr><td style="height: 26px">Name</td><td style="height: 26px"><asp:TextBox ID="nametxt" runat="server"></td><td style="height: 26px; width: 157px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Enter Name"
Style="position: relative" ControlToValidate="nametxt">*</td></tr>
<tr><td>Login Id</td><td><asp:TextBox ID="lidtxt" runat="server"></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Enter Login Id"
Style="position: relative" ControlToValidate="lidtxt">*</td></tr>
<tr><td>Password</td><td><asp:TextBox ID="pwdtxt" runat="server"></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="pwdtxt"
ErrorMessage="Enter Password" Style="position: relative">*</td></tr>
<tr><td>Confirm Password</td><td><asp:TextBox ID="conpwdtxt" runat="server"></td><td style="width: 157px">
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="pwdtxt"
ControlToValidate="conpwdtxt" ErrorMessage="Not Matching" Style="position: relative">*</td></tr>
<tr><td>Department</td><td>
<asp:DropDownList ID="depddl" runat="server" Width="153px">
<asp:ListItem>----Select----
<asp:ListItem>Cardiology
<asp:ListItem>Neurology
<asp:ListItem>Opthalmology,
<asp:ListItem>Nephrology
<asp:ListItem>Surgery
<asp:ListItem>Pediatrics
</td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="depddl"
ErrorMessage="Enter Your Department" Style="position: relative">*</td></tr>
<tr><td>Specialization</td><td>
<asp:DropDownList ID="speddl" runat="server" Width="154px">
<asp:ListItem>----Select----
<asp:ListItem>Pulmonology
<asp:ListItem>Cardiology
<asp:ListItem>Neurology
<asp:ListItem>Nephrology
<asp:ListItem>Opthalmology
</td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="speddl"
ErrorMessage="Specialization" Style="position: relative">*</td></tr>
<tr><td>Phone Number</td><td><asp:TextBox ID="phtxt" runat="server"></td><td style="width: 157px"></td></tr>
<tr><td>Address</td><td><asp:TextBox ID="addtxt" runat="server"></td><td style="width: 157px"></td><
Sheerin Shaik
29-May-16 5:57am
View
Reply Modify the comment. Delete the comment.
http://www.codeproject.com/Questions/1103336/How-to-call-a-procedure-in-this-code-Iam-frustated
could you plz set the stored procedure calling for this ?please...
i hav specified everything here .plz refer it
Sheerin Shaik
29-May-16 5:57am
View
Reply Modify the comment. Delete the comment.
http://www.codeproject.com/Questions/1103336/How-to-call-a-procedure-in-this-code-Iam-frustated
could you plz set the stored procedure calling for this ?please...
i hav specified everything here .plz refer it
Sheerin Shaik
29-May-16 5:57am
View
Reply Modify the comment. Delete the comment.
http://www.codeproject.com/Questions/1103336/How-to-call-a-procedure-in-this-code-Iam-frustated
could you plz set the stored procedure calling for this ?please...
i hav specified everything here .plz refer it
Sheerin Shaik
29-May-16 5:57am
View
Reply Modify the comment. Delete the comment.
http://www.codeproject.com/Questions/1103336/How-to-call-a-procedure-in-this-code-Iam-frustated
could you plz set the stored procedure calling for this ?please...
i hav specified everything here .plz refer it
Sheerin Shaik
29-May-16 5:57am
View
Reply Modify the comment. Delete the comment.
http://www.codeproject.com/Questions/1103336/How-to-call-a-procedure-in-this-code-Iam-frustated
could you plz set the stored procedure calling for this ?please...
i hav specified everything here .plz refer it
Sheerin Shaik
29-May-16 5:56am
View
my procedure is same as yours .plz set this page in the link
Sheerin Shaik
29-May-16 5:56am
View
Reply Modify the comment. Delete the comment.
http://www.codeproject.com/Questions/1103336/How-to-call-a-procedure-in-this-code-Iam-frustated
could you plz set the stored procedure calling for this ?please...
i hav specified everything here .plz refer it
Sheerin Shaik
29-May-16 5:55am
View
Reply Modify the comment. Delete the comment.
http://www.codeproject.com/Questions/1103336/How-to-call-a-procedure-in-this-code-Iam-frustated
could you plz set the stored procedure calling for this ?please...
i hav specified everything here .plz refer it
Sheerin Shaik
29-May-16 5:55am
View
Reply Modify the comment. Delete the comment.
http://www.codeproject.com/Questions/1103336/How-to-call-a-procedure-in-this-code-Iam-frustated
could you plz set the stored procedure calling for this ?please...
i hav specified everything here .plz refer it
Sheerin Shaik
29-May-16 5:54am
View
Reply Modify the comment. Delete the comment.
http://www.codeproject.com/Questions/1103336/How-to-call-a-procedure-in-this-code-Iam-frustated
could you plz set the stored procedure calling for this ?please...
i hav specified everything here .plz refer it
Sheerin Shaik
29-May-16 5:54am
View
http://www.codeproject.com/Questions/1103336/How-to-call-a-procedure-in-this-code-Iam-frustated
could you plz set the stored procedure calling for this ?please...
Sheerin Shaik
29-May-16 5:52am
View
Deleted
my .aspx page for this
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="doctorsignup.aspx.cs" Inherits="doctorsignup" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Text=" Register Here "
style="z-index: 100; left: 256px; position: absolute; top: 202px; width: 303px;"
Font-Names="Modern" Font-Size="32pt" ForeColor="Red">
<table style="z-index: 101; left: 234px; position: absolute; top: 275px; color: #ffffff; font-family: 'Lucida Console';">
<tr><td style="height: 26px">Name</td><td style="height: 26px"><asp:TextBox ID="nametxt" runat="server"></td><td style="height: 26px; width: 157px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Enter Name"
Style="position: relative" ControlToValidate="nametxt">*</td></tr>
<tr><td>Login Id</td><td><asp:TextBox ID="lidtxt" runat="server"></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Enter Login Id"
Style="position: relative" ControlToValidate="lidtxt">*</td></tr>
<tr><td>Password</td><td><asp:TextBox ID="pwdtxt" runat="server"></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="pwdtxt"
ErrorMessage="Enter Password" Style="position: relative">*</td></tr>
<tr><td>Confirm Password</td><td><asp:TextBox ID="conpwdtxt" runat="server"></td><td style="width: 157px">
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="pwdtxt"
ControlToValidate="conpwdtxt" ErrorMessage="Not Matching" Style="position: relative">*</td></tr>
<tr><td>Department</td><td>
<asp:DropDownList ID="depddl" runat="server" Width="153px">
<asp:ListItem>----Select----
<asp:ListItem>Cardiology
<asp:ListItem>Neurology
<asp:ListItem>Opthalmology,
<asp:ListItem>Nephrology
<asp:ListItem>Surgery
<asp:ListItem>Pediatrics
</td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="depddl"
ErrorMessage="Enter Your Department" Style="position: relative">*</td></tr>
<tr><td>Specialization</td><td>
<asp:DropDownList ID="speddl" runat="server" Width="154px">
<asp:ListItem>----Select----
<asp:ListItem>Pulmonology
<asp:ListItem>Cardiology
<asp:ListItem>Neurology
<asp:ListItem>Nephrology
<asp:ListItem>Opthalmology
</td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="speddl"
ErrorMessage="Specialization" Style="position: relative">*</td></tr>
<tr><td>Phone Number</td><td><asp:TextBox ID="phtxt" runat="server"></td><td style="width: 157px"></td></tr>
<tr><td>Address</td><td><asp:TextBox ID="addtxt" runat="server"></td><td style="wi
Sheerin Shaik
29-May-16 5:52am
View
Deleted
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class doctorsignup : System.Web.UI.Page
{
// this is already written code should replace if the code wont work below) SqlConnection cn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Angel\Desktop\Hospital Management System ASP.NET Project\Hospital Management System Source Code\App_Data\ASPNETDB.MDF;Integrated Security=True;User Instance=True");
protected void Page_Load(object sender, EventArgs e)
{
}
protected virtual void subbtn_Click(object sender, EventArgs e)
{
// this is for above database connection)//cn.Open();
try
{
SqlConnection cn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Angel\Desktop\Hospital Management System ASP.NET Project\Hospital Management System Source Code\App_Data\ASPNETDB.MDF;Integrated Security=True;User Instance=True");
SqlCommand command = new SqlCommand("sp_hospital_doctorsignup", cn);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add("@name",SqlDbType.VarChar,20).Value = nametxt.Text;
command.Parameters.Add("@loginid",SqlDbType.VarChar,20).Value = lidtxt.Text;
command.Parameters.Add("@password",SqlDbType.VarChar,20).Value = pwdtxt.Text;
command.Parameters.Add("@department",SqlDbType.VarChar,20).Value = depddl.Text;
command.Parameters.Add("@specialization",SqlDbType.VarChar,20).Value = speddl.Text;
command.Parameters.Add("@phonenumber", SqlDbType.BigInt).Value = phtxt.Text;
command.Parameters.Add("@address",SqlDbType.VarChar,40).Value = addtxt.Text;
command.Parameters.Add("@email",SqlDbType.VarChar,20).Value = emtxt.Text;
cn.Open();
return command.ExecuteNonQuery();
cn.Close();
}
catch (SqlException ex)
{
Console.WriteLine("SQL Error" + ex.Message.ToString());
return 0;
}
// the below code is written by me to the stored procedure .its going o stored procedure but its not calling the procedure .so am modifying this block of code with the other code and for a rference am keeeping the below code from here to emtxt in comment lines
/*SqlCommand cmd =new SqlCommand("sp_hospital_doctorsignup", cn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@name", nametxt);
cmd.Parameters.Add("@loginid", lidtxt);
cmd.Parameters.Add("@password", pwdtxt);
cmd.Parameters.Add("@department", depddl);
cmd.Parameters.Add("@specialization", speddl);
cmd.Parameters.Add("@phonenumber", phtxt);
cmd.Parameters.Add("@address", addtxt);
cmd.Parameters.Add("@email", emtxt); */ // this is my code
/* SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "sp_hospital_doctorsignup";
cmd.Connection = cn;
SqlParameter name = new SqlParameter("@name", SqlDbType.VarChar, 20);
name.Value = nametxt.Text;
cmd.Parameters.Add(name);
SqlParameter loginid = new SqlParameter("@loginid", SqlDbType.VarChar, 20);
loginid.Value = lidtxt.Text;
cmd.Parameters.Add(loginid);
SqlParameter password = new SqlParameter("@password", SqlDbType.VarChar, 20);
password.Value = pwdtxt.Text;
cmd.Parameters.Add(password);
SqlParameter department = new SqlParameter("@department", SqlDbType.VarChar, 20);
department.Value = depddl.Text;
cmd.Parameters.Add(department);
SqlParameter specialization = new S
Sheerin Shaik
29-May-16 5:51am
View
Deleted
if u can plz set the code to my page
file (doctorsignup.aspx)
<pre lang="ASP.NET"><%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="doctorsignup.aspx.cs" Inherits="doctorsignup" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Text=" Register Here "
style="z-index: 100; left: 256px; position: absolute; top: 202px; width: 303px;"
Font-Names="Modern" Font-Size="32pt" ForeColor="Red"></asp:Label>
<table style="z-index: 101; left: 234px; position: absolute; top: 275px; color: #ffffff; font-family: 'Lucida Console';">
<tr><td style="height: 26px">Name</td><td style="height: 26px"><asp:TextBox ID="nametxt" runat="server"></asp:TextBox></td><td style="height: 26px; width: 157px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Enter Name"
Style="position: relative" ControlToValidate="nametxt">*</asp:RequiredFieldValidator></td></tr>
<tr><td>Login Id</td><td><asp:TextBox ID="lidtxt" runat="server"></asp:TextBox></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Enter Login Id"
Style="position: relative" ControlToValidate="lidtxt">*</asp:RequiredFieldValidator></td></tr>
<tr><td>Password</td><td><asp:TextBox ID="pwdtxt" runat="server"></asp:TextBox></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="pwdtxt"
ErrorMessage="Enter Password" Style="position: relative">*</asp:RequiredFieldValidator></td></tr>
<tr><td>Confirm Password</td><td><asp:TextBox ID="conpwdtxt" runat="server"></asp:TextBox></td><td style="width: 157px">
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="pwdtxt"
ControlToValidate="conpwdtxt" ErrorMessage="Not Matching" Style="position: relative">*</asp:CompareValidator></td></tr>
<tr><td>Department</td><td>
<asp:DropDownList ID="depddl" runat="server" Width="153px">
<asp:ListItem>----Select----</asp:ListItem>
<asp:ListItem>Cardiology</asp:ListItem>
<asp:ListItem>Neurology</asp:ListItem>
<asp:ListItem>Opthalmology,</asp:ListItem>
<asp:ListItem>Nephrology</asp:ListItem>
<asp:ListItem>Surgery</asp:ListItem>
<asp:ListItem>Pediatrics</asp:ListItem>
</asp:DropDownList></td><td style="width: 157px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="depddl"
ErrorMessage="Enter Your Department" Style="position: relative">*</asp:RequiredFieldValidator></td></tr>
<tr><td>Specialization</td><td
Sheerin Shaik
29-May-16 5:50am
View
could plz give me the entire page?
Show More