- 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.
271 Posted Topics
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 … | |
Re: This is what I would do. Imagine you have table "Employee" with this two fields FirstName, LastName then you can do this. [CODE=SQL] SELECT FirstName, LastName, RowNumber FROM( SELECT Emp.FirstName, Emp.LastName, (SELECT COUNT(*) FROM Employee AS Emp2 WHERE (Emp2.LastName < Emp.LastName)) AS RowNumber FROM Employee AS Emp) AS derivedTable WHERE … | |
Re: You are missing a parentesis [CODE=SQL] ISNULL(MAX(ProjectOverview.[Target Event Date - Date]), 'INACTIVE') AS [Target Bid Date] [/CODE] | |
Re: I do not understand clearly your question but, to answer how do you check if the gridview has any rows this is what I usually do. [code=csharp]if(yourgridview.Rows.Count > 0) { //Has some rows } else { //No rows } [/code] | |
Re: I going to recode what you have to update [code=csharp] 1) protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) 2) String ID = (GridView1.DataKeys[GridView1.SelectedRow.DataItemIndex].Value).ToString(); //Or I think you can do this. String ID = GridView1.SelectedDataKey.Value.ToString(); [/code] | |
Re: Unity3d Engine Love it, use javascript, c# and others but i use just these two ones. | |
Re: using System.IO; File.Delete("Path"); That should do it. | |
Re: If you are using the AjaxControl Toolkit you can use the AlwaysVisibleControl here is a example of what it does [url]http://www.asp.net/ajax/ajaxcontroltoolkit/samples/AlwaysVisibleControl/AlwaysVisibleControl.aspx[/url] | |
Re: to answer your question you have to concatenate the textbox like this [code=csharp] description.Text += ndate + Environment.NewLine + dnotes; [/code] | |
Re: 1. if you use internet explorer, i think you will not get just text but the download option, but if you do get just text, you have to open a txt file in your computer, copy and paste the text you get in the website to your txt file and … | |
Re: So im guessing that you have a LinkButton or something like that to trigger the rowcommand event. I think i have used this before and it works. [CODE=CSHARP] int rowIndex = Convert.toInt32(e.CommandArgument); [/CODE] if that one above dont work you can try this lets say again that the rowcommand is … | |
Re: If you want you website to be view in all monitors you have to set the main div or body to 800px width, i actually don't use that width because now in these days a lot of people use at least a monitor with 1024 so that what i base … | |
Re: Try to use the property enabled instead of the ReadOnly to see what happens, i dont play too much with windows forms but in asp.net that would work. | |
Re: I have done that before, and never had a problem. all others styles got applied? is just that is not centered? | |
Re: I see that basically you want to fill a datagrid, there are some cases where is needed to use a datareader, lets say that you want to interact with the values returned from the database and create your own custom table, but if you going to display the data as … | |
Re: Why dont you use an int array to accomplish that? | |
Re: that statement goes like this [code=sql] INSERT INTO mst_order_report(Capacity, Clearing_Alpha, Client_ID, Client_Order_ID,Cumulative_Executed_Size, Date_Of_Expiry, Entry_Time, Exec_Type, Executed_Qty,Executed_Value, Execution_ID, Hidden_Size, Inactive_Time, Order_ID, Order_Qty, Order_Status, Order_Type, Owner_ID, PAN_ID, Parent_Order_ID, Reason, Remarks, Side, Stop_Price, TIF, Total_Qty, Trade_Report_ID, Trader_ID, Transact_Time, Value, Visible_Size, Trading_Member_ID, Symbol) SELECT Capacity, Clearing_Alpha, Client_ID, Client_Order_ID, Cumulative_Executed_Size, cast(Date_Of_Expiry AS date), cast(Entry_Time AS … | |
Re: I have not figure out if there is another direct way to retrieve that info but this is what i do. [CODE=CSHARP] richTextBox1.SelectAll(); textBox1.Text = richTextBox1.Selection.Text; [/CODE] | |
Re: [code=sql] select case when sl_pl_nl_detail.det_nominalcr is null then sl_pl_nl_detail.det_nominaldr else sl_pl_nl_detail.det_nominaldr end as some_name /*i think this can work for you too*/ select COALESCE(sl_pl_nl_detail.det_nominalcr, sl_pl_nl_detail.det_nominaldr) as some_name /*or this*/ SELECT ISNULL(sl_pl_nl_detail.det_nominalcr, sl_pl_nl_detail.det_nominaldr) as some_name [/code] | |
Re: About the first question when you say by the manufacturer sounds like you are acquiring the product thru a purchase order right? if that is true then i will save the serial no in the purchase order line item. Note: what happened if you are ordering 10 pieces for the … | |
Re: Refer to this thread [URL="http://www.daniweb.com/web-development/databases/ms-sql/threads/190891"]http://www.daniweb.com/web-development/databases/ms-sql/threads/190891[/URL] there are two solutions in there. |
The End.