|
pls enable Cache application in your project.
Regards,
Satips.
|
|
|
|
|
Can you throw more light on it! Would be helpful if you can!
Gautham
|
|
|
|
|
I am using below mention code but system hang when ExecuteNonQuery fires.
don't know why and no error comes.
try
{
OpenConnection();
BeginTransaction();
DbCommand lobjCommand;
String lstrSqlCommand = "Pkg_Denoination.Proc_INSERT_PACK_INDENT";
lobjCommand = _db.GetSqlStringCommand(lstrSqlCommand);
lobjCommand.CommandText = lstrSqlCommand;
lobjCommand.CommandType = CommandType.StoredProcedure;
_db.AddInParameter(lobjCommand, "IN_SERVICE_ORDER_NO", DbType.String, ServiceOrderNo);
_db.AddInParameter(lobjCommand, "IN_ACTPACK_TYPE", DbType.String, ActPackType);
_db.AddInParameter(lobjCommand, "IN_REQUEST_MODE", DbType.String, RequestMode);
_db.AddInParameter(lobjCommand, "IN_APPROVED_BY", DbType.String, ApprovedBY);
_db.AddInParameter(lobjCommand, "IN_USER_UID", DbType.String, UserID);
_db.AddOutParameter(lobjCommand, "OP_ERROR_CODE", DbType.String, 50);
_db.ExecuteNonQuery(lobjCommand);
String lstrErrorCode = Convert.ToString(_db.GetParameterValue(lobjCommand, "OP_ERROR_CODE"));
CommitTransaction();
return lstrErrorCode;
}
catch(Exception ex)
{
throw ex;
}
Rickey
|
|
|
|
|
Hi,
Can u tell us after which line's execution your computer get hung? I mean up to which line your code runs fine?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
At ExecuteNonQuery method i.e. _db.ExecuteNonQuery(lobjCommand);
Rickey
|
|
|
|
|
Hi,
The logic written in your stored procedure may have any issue.
You try to run the procedure in sql query analyzer with dummy data and see if it gets executed successfully.
And to get value of output parameters u need to set the direction of the parameters which u add to the sqlcommand.
param.Direction = ParameterDirection.Output;
This way you can set directions for parameters and get their values after execution.
int x = (int) cmd.Parameters[parametername].Value;
Value property of sqlparameter is of type object so u need to cast it explicitly to the target type.
I hope this will help u.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
No Actually i am using the OracleClient here. Its a simple sp where i have insert statement if i use ExecuteNonQueryOutParam it works fine but this method return only one output parameter but i need to get two output paramters.
I think i have some problem with Enterprise Library.
Rickey
Rickey
|
|
|
|
|
Hi,
For which class u execute this method "ExecuteNonQueryOutParam"?
I am asking coz i could not find any method with this name for OracleCommand class.
There are two methods for this class to execute storedprocedures.
1. cmd.ExecuteNonQuery()
2. cmd.ExecuteOracleNonQuery()
I think after using this methods you will be able to get the parameter values as we get in the case of SQL server.
Try the way I suggested and let me know if it doesnt work.
and did u tried to execute your SP in query analyzer?
What's the response there?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Do you have any loops in your SP? Check your connection and try running the SP from Query Editor to check if it returns quickly.
(Or)
Set the Connection Timeout property. Maybe the server was too busy and has queued your connection request.
SG
|
|
|
|
|
No Actually i am using the OracleClient here. Its a simple sp where i have insert statement if i use ExecuteNonQueryOutParam it works fine but this method return only one output parameter but i need to get two output paramters.
Rickey
|
|
|
|
|
Hi,
I am using DataView control in asp.net 2.0.
I am explicitly binding the DataView control's DataSource to DataTable.
When I edit the values I want to update the DataTable.
How do I do that???
Thanks for Help
|
|
|
|
|
Hi,
Sorry but I doubt about any dataview control in asp.net 2.0.
There are controls like Gridview, DetailsView, FormView, MultiView etc. But I think there is no control named DataView.
There is a class "DataView" in namespace System.Data which represents a view of System.Data.DataTable class.
and that "DataView" class does not have any property called "DataSource".
Please clearly elaborate your requirement and situation and also tell us what code u have tried so far.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hello Chetan,
I am sorry for the wrong term, actually its GridView.
I am not using Sql or any other data source.
I am using DataTable. I need to use a drop down list inside a GridView.
Please tell me how to use and how to get back the value when user clicks update in GridView
Thank you
Surya
|
|
|
|
|
Hi,
You have tried any code so far?
You can go thru the following links.
Link1
Link2
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hello Chetan
Thanks a lot..
|
|
|
|
|
Hi friends,
How to pass parameters via .net to database.
(ie) how to call stored procedure and to pass parameters.
Please help.
Thanks in Advance,
Prya
|
|
|
|
|
Hi,
This may help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi guys i have one query,
I created textboxes dynamamicaly in ASP.NET. when i select 2 in dropdown list two text boxes will be come, same i will select 100 or more, that i created, now i want to how to validate those text boxes? i done server side vaditation but i want to client side validation. so please help me.....
Thanks advance
praveen kumar....................
Praveen Kumar.R
Praveen Kumar.R
|
|
|
|
|
Why don't you create dynamic Validators along with your TextBoxes? Just create appropriate Validator controls for each TextBox control you creating, assign it's properties and voila.
--
Mariusz 'mAv' Wójcik
master e-software engineer
|
|
|
|
|
Hi everyone,
I m working Web application (C# 2005).
I have one folders(Directory) in my application.it contains some sub folder(directory). i want to display these all sub folder as thumbnail view as like we have normally in explorer in our computer.
Please help me,
Best regards,
ASIF
|
|
|
|
|
Hi,
You can use repeater control and folder images to get the view u want.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi chetan,
can u show me some code,,,,
|
|
|
|
|
Hi,
Sorry you need to use datalist control instead of repeater control.
1. Put a datalist control on your page and in ItemTemplate create an Image control and set its ImageUrl property to the folder image path.
2. Use System.IO.Directory.GetDiretory(urdirectorypath) to get the directories in "urdirectorypath" and bind it to the datalist and Done!!!!!!!!!!!!!!!!!
-- modified at 4:32 Tuesday 5th June, 2007
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi all,
In my registraion page,i have to get states list based on country selection,city list based on state selection.Whenver the page is post back the password field is cleared.We are using asp.net 2.0.how to implement ajax concept for dropdownlists?Please come out me from this problem?
|
|
|
|
|
download the setup file for ajax from the site
http://ajax.asp.net
When you open the .net 2.0 you will see an additional section in the toolbar
named Ajax Extensions.
1) Drap and drop the scriptmanager control to page
2) Drap and drop the updatepanel to the page
3) Add combo box inside the updatepanel, then write the coding,
Now, only the control inside the updatepanel is refresh. so password field
will not be clear.
Note:-
The web.config file has to be modified for making it to work using ajax,
otherwise, the page will work normally i.e entire page is posted to server
The sample web.config can be got from the website or from your local machine.
|
|
|
|