I am not able to execute oracle stored procedure in C# code.
requirement: execute oracle stored procedure which has 1 inout parameter in C#. and inout parameter type is string/varchar.
input: i am having a oracle stored procedure which had one INOUT parameter.
exception getting: when i am using below lines of code
OracleConnection con = new OracleConnection(StrConnectionString);
OracleCommand cmd = new OracleCommand("sapncdb.encrypt_field", con);
cmd.CommandType = CommandType.StoredProcedure;
OracleParameter inval = new OracleParameter("inval", OracleType.VarChar);
inval.Direction = ParameterDirection.InputOutput;
inval.Value = "13-4186423 ";
Response.Write("return value is "+ inval.Value);
i am getting invalid procedure exception. i am not able to find where the problem is..
if the above code is wrong, you please provide me correct way of fulfilling my requirement.
Yup, that looks good using the intersection of the two rectangles. The right and bottom line are probably not appearing because they're outside the clip rectangle. The Rectangle method draws a rectangle where the dimensions you supply are the area inside and not including the lines.
Try deflate()ing the rectangle a bit and you should see all four sides.
I think the cause is the graphics,which belong to panel1(the parent of groupbox1),we drawed the rectangle on the panel1 but it just under the groupbox1.So the rectangle we drawed were cover by the groupbox1.
I'm not sure I like the look of this. You appear to be painting on the groupbox in the paint event of the form. Really you should only use that to paint areas of the form that don't have controls on them. You'd need to do that paint in the groupbox's paint event, not the form one.
Likelyhood is that the groupbox paints itself immediately after the form. Do you get flicker at all?
I want to ask a question about GUI designing in C#
I have a project to do , and it has only a few forms to show
and it is very important to have a very special and also very beautiful GUI
I want to know is it better to have a GDI+ and/or have a System.Drawing or/and
it is better to have a custom Control
help me please
thank you all
...f is a Form
for (int i = 0; i < f.Controls.Count; i++)
t_ctrl = f.Controls[i];
TreeNode t_tn = new TreeNode(string.IsNullOrEmpty(t_ctrl.Text) ? t_ctrl.Name : t_ctrl.Text);
t_tn.Tag = t_ctrl;
private static void addNode(Control ctrl, TreeNode tn)
for (int i = 0; i < ctrl.Controls.Count; i++)
t_ctrl = ctrl.Controls[i];
You should use a foreach, and you should write a recursive method, because some controls, contain controls.
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
I'm creating a web browser in C# and i've pretty much got what I needed and I keep getting stuck on one thing. When I'm browsing the web in my new browser and stumble upon a link that opens a new page in a new browser, or in a new tab or whatever, it opens that new page in internet explorer! lol. How can I stop this? It's really getting on my nerves, but it's making me laugh at the same time... I want to do something like this (and yes, i know this code will never work :p):
if Link is trying to open new page in new tab or window
then open that new page in a new tab in the current window.
... I know how to create new tabs, add a new webbrowser control to the new tab etc, i just don't know how to get those particular links to open up in a new tab. Does anybody have any ideas as to how I might go about doing this? I have looked on msdn and couldn't find anything. I also tried google and found a few links but then led me to something completely unrelated.
modified on Thursday, June 11, 2009 1:44 AM
Last Visit: 5-Jul-20 20:29 Last Update: 5-Jul-20 20:29