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
S

sajjy

@sajjy
About
Posts
40
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • threading
    S sajjy

    hi guys i dont know how to make thread in my program , please help me :) i wanna know how to make , and work with threads , it`s better to use System.threading.thread :cool:

    C# help tutorial

  • listBox selected values
    S sajjy

    hi , i have some problem in getting the selected values of my ListBox :doh: i use some code like this : ListBox1.SelectedValue but it just gives me the first selected value ! my list box is in multiple mode and user can select some coises !!! how can i get the whole of selected values without using for cycle ?!

    ASP.NET question help

  • problem on inserting non english values in DB
    S sajjy

    it is ntext , i changed it to nvarchar(MAX) to see if gets better , but didn`t came true !! :doh:

    ASP.NET database sysadmin help

  • problem on inserting non english values in DB
    S sajjy

    hi guys I have some problem in inserting non english values in AJAX method (in AJAX i send information on get method) :doh: my DB column type is : "ntext" (to allow non english) i checked , i get right data on server , but wrong data would inputed to the DB !!! :confused: some code is like that :

    string res = Request["amount"].ToString() + "," + Request["price"].ToString() + "," + Request["year"].ToString() + "," + Request["month"].ToString() + "," + Request["day"].ToString() + "," + Session["code"].ToString() + "," + Request["kind"].ToString() + "," + "1" + ",'" + Request["comment"].ToString()+ "'";
    string str = "INSERT INTO invest (amount,totalprice,year,month,day,personID,typeID,canedit,cms)VALUES(" + res + ")";
    SqlDataSource1.InsertCommand = str;
    SqlDataSource1.Insert();
    Response.Write("اطلاعات وارد شد");
    Response.End();

    ASP.NET database sysadmin help

  • filling a form on internet !
    S sajjy

    hi guys , i`m new in C# and now have a problem :) i wanna open a web page , then get it`s form (my perpose page has 1 form) then fill the form , and click the button ! :-D the textbox of user name , is named : "e5ba6b5" see , i did this :

           webBrowser1.Navigate("http://mysite.com");
                HtmlElementCollection htm = webBrowser1.Document.Forms;
                HtmlElementCollection user = htm.GetElementsByName("e5ba6b5");
    

    is it true ?! and how should i fill username and click the button ?! :wtf:

    C# csharp com help question

  • use javascript to change the color for mouseover
    S sajjy

    one other thing ;) if you found my postes helpful rate them !!! :-D

    ASP.NET javascript tutorial question

  • use javascript to change the color for mouseover
    S sajjy

    ex me because it`s late night here , and i must go to bed ;) you can use something like this :

    link button

    and change yur javascript to this mode :

    function LinkBtnMouseOver(e) {
    document.getElementById(e).style.backgroundColor = 'Blue';
    }

    function LinkBtnMouseOut(e) {
    document.getElementById(e).style.backgroundColor = 'Green';
    }

    or maybe it works directly on your asp page totaly like this new one : :sigh:

    <asp:LinkButton ID="LinkButton1" runat="server" onmouseover="this.style.backgroundColor = 'Blue';" onmouseout="this.style.backgroundColor = 'Green';">link button

    hope that it works :rolleyes:

    ASP.NET javascript tutorial question

  • use javascript to change the color for mouseover
    S sajjy

    :laugh: yes i know it`s like this ;) i have visual studio enterprise , and it`s not supported very well here too !:mad: but i think that on express mode many of features are not working :suss: i think that just some stupid coder like me can Use these old "dhtml" commands ! but any how i love dhtml an i use it any where ;P

    ASP.NET javascript tutorial question

  • Menu
    S sajjy

    hi you know , it`s not a real menu ! :cool: it`s just a tool to let you navigate between some pages !!! and its very easy to make that ! :) just make a master page like this with a table in left that has hyperlinkes to pages you want ;) then on masterpage`s page load function , set boarder for the cell that Client opens that that`s just it :-D

    ASP.NET com hardware question

  • use javascript to change the color for mouseover
    S sajjy

    oops my text came half !!! :-D and add this one to java script:

    NewID.style.backgroundColor = 'yourcolor';

    ASP.NET javascript tutorial question

  • use javascript to change the color for mouseover
    S sajjy

    you know these codes should be rendered and then goes to the client , so if there was some thing unknown goes directly to client ;) so test this one :

    link button

    ASP.NET javascript tutorial question

  • textbox event
    S sajjy

    hehehe i know :-D visual studio is stupid ;) javascript runs at client computers , so don`t worry :) just use it :cool:

    ASP.NET

  • textbox event
    S sajjy

    yes you are right !!! :laugh: but first we can let him to create his first javascript , then he can do any thing he wants ;)

    ASP.NET

  • textbox event
    S sajjy

    change it to this one :

    function Calculate()
    {
    document.getElementById('<%=txttotalprice.ClientID%>').value=
    document.getElementById('<%=txtqty.ClientID%>').value *
    document.getElementById('<%=txtproductprice.ClientID%>').value

    }

    notice that javascript is Case Sencetive ! :-\

    ASP.NET

  • textbox event
    S sajjy

    oh i forgot to say something else ;) in your code that you made textboxes you must add this function like this :

    ASP.NET

  • textbox event
    S sajjy

    javascript is the best way ;) if you have a masterpage , the way that blue boy said is better than mine :) code it like this in your .aspx page :

    the code that blue boy said

    ASP.NET

  • Download Mp3
    S sajjy

    it`s very easy friend ;) the work you must do is just to give the visitor the path of that file ! for example if you have button that visitor clicks that to download file you do this on button_click :

    protected void btn1_Click(object sender, EventArgs e)
    {
    Response.Redirect("~musicsfolder//music.mp3");
    }

    ASP.NET question

  • textbox event
    S sajjy

    hi you know , i think you`d better not do that like this !!! :-D because ontextchanged , sends the information to the server andyour page relodes and takes so much time ! it`s better to do this on client side with java script something like this :

    var quantity = document.getElementById('txtqty').value;
    var price = document.getElementById('txtproductprice').value;
    document.getElementById('txttotalprice').value = quantity*price;

    :cool:

    ASP.NET

  • Pass textbox value to javascript function
    S sajjy

    there is some way to get the text box value ;) one is to use .ClientId in your asp code like this : document.getElementById(<% textbox1.ClientId %>).value or if did`nt help you can do something else :) the ClientIds always the same as each other , so you can find the ID by view source of the page ! :laugh: for example it will be like this :

    document.getElemetById('ctl00_ContentPlaceHolder1_textBox1').value

    :cool:

    ASP.NET csharp javascript asp-net

  • insert query
    S sajjy

    thanks it helps alot ;)

    ASP.NET csharp database help question learning
  • Login

  • Don't have an account? Register

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