|
Try in way like : i.e.
TextBox.Attributes.Remove("maxlength" );
Parwej Ahamad
|
|
|
|
|
it is un-selected attributes of the textbox I want to remove attribute selected card in HTML source code in C #.
Because I do applications access data from Web
|
|
|
|
|
1- Make as server control.
<select>runat="server" id="Select1">
<option>121</option>
<option>122</option>
</select>
2- In back end code
Select1.Items.Remove(select1.SelectedIndex)
Parwej Ahamad
|
|
|
|
|
Yes thank you!
I want to embed javascript into the C # do?
|
|
|
|
|
|
Oh no! I just want to embed JavaScript code to C #. But I do not know cach.Ban only help me home.
Thank you
|
|
|
|
|
Use RegisterStartupScript to embed in you c# code
Parwej Ahamad
|
|
|
|
|
you can show me the specific source is not?
|
|
|
|
|
i created a form, but later noticed that i have four rows of student data for 1 ID, how do i bring back the four rows of data?
Ferron
|
|
|
|
|
Your DB is obviously broken. You can do a select to get the four rows, but if they have the same Id, then you have a bigger issue.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
they have the same id, but different addresses, so i wanna be able to print all those addresses
Ferron
|
|
|
|
|
is it the way you (outer) join the data in SQL?
Could you post your query
|
|
|
|
|
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[sp_getTransfer] (@TRANSFER_ID int) AS
-- Declare variables
DECLARE @rc Int
SELECT TransferDetails.IMID,TransferDetails.[DESCRIPTION], TransferDetails.AMOUNT,TRANSFERS.AMOUNT_TRANSFER, TRANSFERS.CONSIDERATION, TRANSFERS.TRANSFER_ID,
TRANSFERS.[DATE], TransferDetails.CURR, CUSTOMERS.CMF_NAME_1, CUSTOMERS.CMF_NAME_2,
CUSTOMERS.CMF_ADDR_1, CUSTOMERS.CMF_ADDR_2, CUSTOMERS.CMF_ADDR_3, CUSTOMERS.CMF_ADDR_4,
CUSTOMERS.CMF_POSTAL_CODE, TRANSFERS.Cons_Curr
FROM
("FGBInvestment"."dbo"."TransferDetails" "TransferDetails" INNER JOIN "FGBInvestment"."dbo"."TRANSFERS" "TRANSFERS" ON "TransferDetails"."TRANSFER_ID"="TRANSFERS"."TRANSFER_ID") INNER JOIN "FGBInvestment"."dbo"."CUSTOMERS" "CUSTOMERS" ON "TRANSFERS"."CUSTODIAN"="CUSTOMERS"."CMF_ACCOUNT"
WHERE "TRANSFERS"."TRANSFER_ID"= @TRANSFER_ID
Ferron
|
|
|
|
|
I had a look at your query and it seems fine. When you say that you have 4 rows for the same customer ID, do you mean that "CUSTOMERS"."CMF_ACCOUNT" has the same value?
If that's your key column (is it appears to be based on the query), I think your data is corrupted. If that's the key column of customers, it should be either primary key or unique key and there would be no duplicates.
|
|
|
|
|
When i run the query i found that there was a record with 4 different IMID, but the same transfer_id, i want to print those four records on to my form (aspx page)
Ferron
|
|
|
|
|
Based on your query, IMID is a column in TranferDetails and Tranfser_ID is the key column for Transfers, correct?
So if you have four rows in TransferDetails for a single transfer_ID, this query will result to four rows. Isn't this what you got when running the query?
I'm bit confused since if the situation described above is what you are experiencing, I don't see where the problem is. Or is the problem that your query actually returns four rows, but you're unable to show them simultaneously on aspx page?
|
|
|
|
|
yes man, that's exactly what i want too do, thank you man, thank you. Can you show me how ? an example maybe?
Ferron
|
|
|
|
|
I'm sorry but if the problem is in the aspx, that's something where I'm not able to help you.
I suggest that you try ASP.NET[^]-forum. I believe you would get good answers from there.
|
|
|
|
|
I have a form that pulls data from database, and drops it in labels. Is there a way to print multiple instances of that form, one below the other to represent two records?
Ferron
|
|
|
|
|
You can take screenshots by using the method that draws the form onto a graphics object, then build an image to print.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
There are several examples of printing code on this site. Did you perform any kind of search before posting your question?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
It would be nice if you directed me to them
Ferron
|
|
|
|
|
No, it would be pandering to your laziness.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I created an activex com object and would like to create an instance in a c# form. when adding the component with the wizard it creates a new instance with "new" end every C# exe gets its one inctance. I am looking for the equivalent C# whay to CoCreate: create the com object only if not exists, get the currantly active instance otherwise. I think the solution lies somware in interop services but failed to find a solution so far....
|
|
|
|
|
C# doesn't have an equivalent to CoCreate, its all hidden behind the interop wrapper. You just have to create an instance of the object in question. If you want a single instance of this object then you need to use a Singleton pattern.
only two letters away from being an asset
|
|
|
|