I am making a button invisible once it gets clicked. Is there any nice animation (programmably from code behind) code that fade the button away instead of sudden disappearance?
Consider the below 2 declarations.
appears next to the datatype and not next to variable
char* ptr1, * ptr2, * ptr3; //all 3 are pointers
appears next to the variable and not next to datatype
char *ptr1,*ptr2,*ptr3; //again al 3 are pointers
Is there any difference in intepretation between the 2 declarations. I know there is no difference in the variables.
What is the rationale behind introducing void pointers?
Say I have a router helper that I want more info on, like blogs_path, how do I find out the map statements behind that in console.
I tried generate and recognize and I got unrecognized method error, even after I did require 'config/routes.rb'
THanks
Hi folks,
I'm serving a Django app behind IIS 6. I'm wondering if I can restart IIS 6 within Python/Django and what one of the best ways to do would be.
Help would be great!
From my c# code behind, i pass a query to mysql database and get the data in a DataTable.
Now i want to use the data in data table to write the Insert query in a script file [.sql]
The objective of doing so is, whatever records i select from mysql, i should write that to a script file as backup. Thais why i need the insert statements.
How ? Or any other idea is appreciated.
I have a Windows application written in C++ that occasionally evaporates. I use the word evaporate because there is nothing left behind: no "we're sorry" message from Windows, no crash dump from the Dr. Watson facility...
On the one occasion the crash occurred under the debugger, the debugger did not break---it showed the application still running. When I manually paused execution, I found that my process no longer had any threads.
How can I capture the reason this process is terminating?
I have copy and paste this Alert Class:
http://madskristensen.net/post/JavaScript-AlertShow%28e2809dmessagee2809d%29-from-ASPNET-code-behind.aspx
It works except with a button inside an update panel but it shows no error. The asp code inside is executed but nothing shows up on client side.
The signature of the hashCode() method is
public int hashCode(){
return x;
}
in this case x must be an int(primitive) but plz can anyone explain it to me that the number
which the hashCode() returns must be a prime number, even number...etc or there is no specification ? the reason behind i am asking this question is i have seen it in different ids the auto generated code always returns a prime number, so i need to know why?
thanks in advance
I've been looking to make things a little more DRY, both on my personal projects (django) and at work (JSP/struts,PHP).
SASS+HAML seem to be quite popular, but, do those outside of the Rails community generally use these as well, or do they opt for other similar solutions? Which do you use, and what was the reasoning behind the choice?
Is it possible to get the system proxy configuration in Java?
In the Java Control Panel, you can set a proxy configuration. How can I access to that proxy configuration in order to open URL connections behind a proxy?
I'm looking into writing simple graphics code in Android and I've noticed some synchronized() blocks.
What is the reasoning behind this and how do I know when I should be "synchronizing" my code?
Hi all,
My application is crashing when I'm launching it in Instruments. No message is shown when I'm pressing Ignore. What could be the reason behind this? The application is running fine in simulator.
how can i set proxy in the netbeans app engine plugin ? so that the it works like command line appcfg -p proxy:port update application_name
i want to do this because i am behind a proxy.
I've been looking into SQL recently and exploring a bit. in regards to Temp Tables I have discovered 3 different temp table types:
1) CREATE TABLE #TempTable
2) DECLARE TABLE @TempTable
3) SELECT * FROM (SELECT * FROM Customers) AS TempTable
Now I understand the scope behind the #TempTable and the @TempTable types, but what about the derived table as in example 3? Where does this derived table get stored? and if it is declared in 1 transaction, can a 2nd transaction access it, or is the scoping of Derived Tables that same as example 1 and 2?
I have a button control. Once the user clicks on it, the click event should fire and then the button should get disabled. How can I do this? I have the option to use JQuery or JavasSript or both.
Here is my button declaration:
<asp:Button
ID="Button1"
runat="server"
Text="Click Me"
onclick="Button1_Click"
/>
On the button click code behind, I have added a Response.Write(). That should get executed and then the button should be disabled
i have a telerik menu control that can have an <ItemTemplate>.
suppose i have :
<telerik:RadMenuItem Text="Filter" Value="Search" >
<ItemTemplate>
<asp:TextBox ID="TextBox1" runat="server""/>
</ItemTemplate>
</telerik:RadMenuItem>
how can i dynamically create the textbox itemTemplate in code behind?
I have an ASPX page that is sometimes loaded into an iFrame in my application and sometimes not. From the code behind how can you detect if your page is being loaded from an iFrame.
I have a hidden asp Button in a Repeater. In the VB.NET code behind I use the Rerpeater_ItemCommand to get the click event within the Repeater. There's a check if user is already recording a project. If yes and he wants to start a new one, a confirm box should appear asking "Are you sure?" How can I access the click value from confirm?
<asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
<ItemTemplate>
<div class="tile user_view user_<%# Eval("employeeName") %>">
<div class="tilesheight"></div>
<div class="element">
<asp:Button ID="Button1" CssClass="hiddenbutton" runat="server" />
Index:
<asp:Label ID="Label1" runat="server"
Text='<%# Eval("index") %>' /><br />
<hr class="hr" />
customer:
<asp:Label ID="CustomerLabel" runat="server"
Text='<%# Eval("customer") %>' /><br />
<hr class ="hr" />
order:
<asp:Label ID="OrderNoLabel" runat="server"
Text='<%# Eval("orderNo") %>' /><br />
<asp:Label ID="DescriptionLabel" runat="server"
Text='<%# Eval("description") %>' /><br />
<hr class="hr" />
</div>
</div>
</ItemTemplate>
</asp:Repeater>
code behind:
If empRecs.Contains(projects.Item(index.Text).employeeID) Then
'Catch index of recording order
i = empRecs.IndexOf(projects.Item(index.Text).employeeID)
Page.ClientScript.RegisterStartupScript(Me.GetType, "confirm", "confirm('Order " & empRecs(i + 2) & " already recording. Would you like to start a new one?')",True)
'If users clicks ok insertData()
End If
Other solutions are using the Click Event and a hidden field. But the problem is, I don't want the confirmbox to appear every time the button is clicked. Only when empRecs conatins an employee.
Thanks for helping
Which is the best way to registered event for example if I wanto to regiested Loaded event for the window or user control , then it is better to registered in the xaml file or in the loaded/initilization function in code behind (C#/VB.net)? Please give explaination of your answer.
I pass text in a gridview cell with a pipe delimiter, for example "4|31.99|3", What I'd like to be able to do is format this text to show as
-------------
| 4 |
|£31.99 / 3%|
-------------
As you can see, I need the 4 to be Bold and be on a line of it's own, the 31.99 to be a currency and the 3 to be a percentage. Can this be done in code-behind using a converter or something?
i have a page that have some control on it. i add some element with programming in code behind.
how can i this:
when i add control that is larger than its container, show Scroll?(i used ScrollViewr but i don't know size of container because it resize in Run-Time to fill Browser)
Using simple type like
class A {
public int X, Y;
}
with object intializers, one can write
var a = new A { X=0, Y=0 };
But the following is also accepted by the compiler:
var a = new A { X=0, Y=0, }; // notice the additional ','
Same for int[] v = new int[] { 1, 2, };
This looks a bit strange ... Did they forgot to reject the additional ',' in the compiler or is there a deeper meaning behind this?
I am having an issue in IE8 where my dropdown-style navigation is going behind another element. I have tried everything from setting the offending element's zindex to 1 and the dropdown to 99 and 999. I think it has something to do with the fact that I'm using 960 grid, as it worked before when I wasn't.
Update: Problem occurs in IE8.0.6 but not IE8.0.7
Here is my stylesheet and you can see the issue happening here
Hi, after some google around, I just figured out that there is no one that is using 100% MvvM pattern to get the ToolKit DataGrid events !
Is that impossible or what ? I see too much people using the code-behind...
How can I get the SelectedRow or dblClick events using mvvm ?
cheers
Ola Bini, one of the big guys behind JRuby, is developing a new programming language called: IOKE. It's influenced by lisp, smalltalk and ruby. Share your thoughts about this new dynamic programming language