i want to check select statement(string) is valid or not in c#.net, if select statement is right then retrieve data and fill dropdown list box else drop down should be empty
Hi,
I've got an application that allows a panel to popup to allow the user to edit some properties.
How do I set the panel owner so that it is on top of all the other components on the page without actually disabling them like you do with an alert box?
I want to add check boxes inside a combo box and then use the values of the checked boxes in my sql query.
Also I need to append the checked values to an array and then use the elements of that array in my sql query.
How can I proceed?
I am new to php programming..
I have validated the form elements(input box,checkbox).. I am facing problems with form submission could you please help me out on this?
I need to add some code to the EndInit method of a PictureBox control but unfortunately its private and, from what I can gather, I can't shadow it and call base - at least not in VB.Net.
What I can do is add a dummy property to my picture box class. The type of the dummy property is simply a class that just implements ISupportInitialize. However, that doesn't work, I need the dummy class to inherit from Control.
Is that the minimum requirement?
Basically I have a Search Text Box with a LinkButton Control on which the click event is fired. now what i want is when the user type keywords and press enter the Click event got fired.
So No Javascript Only ASP.NET With VB.NET v2.0
Sincerely
Rajeev
[email protected]
i create css code like
.inputHide {
font-size : 100px;
width : 100px;
height : 100px;
border : none;
background : transparent;
readonly : true;
}
But it does not work. Although if i use font-size of 1px then by using tab i can access that textbox & can change it's value.
Is there any way to make textbox readonly just using css..
So, I can create an input button with an image using
<INPUT type="image" src="/images/Btn.PNG" value="">
But, I can't get the same behavior using CSS. for instance, i've tried
<INPUT type="image" class="myButton" value="">
where "myButton" is defined in the css file as
.myButton{
background:url(/images/Btn.PNG) no-repeat;
cursor:pointer;
width: 200px;
height: 100px;
border: none;
}
If that's all I wanted to do, I could use the original style, but I want to change the button's appearance on hover (using a myButton:hover class). I know the links are good because I've been able to load them for a background image for other parts of the page (just as a check). I found examples on the web of how to do it using javascript, but I'm looking for a css solution.
I'm using Firefox 3.0.3 if that makes a difference.
Thanks
I need to use the Sybase Python module but our SA's won't install because it's not in the repo's. I've downloaded it and placed it on the box and would just like to 'import' or 'include' the module without installing it first. - Is this possible? From the looks of it (Sybase ASE) it needs some type of compilation before use. Is it possible for this type of work around?
After I have the initial ASP.NET MVC 2 website and the default Membership provider up, how do I start adding features specific to an user? Like, say, we want to let users choose their favorite products and we want to remember these choices somehow or add a favorite color property to an user?
Where should these customizations go and how should they be associated with the out-of-the-box membership system?
I have created NPAPI plugin, which is workig fine on linux where I have created the .so file but when I deployed this plugin on our production device where we have linux environment with limited resources(due to performance constraints) , following error is thrown
'/usr/lib/mozilla/plugins/npPluginTest.so' is not an ELF executable for sh
FYI:so file created on 32bit linux box.
how can I resolve this issue?
I have 4 check boxes and by default they are checked and depending on these check boxes i have to show a value some where else.
for ex:
suppose for first checkbox i say 1, second 2 ,third 3 and fourth 4
so initially i store this value in a string name dg="1,2,3,4"
if the user unchecks the second check box the value in my dg must be showing :
dg="1,3,4"
And again if the user checks the second chekbox , my dg must store the value :
dg="1,2,3,4"
How to achieve this? TX in advance
Hi, this should be pretty simple, but i forgot how to do it...
I've got a Border on a canvas, and i want to be able to move it around.
i could do this easily with the MouseDragElementBehavior.
but i don't want smooth movment, i want to to jump on the Y axis in an offset of 30.
and on the X in 193.
And it's done in MVVM, so i guess i should implement it as a behavior, right?
anyway, how do i do this?
i intend to develop an app which would speak to the user the message he desires in the inbox. I have successfully created an app where there is a text box and when the user finishes typing in it and presses a speak button, he can hear what he has written, now how do i extend this to the desired app? please could someone please guide me on this?
I would like to create extend a Java Swing application to have a look somewhat similar to an IDE such as Eclipse or Visual Studio. That’s, there would be a panel at the left that displays a tree, and a tab panel on the right that allows several elements of the tree to be opened and edited on right. For this I could easily use a BorderLayout and just use the center and left areas.
However, I would also like to have the ability for the user to drag the border between these two panels, just like Eclipse and Visual Studio allow. I can think of several ways to do this, but was curious if anyone had found a particularly good way to do this, or knew of an example. I’ve googled for it, but have not found anything.
I have downloaded and built the latest version of mono (2.6.3), on Linux box (9.10).
I have successfully built the C# compiler mcs, but it seems that the vb compiler vbnc was not built.
Are there any special instructions required to build vbnc (other than configure, make, make install)?
Has anyone managed to successfully build vbnc? - if yes, what do I need to do to build the vbnc executable?
Any one there you have used DoubleAnimationUsingKeyFrames in C# can he/she provide example code or link where I can find the solution. I know how to do in xaml but I want to do it in code using C#.
how can i convert following xaml to C#
<Storyboard x:Key="Storyboard1">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="100"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
thanks in advance
Hello
My scenarion is this
1- i have a Form which is dynamically generated with some XML configuration information.
2- i am attaching Data Binding for a textbox in Text_Loaded event a well as Validation Rules and i am attaching Validation.AddErrorHandler for showing message boxs
3- Data Source for the binding is a DataTable.
4- I am having record navigation buttons on the form generated in step 1 (Next,Last,First,Previous)
5- If user edits data with invalid values in record no 1 validation fires and it creats a red border
6-user press Next button to navigate to record no 2 but does not update error field in record no 1 i.e. she leaves record no 1 with some error not in my data source but on the form.
7- She came back to record no 1 , here my problem begins , Record no 1 is updated with old values and does not show error which she made.
i know that ValidationRules will not allow wrong input to update my data source which is fine but i need to handle point no 7 , there is no direct way to handle this situation , any help is much appriciated
Hi
If you have a button and a text box in a page, and the page is cached on the server.
Put a breakpoint at page_load and run
If you click the button, the Page_load breakpoint is visited only for first click.
I am trying to get some explanation rather than "Wellll....ahhh mmmm it is a postback!!"
I am expecting that the breakpoint will not be visited at all, it is a cached page.
thanks
Here a short test to demonstrate my problem. I have a page that loads an iframe:
<html>
<head>
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"></script>
</head>
<body>
<iframe id="iframe" src="box.html" style="width: 100px; height: 100px"></iframe>
<script>
$('#iframe').bind('load', function () {
var div = $(this).contents().find('div');
alert(div.height());
alert(div.innerHeight());
alert(div.outerHeight());
alert(div.outerHeight(true));
});
</script>
</body>
</html>
The iframe (box.html) contains a single styled div:
<html>
<head>
<title></title>
<style>
div {
height: 50px;
width: 50px;
margin: 5px;
padding: 5px;
border: 2px solid #00f;
background-color: #f00;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
The four alerts should return 50, 60, 64 and 74, respectively. This works as expected in Safari and Chrome. In FF 3.5.1, they all return 64. This is wrong.
Does anyone know how I can force FF/jQuery to return the correct values?
Consider de following markup:
<div id="outerElement">
<div id="innerElement" style="border: 1px solid blue; background-color: #f0f3f5; margin-top: 100px">
TESTE
</div>
</div>
I want to get the actual final height of outerElement using javascript. I noticed that if I remove the vertical margins from innerElement I am able to get what I want but I cannot alter styles from within the outerElement.
How do I do this?
Obs:
I already tried height, scrollheight and offsetHeight in all browsers. Chrome gives me the expected value (including inner element's margins) for scrollHeight. All other browsers fail.
I've a window which I draw a custom border/caption, in order to do that I handle WM_NCPAINT message. My captin has two backgrounds a brighter one when it is the active window, and a darker one when it is in the background.
But under some circumstances, for example when the window loses/gain focus, my caption is not updated so I end with the wrong background.
Until now I've handled WM_NCACTIVATE, and send a RedrawWindow(hwnd, NULL, NULL, RDW_FRAME|RDW_INVALIDATE), but this causes the whole window to repaint. Do you have any advice about this?