Thank :)
RongNK
Posts
-
button in Repeater item -
button in Repeater itemProperties of btn: OnClientClick "" string PostBackUrl "" string UseSubmitBehavior true bool Why OnClientClick "" string :confused:
-
button in Repeater itemwhen i use PlaceHolder instead of Repeater, the problem continue :confused:
-
button in Repeater itemSame, it not work. Please give me a solution :)
-
button in Repeater itemI did it, but not work :( Thank !
-
button in Repeater itembtn.ID = "Cmd3";
Thank. I did it, but not work. -
button in Repeater itemWhen i work width tab ajax control, and in one tab, I have a Repeater:
and in
protected void rp1_ItemCommand(object source, RepeaterCommandEventArgs e)
method, i add a button and it's event:Button btn = new Button(); btn.Text = "Update"; btn.Click += new EventHandler(btn_Click); ((Repeater)source).Items[0].Controls.Add(btn); void btn_Click(object sender, EventArgs e) { Response.Redirect("http://google.com"); }
but when click on update button, event do not raise(btn do not drive click event). please help me ! Sorry for my english. :) -
Set grid background.I have an image and i want to set grid background by it.Please help me ! Thank, sorry for my english :)
-
drag imageI have a grid gr and divided it into 5 row, 5 column and placed a Image in it
Image tem = new Image();
tem.Source = new BitmapImage(new Uri("..."));
gr.Children.Add(tem);
tem.SetValue(Grid.ColumnProperty,0);
tem.SetValue(Grid.RowProperty,0);tem.MouseLeftButtonDown += new MouseButtonEventHandler(tem_MouseLeftButtonDown);
tem.MouseLeftButtonUp+= new MouseButtonEventHandler(tem_MouseLeftButtonUp);
tem.MouseMove += new MouseButtonEventHandler(tem_MouseMove);Now, i want to make tem_MouseLeftButtonDown, tem_MouseLeftButtonUp, tem_MouseMove to move Image from (row=i,column=j) to (row=Mouse point,column=Mouse point), in window form i can but in wpf i can't. Sorry for my english. Thank :-O
-
drag imageCan you show me how to "caught the mouse move event in each grid square". Thank :-O
-
drag imageThe grid have 5 ColumnDefinitions and 5 RowDefinitions. If image i can get current Column and Row by GetValue(Grid.RowProperty) and GetValue(Grid.ColumnProperty) . But i don't know how to get current Column and Row of Mouse. If know i can SetValue. Thank !
-
drag imageIn window form i can create 1 image and drag it from 1 place to another by: Image_MouseDown, Image_MouseMove and Image_MouseUp but in WPF i make 1 grid(create 5 row and 5 column) and i add child (image) to row 2 and column 2 then 1 make same events but i can't drag it. please make a solution . Thank.Sorry for my english !
-
Set Style in behind codeI have a style in XAML:
<Style x:Key="ButtonWithSnapShotAndReplace" TargetType="{x:Type Button}"> <Setter Property="Button.RenderTransform"> <Setter.Value> <ScaleTransform CenterX="50" CenterY="50" ScaleX="1" ScaleY="1" /> </Setter.Value> </Setter> <Style.Triggers> <EventTrigger RoutedEvent="Mouse.MouseEnter"> <EventTrigger.Actions> <BeginStoryboard > <Storyboard> <DoubleAnimation Duration="0:0:2" Storyboard.TargetProperty="RenderTransform.ScaleX" To="3" /> <DoubleAnimation Duration="0:0:2" Storyboard.TargetProperty="RenderTransform.ScaleY" To="3" /> </Storyboard> </BeginStoryboard> </EventTrigger.Actions> </EventTrigger> <EventTrigger RoutedEvent="Mouse.MouseLeave"> <EventTrigger.Actions> <BeginStoryboard> <Storyboard> <DoubleAnimation Duration="0:0:2" Storyboard.TargetProperty="RenderTransform.ScaleX" /> <DoubleAnimation Duration="0:0:2" Storyboard.TargetProperty="RenderTransform.ScaleY" /> </Storyboard> </BeginStoryboard> </EventTrigger.Actions> </EventTrigger> </Style.Triggers> </Style>
and i want to set style for a button in behind code that use this style. Thank.Sorry for my english. -
problem with stored procedureThank you very much :-O
-
problem with stored procedureSorry, i have learned C# for 2 weeks :)
SqlConnection connect = new SqlConnection(ConnectionFactory.strconn); connect.Open(); cmd = new SqlCommand("Proc_student_Add", connect); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("MaxID",varScenario.ID));
With that stored procedured i can't get return value by "int i = cmd.ExecuteNonQuery();", please help me to resolve this problem. Thank ! -
problem with stored procedureGet the value that returned :-O Thank !
-
problem with stored procedureHow to get return value in C# code ? :-O Thank !
-
problem with stored procedureI have 1 table student(ID,Name,Address). and i make a stored procedure
CREATE PROCEDURE [dbo].[Proc_Scenario_GetMaxID] @MaxID as int OUTPUT as BEGIN if((SELECT MAX(ID) FROM student) is not null) begin SET @MaxID = (SELECT MAX(ID) FROM student) end else Begin SET @MaxID=1 END return @MaxID END
so i can't get the MaxID in C#. Please help me ! sorry for my english. -
Event !I have a list: List ImgRow1 = new List(); and i set: foreach (Image item in ImgRow1) { item.MouseDown += new MouseButtonEventHandler(item_MouseDown); } in private void item_MouseDown(object sender, MouseButtonEventArgs e) { } and i want to get index of sender (for example: ImgRow1[2] => index=2 ). Sorry for my english. Thank !
-
ListboxThank !