Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

Tal Kain

@Tal Kain
About
Posts
16
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Can not copy fie to the server.
    T Tal Kain

    I am not familiar with the way you're uploading the files and the problems sounds really weird... but here is the best way to upload a file by using the FileUpload control: if (oFile.PostedFile != null) { string fullFileName = oFile.PostedFile.FileName; string fileName = System.IO.Path.GetFileName(fullFileName); oFile.PostedFile.SaveAs(Server.MapPath(string.Empty) + "\\" + fileName); } this code will upload the file to the requested directory... (you can easily change the saving directory by editing the parameter in the SaveAs function..) and it should work with no problems... Good luck, Tal Kain.

    ASP.NET html sysadmin help question

  • Designing an Email application
    T Tal Kain

    Hey, Check out Syed Moshiur Murshed's tutorial for sending email using GMail[^]. in his tutorial you can see that one of the properties he configed was: mailMsg.BodyFormat = MailFormat.Text; MailFormat is an enum that one of his options is "HTML" that sends the email in html format (as you asked) and by using the class MailMessage you can render a html code and send it to the customer.. something like: string customerName = "....."; long customerId = 539482; string messege = "Hello " + customerName + " your Id is " + customerId.ToString() + ""; and then by using the Body property in MailMessage you can set the mail's text to the messege by using: mailMsg.Body = messege; //assuming mailMsg is the object of MailMessage Hope I helped... Good luck :-) Tal Kain.

    ASP.NET html sales tutorial question

  • error identification problem
    T Tal Kain

    First, In what point this exception has been thrown? Second, from what is looks like in the error itself and in the information from the metadata and http://msdn2.microsoft.com/en-us/library/system.xml.xmlnodelist_members.aspx[^] it looks like XmlNodeList (or the classes it inherit from) doesn't implement the proper interfaces so it could be serialized... and you can't transfer it from your web service to the client... so it looks like this error leads to finding another way transfering the data ;) good luck, Tal Kain.

    C# help xml oop question

  • combobox find item by value
    T Tal Kain

    So in the beginning I didn’t understand your exact problem... Anyway, At the moment the best way I think about to solve this problem is creating your own function that runs on the list of states and search for the specific id... so the function will return the index.. to make it easier You can even inherit from the class Combo Box and overload the function indexOf so it will do the job.. When I will have a better answer for this problem I will notify you :-) Good luck!

    .NET (Core and Framework) database help question

  • Bugs founded
    T Tal Kain

    Hehe, I just replyed to the wrong messege... sorry ;-)

    .NET (Core and Framework) help csharp question

  • Do any body have an idea about plugins?
    T Tal Kain

    There is also a version of Visual Studio (I think Professional/Team Developer) that supplies a specific type of project for all the Microsoft Office products (developing for Outlook/Word/Excel/etc...) it depends on the version of your Visual Studio 2005..

    .NET (Core and Framework) csharp tutorial question

  • Bugs founded
    T Tal Kain

    I just want to comment that you can also create your own implementation for the operators in your classes... Here is a tutorial I found by using Google: Here[^] other tutorials can be found over Here[^]

    .NET (Core and Framework) help csharp question

  • combobox find item by value
    T Tal Kain

    If I understand your request You want to find the index of a value in the combo box and also getting the selected item index ? well, for getting the index of a value in the combo box: cmbBox.Items.IndexOf("Male"); will give you the index of the object with the value of "Male".. and to get the selected item index you can use the property "SelectedIndex": cmbBox.SelectedIndex to get the index...(or to set it..) and: cmbBox.SelectedText for a string or cmbBox.SelectedValue for an object (get && set) next time, make a little search on our good friend Google... You could find it easly.. Good luck.

    .NET (Core and Framework) database help question

  • DataGridView In Form Designer
    T Tal Kain

    The easiest way I know to work with a DataGridView is to create a DataTable… create its columns and then connect the DataTable to the DataGridView as its data source.. I created an empty form and throwed a DataGridView on it with the name "gridNumbers" here is the code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace DataGridExample { public partial class frmMain : Form { DataTable oTable; public frmMain() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { oTable = new DataTable(); oTable.Columns.Add("Number", typeof(int)); //with cell's type.. oTable.Columns.Add("Text"); //a simple way.. gridNumbers.DataSource = oTable; //connecting the table to the grid AddRow(1, "One"); AddRow(2, "Two"); AddRow(3, "Three"); AddRow(4, "Four"); } protected void AddRow(int num, string text) { DataRow oRow = oTable.NewRow(); //getting a row with the table's scheme oRow["Number"] = num; oRow["Text"] = text; oTable.Rows.Add(oRow); } } } I tried to make this example as clear as possible... hope you got your answer :-)

    .NET (Core and Framework) question visual-studio

  • how to upload an document file?
    T Tal Kain

    a little comment: you should check if a file was really sent before trying to save it :-) if(FileUpload1.PostedFile != null) { //handle the incoming file } have fun.

    ASP.NET help tutorial question

  • Login Control Centering
    T Tal Kain

    You can use

    ....

    it works on firefox. enjoy.

    ASP.NET csharp css tutorial question

  • free ASP.NET message board(forums) system
    T Tal Kain

    yeap:laugh:

    .NET (Core and Framework) csharp asp-net sysadmin question

  • free ASP.NET message board(forums) system
    T Tal Kain

    I thought you were sarcasm.... anyway, thanks..

    .NET (Core and Framework) csharp asp-net sysadmin question

  • free ASP.NET message board(forums) system
    T Tal Kain

    no... but i'm looking for more options.. I already found Community Server.. someone else told me about it.. so i wasnt supprised.. anyway, there is a step in the configurtion that says: - If you try to run CS on Url other than localhost/cs (ie, the first paramater for cs_system_CreateCommunity), you must add the new Url using: exec cs_system_AddNewUrl 'localhost/cs', 'NEW_URL' how can i do it ? i didnt understand this step... and yes, I'm probably a newbie.. but still.. that doesnt mean I'm an idiot.. :| thanks, Tal.

    .NET (Core and Framework) csharp asp-net sysadmin question

  • free ASP.NET message board(forums) system
    T Tal Kain

    any other options? :|

    .NET (Core and Framework) csharp asp-net sysadmin question

  • free ASP.NET message board(forums) system
    T Tal Kain

    hey... I am looking for a free ASP.NET message board(forums) system that i could use in my website.. I found YetAnotherForum.net but with unknown reason i cant finish the installation on the remote server.. does anybody know other system that i could use? this is really important... thanks, Tal.

    .NET (Core and Framework) csharp asp-net sysadmin question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups