Click here to Skip to main content
15,903,175 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAccordion RadioButtonList Pin
Member 1038659531-Mar-14 11:35
Member 1038659531-Mar-14 11:35 
AnswerRe: Accordion RadioButtonList Pin
Tom Marvolo Riddle2-Apr-14 19:51
professionalTom Marvolo Riddle2-Apr-14 19:51 
Questionapostrophe Pin
praveenmachat30-Mar-14 8:47
praveenmachat30-Mar-14 8:47 
AnswerRe: apostrophe Pin
Tom Marvolo Riddle30-Mar-14 19:20
professionalTom Marvolo Riddle30-Mar-14 19:20 
AnswerRe: apostrophe Pin
Bernhard Hiller30-Mar-14 22:54
Bernhard Hiller30-Mar-14 22:54 
AnswerRe: apostrophe Pin
Richard Deeming31-Mar-14 1:20
mveRichard Deeming31-Mar-14 1:20 
GeneralRe: apostrophe Pin
praveenmachat31-Mar-14 9:41
praveenmachat31-Mar-14 9:41 
GeneralRe: apostrophe Pin
thatraja1-Apr-14 3:19
professionalthatraja1-Apr-14 3:19 
praveenmachat wrote:
Kindly provide a sample code to execute query as function as mentioned in above fashion
Just create a entity class with required fields like Name, Age, City. Assign values on UI layers & pass the class to this function.

C#
//Sample modification on Richard's code
public void execute(ClassEmployee objEmp)

using (var connection = new SqlConnection("YourConnectionStringGoesHere"))
using (var command = new SqlCommand("YourProcedureNameGoesHere", connection))
{
    command.CommandType = CommandType.StoredProcedure;
    
    command.Parameters.AddWithValue("@EmpName", objEmp.EmpName);
    command.Parameters.AddWithValue("@EmpAge", objEmp.EmpAge);
    command.Parameters.AddWithValue("@EmpCity", objEmp.EmpCity);
    
    connection.Open();
    command.ExecuteNonQuery();
}

}
Check this article for reference
Creating ASP.NET Applications with N-Tier Architecture[^]
thatraja
Code converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute


GeneralRe: apostrophe Pin
praveenmachat1-Apr-14 9:43
praveenmachat1-Apr-14 9:43 
GeneralRe: apostrophe Pin
Schatak4-Apr-14 3:07
professionalSchatak4-Apr-14 3:07 
QuestionSample code to create multiple series and legend in asp.net chart control Pin
Kandepu Rajesh30-Mar-14 0:29
Kandepu Rajesh30-Mar-14 0:29 
AnswerRe: Sample code to create multiple series and legend in asp.net chart control Pin
Schatak4-Apr-14 3:09
professionalSchatak4-Apr-14 3:09 
QuestionExcel file was corrupted when downloaded from server Pin
Kandepu Rajesh29-Mar-14 18:14
Kandepu Rajesh29-Mar-14 18:14 
AnswerRe: Excel file was corrupted when downloaded from server Pin
Blikkies31-Mar-14 0:37
professionalBlikkies31-Mar-14 0:37 
AnswerRe: Excel file was corrupted when downloaded from server Pin
Richard Deeming31-Mar-14 1:14
mveRichard Deeming31-Mar-14 1:14 
QuestionHow to display excel content in client, and allows the client to make changes. Pin
amcpanaligan29-Mar-14 13:59
amcpanaligan29-Mar-14 13:59 
Questionhow to solve data base connection error in asp.net Pin
arulbaskar28-Mar-14 3:30
arulbaskar28-Mar-14 3:30 
AnswerRe: how to solve data base connection error in asp.net Pin
Chris Quinn28-Mar-14 3:46
Chris Quinn28-Mar-14 3:46 
AnswerRe: how to solve data base connection error in asp.net Pin
Schatak4-Apr-14 3:14
professionalSchatak4-Apr-14 3:14 
QuestionLogout from Three IFrames at a time to login page Pin
Member 911920527-Mar-14 21:48
Member 911920527-Mar-14 21:48 
AnswerRe: Logout from Three IFrames at a time to login page Pin
Schatak4-Apr-14 3:17
professionalSchatak4-Apr-14 3:17 
QuestionHow to populate gridview based on another value clicked. Pin
Garishma27-Mar-14 7:55
Garishma27-Mar-14 7:55 
AnswerRe: How to populate gridview based on another value clicked. Pin
Bikash Prakash Dash28-Mar-14 19:50
Bikash Prakash Dash28-Mar-14 19:50 
Questiongive me the steps Pin
Member 1070426327-Mar-14 6:48
Member 1070426327-Mar-14 6:48 
AnswerRe: give me the steps Pin
Sulaiman_J3-Apr-14 0:21
Sulaiman_J3-Apr-14 0:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.