|
Hi,
I thnk what is missing is SmtpMail.SmtpServer = "192.167.0.25";, which you need to asssing before calling the Send method. Simple Mail Transfer Protocol (SMTP) server for delivery from a .NET Framework application.
Thx,
Gayani
|
|
|
|
|
Hey
I have a DetailsView pointing to a datasource (a LINQ data source) that returns a row from a table to be displayed in the details view.
This works correctly and displays each column for the row in the DetailsView. However I wish to hide some of the columns such
as UserId and Acount_Balance so I have created fields for the DetailsView and bound them to the correct columns.
However now I get a DetailsView containing all the columns plus the bound columns I have created. How do I stop
the details view displaying all the columns and only show the ones I want it to.
Here is the code used:
<asp:LinqDataSource ID="OrganisorDetails" runat="server" ContextTypeName="DataClassesDataContext"
TableName="aspnet_Organisors" EnableUpdate="true" OnSelecting="OrganisorDetails_Selecting">
</asp:LinqDataSource>
<asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px"
CellPadding="4" ForeColor="#333333" GridLines="None"
AutoGenerateEditButton="True" DataSourceID="OrganisorDetails" DataKeyNames="UserId" >
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Fields>
<asp:BoundField DataField="Address_Ln1" HeaderText="Address Line1" InsertVisible="false" ReadOnly="true" />
</Fields>
</asp:DetailsView>
Thanks
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
Sorry - stupid question, I had the DetailsView autogenerating fields.
For any one who comes across this problem just go to DetailsView Tasks --> Edit Fields and unselect autogenerat fields.
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
Hi, Everyone
I'm doing project for customer and we must finish a module test online (Level english ) as <a href="http://www.english-test.net/esl/learn/english/grammar/ii406/esl-test.php">http://www.english-test.net/esl/learn/english/grammar/ii406/esl-test.php</a>[<a href="http://www.english-test.net/esl/learn/english/grammar/ii406/esl-test.php" target="_blank" title="New Window">^</a>]and we not know how finish it. Pls help me.
Thanks
|
|
|
|
|
what has this got to do with asp.net??
We are not a Code Charity
|
|
|
|
|
is this a PHP page ?????
what do you want exactly (.Net Module ) ?????? ??? ?
|
|
|
|
|
yes, it is module write by ASP.NET based C#, Can you help me?
|
|
|
|
|
Vunt1510 wrote: and we not know how finish it. Pls help me.
Vunt1510 wrote: I'm doing project for customer
I'm sure there are plenty of people here you could subcontract to, if you're unable to do the task you have taken money for, and don't even know enough about your problem to explain it beyond 'we don't know how to finish it'.
But, of course, that you asked here when it's PHP means you probably don't even know what tools you're using.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I would like your opinion about this? How do you rate it? Is it like a code generation tool?
Brendan
|
|
|
|
|
check this out for more information on it:
http://msdn.microsoft.com/en-us/library/bb264518.aspx
We are not a Code Charity
|
|
|
|
|
Hi all,
I need to make function that recieve any number from textbox and return the sum of this number without convert this number to string to dealing with it's index and get the sum, So the Number 2543 will return 14
So My Question is :
what's the other way to Get Sum of number without converting to string, Bytheway the function will recieve integer and return integer.
Regards
Mr.Wonderful
modified on Tuesday, June 3, 2008 10:18 AM
|
|
|
|
|
Mr. Wonderful wrote: I need to make function that recieve any number from textbox and return the sum of this number without convert this number to string to dealing with it's index and get the sum, So the Number 2543 will return 11
That makes no sense. If the number is coming from a test box then it already is a string.
|
|
|
|
|
Ok, No Problem.. Suppose there is no textbox and you fill the function manually, thats mean you write the number direct to the function, How the Solution Could Be.
|
|
|
|
|
Mr. Wonderful wrote: Ok, No Problem.. Suppose there is no textbox and you fill the function manually, thats mean you write the number direct to the function, How the Solution Could Be.
To begin with, in your OP you stated the number coming from input field. As colin pointed out you will need to address that issue first.
If you want to add add the digits of all numbers then you can use mod and divide to dissect each digit and get the sum of each. Here is an example.
Yusuf
modified on Wednesday, June 4, 2008 9:21 AM
|
|
|
|
|
Thanks a lot it was very Useful Site.
Mr.Wonderful
|
|
|
|
|
after running the setup ASPAJAXExtSetup.msi on server still i have the same problem... Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified....
Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]....please help me
|
|
|
|
|
|
Can I Edit in the DataGrid during the runtime
|
|
|
|
|
can you edit in the datagrid? yes. What are you trying to edit?
Yusuf
|
|
|
|
|
Just I Click the Check box on the header text then to Select all the checkboxs in the below columns on the datagrid
|
|
|
|
|
OK firslty reply to my post below and not start a new one
try this in regards to your post:
http://aspnet.4guysfromrolla.com/articles/053106-1.aspx
We are not a Code Charity
|
|
|
|
|
Hi,
I am searching on keyword like "Home Appliance System".
Now it is searching.
But I also want when I enter "Home System" then it will also search for the same that is display using Home Appliance System.
How can I do?
Thanks
|
|
|
|
|
We have no idea what you're talking about. I assume you're saying that you are doing a text search of a SQL database, and you need to break up your string so instead of searching for LIKE '%Home System%' you search for LIKE '%Home%System%'
Use string.Replace to replace the space with a %. And, try to ask intelligent questions that don't need to be decoded.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
Could any one let me know how to post data to a certain URL using Post and get method?
Thank you.
|
|
|
|
|
Surely just specifiy a url in your form??
We are not a Code Charity
|
|
|
|