Posts
 
Reputation
Joined
Last Seen
Ranked #483
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
91% Quality Score
Upvotes Received
20
Posts with Upvotes
19
Upvoting Members
15
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
9 Commented Posts
~69.5K People Reached
About Me

Like to help.

Interests
Music, Movies, Play Pool.
Favorite Tags

271 Posted Topics

Member Avatar for babbu

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 …

Member Avatar for Nahla_1
0
2K
Member Avatar for jbisono

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.

Member Avatar for benny300
0
2K
Member Avatar for mansi sharma

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 …

Member Avatar for brianmanee
0
1K
Member Avatar for psathish2

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]

Member Avatar for jdesk
-3
9K
Member Avatar for kobalt

[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 …

Member Avatar for jemware.waseem
0
213
Member Avatar for arbazpathan

[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.

Member Avatar for jbisono
-1
566
Member Avatar for d.f

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 …

Member Avatar for d.f
0
691
Member Avatar for hastingo

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 …

Member Avatar for jbisono
0
143
Member Avatar for jlk1380

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.

Member Avatar for jbisono
0
99
Member Avatar for jbisono

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 …

Member Avatar for jbisono
0
164
Member Avatar for jbisono

Does anybody here have some experience calling a web service from android? Please help. Im using ksoap2 android 4.0 thanks for any info.

Member Avatar for jbisono
0
155
Member Avatar for MORFIOUS

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, …

Member Avatar for jbisono
0
153
Member Avatar for lubnafiroze

Post what you have so far, and we are going to help you to finish the code.

Member Avatar for jbisono
0
52
Member Avatar for 0007sj
Member Avatar for jbisono
0
185
Member Avatar for AndrewConroy
Member Avatar for desired

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

Member Avatar for icedome
0
80
Member Avatar for great_learner
Member Avatar for alleybye

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; } …

Member Avatar for jbisono
0
178
Member Avatar for zachattack05
Member Avatar for jackparsana

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 …

Member Avatar for carrieathomer
0
441
Member Avatar for eskimo456

Maybe your computer could be infected, have you tried to scan your computer with some virus removals?

Member Avatar for jingda
0
121
Member Avatar for SAINTJAB

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]

Member Avatar for SAINTJAB
0
238
Member Avatar for pepyrs

Can you post your GridView Control Structure and the code you are using to bind the Grid?

Member Avatar for jbisono
0
126
Member Avatar for mangal123
Re: ajax

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 …

Member Avatar for jbisono
0
109
Member Avatar for kylelendo

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, …

Member Avatar for jbisono
0
156
Member Avatar for Moss ali

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...

Member Avatar for nakor77
0
225
Member Avatar for bhagawatshinde
Member Avatar for wfbp

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 …

Member Avatar for jbisono
0
139
Member Avatar for naveedqadri

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...

Member Avatar for jbisono
0
113
Member Avatar for jovillanuev

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 …

Member Avatar for jbisono
0
110
Member Avatar for jacksantho

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 …

Member Avatar for adam_k
0
330
Member Avatar for aplee

You are missing a parentesis [CODE=SQL] ISNULL(MAX(ProjectOverview.[Target Event Date - Date]), 'INACTIVE') AS [Target Bid Date] [/CODE]

Member Avatar for adam_k
0
165
Member Avatar for Moss ali

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]

Member Avatar for jbisono
0
78
Member Avatar for dpiss99

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]

Member Avatar for crishlay
0
1K
Member Avatar for eoop.org

Unity3d Engine Love it, use javascript, c# and others but i use just these two ones.

Member Avatar for jamesl22
1
223
Member Avatar for sourabhacooli
Member Avatar for xanawa

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]

Member Avatar for jbisono
0
87
Member Avatar for niths

to answer your question you have to concatenate the textbox like this [code=csharp] description.Text += ndate + Environment.NewLine + dnotes; [/code]

Member Avatar for CsharpChico
0
186
Member Avatar for mm_89

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 …

Member Avatar for jbisono
0
126
Member Avatar for Shantanu88d

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 …

Member Avatar for shakeb@techwave
0
279
Member Avatar for chris evans

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 …

Member Avatar for sgt_toasty
0
181
Member Avatar for solarissf

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.

Member Avatar for jbisono
0
295
Member Avatar for kimmi_baby

I have done that before, and never had a problem. all others styles got applied? is just that is not centered?

Member Avatar for jbisono
0
287
Member Avatar for yehtunaung

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 …

Member Avatar for jbisono
0
93
Member Avatar for somemightsay
Member Avatar for Arjun_Sarankulu

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 …

Member Avatar for crishlay
0
179
Member Avatar for Dhammakirty

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]

Member Avatar for jbisono
0
99
Member Avatar for aajcl

[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]

Member Avatar for jbisono
0
464
Member Avatar for anirban1087

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 …

Member Avatar for jbisono
0
929
Member Avatar for Saikumar Adep

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.

Member Avatar for crishjeny
0
140

The End.