Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. crxcte1

    textarea carriage return

    I used the replace method and it worked like a charm. Thank you for your help. cr
  2. crxcte1

    textarea carriage return

    Where in this code should isHtml == true? void SendThis(string HowToSend) { Span1.InnerHtml = "<B>Sending mail to </B>" + HowToSend; string sFrom = "ClubMail@OKCrunning.org"; string sSubject = txtSubject.Text.Trim(); string sBody = txtBody1.Value; string sBodyFormat =...
  3. crxcte1

    textarea carriage return

    Added; <textarea id="txtBody1" rows="15" wrap="soft" cols="50" runat="server" tabindex="2" textMode="multiline"></textarea> I typed in; tres return then submitted to me in an email and got; tres return There needs to be a return at return. I'm willing to try anything at this point.
  4. crxcte1

    textarea carriage return

    More information, using c# and mailing the information in the textarea. After receiving the text there is no carriage return which is evident before mailing.
  5. crxcte1

    textarea carriage return

    I've tried setting wrap to hard and soft but can not get a physical wrap. I tried setting to physical from MS help with no change. Anyway to wrap the text in a textarea? <textarea id="txtBody1" rows="15" wrap="hard" cols="50" runat="server" tabindex="2">
  6. crxcte1

    URL masking

    Trying to use multiple domains with one host. Some of the domains on are with different registras. I wish a domain came with one page service. Hosts want to charge for all the little things like subdomains, changing pointers to domains. I'm wanting to have more control of my domains by writing...
  7. crxcte1

    URL masking

    Any way I can mask my URL using c#? Example: my real URL is www.abc.com/mask/this.aspx when the user clicks on the link the URL in the address textbox would change to www.123.com.
  8. crxcte1

    ExecuteReader, SmtpMail, Access empty cell errors

    Yes, my head always hurts when I work with this code. I tried removing the .ToString which lead to another error. I wasn't sure if that was what you were referring to. Compiler Error Message: CS0023: Operator '!' cannot be applied to operand of type 'object' Source Error: Line 172...
  9. crxcte1

    ExecuteReader, SmtpMail, Access empty cell errors

    I tried your example and got an error as listed below; Operator '!' cannot be applied to operand of type 'string' Source Error: Line 172: while (drMembers.Read()) { Line 173: string sTo; Line 174: if(!drMembers.Equals(DBNull.Value) && !drMembers["email1"].ToString() == string.empty){ Line...
  10. crxcte1

    ExecuteReader, SmtpMail, Access empty cell errors

    The access database has 3 cells on each line and some are empty. When a empty cell is read I get an error. How could I step over an empty cell and so not to create an error? strSQL="Select email1, email2, email3 from members where membertype=Officers"; try { OleDbCommand cmd = new...
  11. crxcte1

    Mail.To

    The code below catches errors due to the 3rd record in the database being empty. I know this is too simple but its getting the best of me. while (drMembers.Read()) { MyMail.To = drMembers.GetString(0); if (MyMail.To != "") SmtpMail.Send(MyMail); MyMail.To = drMembers.GetString(1); if...
  12. crxcte1

    Link on datafield in table cell

    Fname1 works fine and the link works fine but having problems updating. How can I pass the ID to the query when using a link? <Columns> <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Save&#160;" CancelText="Cancel" EditText="Edit&amp;nbsp"></asp:EditCommandColumn>...
  13. crxcte1

    lnkButton is not enabled

    Found the bug...A submit button was placed at the bottom of the form as listed below. After changing it to a LinkButton my lnkMembers link started working... <asp:TableRow> <asp:TableCell> <asp:LinkButton ID="submit" OnClick="SubmitMember" Text="Submit"...
  14. crxcte1

    lnkButton is not enabled

    I changed the page load as listed below but still stuck in the form and can't activate the lnkMembers to move to the datagrid. GRRRRRRR... void Page_Load(Object sender, EventArgs e) { if (! IsPostBack) { bindDataGrid(); InsertForm.Visible=false...
  15. crxcte1

    lnkButton is not enabled

    More on this problem. If I click on submit in the form and post the textbox values, not leaving the form, the lnkMembers becomes active and works. This is strange. lnkMembers did not work prior to clicking submit.
  16. crxcte1

    Link on datafield in table cell

    I'm popluating a table through a query and using the control, <asp:BoundColumn DataField="ID" HeaderText="ID"></asp:BoundColumn>. I'm wanting to make the datafield ID a link to query all cells for that ID and display. Does .NET have a control for re-populating.
  17. crxcte1

    lnkButton is not enabled

    I start my page displaying a datagrid and click a lnkButton to go to a form. Now a different lnkButton is enabled to go back to the datagrid, the link is active but I go no where. The form is enbedded in a table. Some code listed below. I've been on this too long and need some help. Thanks...
  18. crxcte1

    datagrid 's ItemTemplate and edit ItemTemplate

    Could you recommend a source for using the wizard. I've been writing code for C# and never used the wizard. Books or web site? Thanks
  19. crxcte1

    datagrid 's ItemTemplate and edit ItemTemplate

    Thanks for the input Veep. When I click on the edit button the linkbuttons on update, cancel, and delete should appear in the datagrid. I tried adding your code but had no change, the edit button displays over again with no errors. ctr
  20. crxcte1

    datagrid 's ItemTemplate and edit ItemTemplate

    I get no errors on the code below. When I click on the edit button in the datagrid the delete, cancel, update links are not displayed. Only the Edit button is displayed. This thing is killing me, I'll try any thing. void Page_Load(Object sender, EventArgs e) { const string strConnString...

Part and Inventory Search

Back
Top