- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 20
- Posts with Upvotes
- 19
- Upvoting Members
- 15
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
Like to help.
- Interests
- Music, Movies, Play Pool.
Re: Lets say that in the loadmain you set text for a label like this Label1.Text = "Load Main" But you want to do the same thing if you click a button, then create a function called for example [CODE=VBNET]private void SetLabel() { Label1.Text = "Load Main" }[/CODE] then your load … | |
Hello friends, I am trying to approach a procedure but i am stock trying to add a DropDownList control into a TreeView Control, there is no TreeNode.Control.Add(). can somebody give an idea how can i go for this. thanks. | |
Re: You can use a datatable instead [CODE=CSHARP] DataSet dsResult = new DataSet(); DataRow drRev; DataTable dtRev = new DataTable(); dtRev.Columns.Add("Name"); dtRev.Columns.Add("Number"); For(int i =0; i < 3; i++) { drRev = dtRev.NewRow(); drRev[0] = "Ramon"; drRev[1] = i.ToString(); dtRev.Rows.Add(drRev); } dsResult.Tables.Add(dtRev); GridView1.DataSource = dsResult; GridView1.DataBind();[/CODE] and that case you can … | |
Re: you can do something like this [code=aspnet] GridViewRow selectedRow = (GridViewRow)((LinkButton)e.CommandSource).NamingContainer; //to get the value in the first column string st = selectedRow.Cells[0].Text; [/code] | |
| Re: [CODE=CSHARP] string find = "AAD"; string result = "<table><tr><td>AAD</td><td>35%</td></tr><tr><td>hola</td><td>40%</td></tr></table>"; string[] arrLines = Regex.Split(result, @"<tr.*?>",RegexOptions.IgnoreCase); foreach (string strLine in arrLines) { string[] strCol = Regex.Split(strLine, @"<td.*?>",RegexOptions.IgnoreCase); for (int i = 0; i < strCol.Length; i+=1) { string test = Regex.Replace(strCol[i], @"<[^>]*>", ""); if (test == find) { String Rate += Regex.Replace(strCol[i … |
Re: [CODE=ASPNET] <asp:DropDownList ID="DropDownList2" runat="server" style="margin-left: 75px" Width="131px" DataSourceID="SqlDataSource1" DataTextField="product_category" DataValueField="product_category" AutoPostBack="True"> <asp:ListItem>casting</asp:ListItem> </asp:DropDownList> [/CODE] Like the error says you, there is no prod_category and your datasource, so you have to change it for the real name which is product_category base on your select statement. | |
Re: Once I had that problem, I believe this piece of code did fix it, because I have never have that problem again, I actually don't like to much using Crystal Reports to many compatability issues, at least that is my experience. anyway I'm using asp.net in this is what i … | |
Re: First you create your class, within your class you put your properties and methods so a class for the student will look like this. [code=csharp] public class Student { private string studentId; public string StudentId { get { return studentId; } set { studentId = value; } } private string … | |
Re: Hi jlk1380, I believe you will need to open a new thread for this case, then post the link and this thread so I can find you and help you. And also is very helpful if you post the piece of code you trying to work with. | |
Hi friends, can you guys help me to find the best way to track information changes in sql server 2000, like a free utility. The problem is that i need to track every single table because i want to figure something out. we have an ERP System and there is … | |
Does anybody here have some experience calling a web service from android? Please help. Im using ksoap2 android 4.0 thanks for any info. | |
Re: Like Antenka said, maybe this is too complex for you for now, because everything is created at runtime, which that's why you don't see anything in the design view, but if you really want to continue to play around with this code, I add some lines to meet your request, … | |
Re: Post what you have so far, and we are going to help you to finish the code. | |
Re: Post what you have so far, so we can correct it or add what you are missing... | |
Re: You can try this function. [CODE=CSHARP] public static void Message(String message, Control cntrl) { ScriptManager.RegisterStartupScript(cntrl, cntrl.GetType(), "alert", "alert('" + message + "');", true); } //NOW FROM YOUR CLICK EVENT YOU CAN DO THIS protected void ClickEvent(Object sender, EventArgs e) { Message("This is my message", this); } [/CODE] regards | |
Re: First of all, if you want to trigger a server side method, I will use a LinkButton Control instead of <a> tag. [CODE=ASPNET] <asp:LinkButton ID="lnkBtn" runat="server" Text="Hide Panel" OnClick="hidepanel"></asp:LinkButton> [/CODE] Now in your c# code [CODE=CSHARP] protected void hidepanel(object sender, EventArgs e) { pnl_Add.Visible = true; pnl_List.Visible = false; } … | |
Re: Have you tried do the binding to a HiddenField? | |
Re: Update panel are sweet in some scenarios, you don't have to do too much to add that ajax feeling to your website, but the problem is that Update Panel send the whole html back and forth, which can slow down the web page. I will try to take out the … | |
Re: Maybe your computer could be infected, have you tried to scan your computer with some virus removals? | |
Re: I don't quite understand your question, when you say "I want to sum only distinct total, balance and paid", you mean that you will have two different total, two different balance, etc. So you will have a result like, [CODE=SQL] CUSTOMER TOTAL_FROM_DEBTTABLE TOTAL_FROM_DEBTSUM SOME 500.00 250.00 [/CODE] | |
Re: Can you post your GridView Control Structure and the code you are using to bind the Grid? | |
Re: Yes, you can use Ajax Technology in ASP.NET, Actually if you are creating a website you can use Ajax no matter what is your server side code or IDE you are using. Ajax is just javascript, which can be interpreted for any browser. Now, there are a few ways that … | |
Re: There are a few things in your code, that personally don't like, maybe a few friends in daniweb can help you too, I don't know how important is the security for this particular application but it sounds too me that if you are trying to distinct one user from another, … | |
Re: The Button Control has two properties, OnClick="ServerSideMethod" OnClientClick="ClientSideMethod". So in the OnClick put your Delete Method and in the OnClientClick="return Confirm('Are you sure want to delete');" or call the javascript function... | |
Re: You mean the default browser when debugging your website? | |
Re: First that is happening because you are not linking your two tables with a particular field, if that is what you want I would say SELECT TOP 1 THE REST OF THE CODE HERE. But this is what I think you need and the FROM Clause Remove everything and add … | |
Re: I think you are missing to select another field "dis_wing" [code=sql] select IFNULL(max(count(dis_rowno)),0) as maxcolspan, dis_wing from xyz [/code] Try that and let me know... | |
Re: If you dont want to filter out just the items that does not have a -U then you can do this. I'm assuming that the '-U' is always at the end. [CODE=SQL] SELECT CASE WHEN SUBSTRING(ItemNumber, LEN(ItemNumber) - 1, 2) = '-U' THEN ItemNumber ELSE ItemNumber + '-U' END AS … |