I have tried to link one form to another. As i click the button in 1st form to call another form, the other form does not stop for entering values. How can i stop that form ???
how we can save a file as temporary basis
i have a xml file it is in encrypted mode i want to decrypt it .but i want it doesn't save on disk rather it save on flash memory. after decryption i have to read values and then it should destroy(decrypted xml file).
I have a non-contiguous range on rows (example address of myRange: $2:$2,$4:$205,$214:$214) and I would like to access a specific row and column within the range. I have tried the following:
'Get the value of the 2nd row, 1st column within the range
myRange.rows(2).Cells(, 1).Value
However, this is giving me the value of the 2nd row in the WorkSheet, and NOT in the range - meaning it is giving me address $3$1 - and not $4$1
Can someone please explain how I can access the values within in my range? (It may have to do with different areas)
Thank You
I need to insert same data to my MySQL table without having PHP loop. The reason why I'm doing this is that because I have a column with Auto_Increment feature and that column associates with other table.
So, I just need to insert some exactly same data and it's multiple rows (dynamic) but by using single INSERT syntax below :
INSERT INTO outbox_multipart (TextDecoded) VALUES ('$SMSMessage')
how to have this single INSERT syntax, but produce n number of rows?
Hello,
I got an issue while trying to display a jquery UI slider with its range based on a values read with PHP from a text file.
Its seems that it's a syncrhonising issue as I get the error: "An attempt was made to use an object that is not, or is no longer, usable" code: 11"
Is there a way I can force the jquery UI slider to wait for the value to be present or to work in synchrone mode ?
Thanks in advance.
I want to read a text file containing a space sepearted vlaues.Values are integers.
How can i read it and put it in a array list??
eg of contents of texx file
1 62 4 55 5 6 77
now i want a arraylist as [1, 62,4,55,5,6,77].
How do i do it in java?
How would you write a list comprehension in python to generate a series of n-1 deltas between n items in an ordered list?
Example:
L = [5,9,2,1,7]
RES = [5-9,9-2,2-1,1-7] = [4,7,1,6] # absolute values
I have had a lot of success creating graphs with Flot. However, I can not seem to figure out how one would go about shading in a region between two lines using the library. My goal is to be able to create shaded regions as illustrated below:
I found this plugin, but it appears that it can only shade a range of values of a line, as demonstrated here.
i am trying to load database values from 6 - 7 tables on a single page i.e users, their post e.g with $.load(); and it is taking from 15+ seconds to load but i want to load that page from 1-5 seconds ...i know it depends on internet connection speed but how can i do that ....
Hello.
I got a script that create a new database, now I need to fill that database with tables and values (from a MySQL dump file).
I'm using PHP - Doctrine 1.2.
Here is how I create the database:
$manager = Doctrine_Manager::getInstance();
$newConn = $manager->openConnection($customer->Config->db_connection_string);
$newConn->createDatabase();
How I do this?
Thanks!
This is Query:
CREATE TABLE #TempTable(datasize varchar(200))
INSERT #TempTable
EXEC sp_spaceused 'Table1'
When executing this query error message shown as below
"Column name or number of supplied values does not match table definition"
How can i solve this problem?
I need to be able to scroll text on a label i am using this for the credits portion of a tic tac toe game. How can I make this happen we've only been taught to scroll through number values in the scrollbar not text. Your help is appreciated.
private void xGameCreditsButton_Click(object sender, EventArgs e)
{
this.xWinnerLabel.BackColor = Color.White;
this.xCreditsScrollBar.Visible = true;
this.xWinnerLabel.Text = "This game was made possible with the help of: blah bla blah";
}
I'm using LINQ2SQL and I want to compare two tables and select all rows that are missing from one tables (based upon one of the column values).
In standard SQL I would write this as:
SELECT
FirstName,
LastName,
RefId,
Email
FROM
Users_ActiveDirectory AS ADU
WHERE
NOT EXISTS
(
SELECT
U.RefId
FROM
Users AS U
WHERE
U.RefID = ADU.RefId
)
However I'm not sure how to achieve the same result using LINQ2SQL?
I am using JQuery to populate a set of three cascading dropdowns which have the autopostback to false. How in the code behind do I access the selected values of the dropdowns?
I'm trying to get to grips with regular expressions:
I have a database connection string and I'd like to use a regular expression to identify specific Keys and Values within it.
For example
server=foo;database=bar;uid=foo;pwd=bar
I'd like something to return "database=bar;" using the 'database' key to identify it, ideally it would be case insensitive. I can do this using normal code, but I think that this is exactly the sort of thing for which regular expressions were designed.
Let's say:
I want to query colA, colB and colC in my table.
I want to see DISTINCT values but I don't want colA to be a criteria for distinction.
Omitting colA isn't an option.
What's the best way to structure that query?
One of our program writes program information(window title, memory etc) in Java Preferences. On windows this is available under registry. How can I read the values written by Java program using c (or c++).
Looks like API I should use is RegGetValue. Is this guaranteed to work on Windows XP 32 bit?
The String written by java is UTF-8 encoded. How do I read such strings in windows (win32 or vc++)
Cheers,
Jayan
hi i have a weird problem and here we go:
i am redirecting using this command :
return RedirectToAction("ViewMessage", "Account", new {id = model.MessageId});
but in ViewMessage action when i try to get id, its null ?!?!?!?!??
string strMessageId = RouteData.Values["id"] as string;
i have done this code in lots of places and it works fine but i dont know what is going on here.... :(
i know i can use TempData but i dont want to :)
hi,
this is my xaml code.
<sdk:DataGrid x:Name="dgMarks" CanUserResizeColumns="False" SelectionMode="Single" AutoGenerateColumns="False" VerticalAlignment="Top" IsReadOnly="True" Margin="13,44,0,0" RowDetailsVisibilityChanged="dgMarks_RowDetailsVisibilityChanged" RowDetailsVisibilityMode="Collapsed" Height="391" HorizontalAlignment="Left" Width="965" SelectionChanged="dgMarks_SelectionChanged" VerticalScrollBarVisibility="Visible" >
<sdk:DataGrid.Columns>
<sdk:DataGridTemplateColumn>
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button x:Name="myButton"
Click="ExpandMarks_Click">
<TextBlock Text="{Binding Level}" TextWrapping="NoWrap" ></TextBlock>
<Image x:Name="imgMarks" Stretch="None"/>
</Button>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
<sdk:DataGridTemplateColumn Header="Name" Visibility="Collapsed">
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate >
<sdk:Label Content="{Binding Name}"/>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
<sdk:DataGridTemplateColumn Header="Marks" Width="80">
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<sdk:Label Content="{Binding Marks}"/>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
</sdk:DataGrid.Columns>
</sdk:DataGrid>
from database i am getting these values
name marks Level
abc 23 0
xyz 67 1
yu 56 0
aa 89 1
here i am binding these values for datagrid.
i have an tricky thing to be done .based on the level i should be binding image
if level value is 1 then bind the image. if level value is 0 then do not bind the image for that row
i know this is how we need to handle but where should i write this code in which events?
Image imgLevel = (Image)templateTrendScore.FindName("imgMarks");
if (level1==1)
{
imgLevel .Source = new BitmapImage(new Uri("/Images/image1.JPG", UriKind.Relative));
}
any help would be great thanks in advance
I have the following 3 options, I believe there are more:
For Each entry In Me
Next
For i = 0 To Count
Dim key = Keys(0)
Dim value = Values(0)
Next
For Each Key In Keys
Dim value = Me(Key)
Next
I've created a jquery table that from time to time needs to be cleared and the re-populated, my clear method is this:
//Clear table content before repopulating values
$('#tabela_dash2_maquinas .real-content table tr:gt(0)').remove();
Now i'm trying to use tablesorter to sort a specific column, but my problem is that when I enable the tablesorter:
//Initialize tablesorter
$("table").tablesorter();
The table clearing method is not working anymore, it just keeps adding the new data with the old data, creating a lot of repeated information.
Please help
i have used html in my java class and in one case i have used username.Username is a variable which gets values dynamically. in one case its value is 'rg@bg' but here instead of d name i m getting d url which it is directed to in my jsp. how do i ensure tht d value of username comes on d display page as it is.
i have tried "@"+username. didnt work
I have an NSDictionary where both the keys and values are NSStrings and I'd like to create one NSString from them in the form of
Key1: Value1
Key2: Value2
What is the best method of doing this?
Hi, I'm pretty useless when it comes to math and I have a problem I need help with.
This has nothing to do with schoolwork, it's in fact about alcatel and the ticketextractor. I have two values that needs to be calculated in a c# application according to a formula specified in their documentation:
"The global callid is equal to: callid1 multiplied by 2 power 32 plus callid2"
As I said I'm not big with maths so that statement says nothing to me. If anyone know how to calculate it i'd appreciate it! Thanks
How can I force my objects DataContext bindings to update? I'm using an event on a grid, and binding updates are not being processed before my event fires.
Any cheap tricks to get around this?
In the end I can always do things the old manual way of getting the values from my textboxes and updating my object, but it'd be nice to have binding do it for me.