User Profile

Collapse

Profile Sidebar

Collapse
jarremw
jarremw
Last Activity: Jul 29 '08, 01:39 AM
Joined: Jan 17 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jarremw
    replied to call asp.net connect to mysql with ajax
    in .NET
    i am using the ajax control toolkit with vs2008, i cant post any code because im at work right now, but i do have my server side script working, the idea here is that when a user clicks on a link the modalpopup control shows with 2 textboxs and 2 buttons, user enters first and last name in the 2 boxes and hits ok, when ok is clicked i want to insert those two things into my db and also do a partial page postback to get the newly inputed items into...
    See more | Go to post

    Leave a comment:


  • jarremw
    started a topic call asp.net connect to mysql with ajax
    in .NET

    call asp.net connect to mysql with ajax

    hello all, what i have is a modal popup control extender, i have an ajax script that saves the value of the two textboxes that are in the popup, what i am needing is a way to insert those values into my mysql database using ajax since the server side code will have already been executed, how would i go about doing this, i have read on the xmlhttprequest function but im not sure if that is what i need, in the modal pop up i have two textboxes and...
    See more | Go to post

  • i acutally got it to work last night, turns out i forgot that javascript is case sensitive, so my textbox id was TextBox1 and i was looking for textbox1, so when i changed to TextBox1 it started working, thanks for the help though....
    also, im trying to add items to a dropdownlist that is nested in an update panel, the thing i couldnt get to work last night was the adding items to the dropdownlist, is there a way a make the updatepanel do...
    See more | Go to post

    Leave a comment:


  • yeah the ids are the same...

    i used this code also
    Code:
    function onok()
    {
    var textbox1 = document.getElementById("textbox1");
    var dropdownlist1 = document.getElementById("dropdownlist1");
    try{
           dropdownlist1.add(textbox1.value,null);
    }catch (err) {
                       dropdownlist1.add(textbox1.value);
    }
    and still nothing,...
    See more | Go to post

    Leave a comment:


  • ok im using this as my code
    Code:
    function onok()
       
          {
       
          var textbox1 = document.getElementById("textbox1");
       
          var commentbox = document.getElementById("commentsbox");
       
          try{
       
                commentsbox.nodevalue = textbox1.nodevalue;
                alert(textbox1.nodeValue);
       
          }catch (err) {
    ...
    See more | Go to post

    Leave a comment:


  • its dhtml, ok i cant try this right now because im at work, maybe on lunch, but this will be my new code....
    Code:
    function onok()
    {
    document.getElementById("textbox1")
    document.getElementById("dropdownlist1")
    try{
           dropdownlist1.add(textbox1.value,null);
    }catch (err) {
                       dropdownlist1.add(textbox1.value);
    }
    im using the vs2008...
    See more | Go to post

    Leave a comment:


  • ok, this is what i have my modal popup extender pointing too for the onokscript..
    <script type="text/javascript">
    function onclick()
    {

    }
    </script>

    this is what i have in the button1 click event
    Me.commentsbox. Text = "textbox1.t ext"

    textbox1.text and button1 are in the modalpopup, so what i need to know is what ajax function...
    See more | Go to post

    Leave a comment:


  • ok, so if use this code:

    var fill
    function onclick()
    {
    document.getele mentbyid('<%=dr opdownlist1.cli entid%>')
    }

    will just using this reference that control and make the click event for the control happen?...also i am aiming this event at a contol that is in an update panel, so do i need it to do a postback?
    See more | Go to post

    Leave a comment:


  • Is that how i call an asp.net server control? like for the button 1 click event i have me.dropdownlist 1.items.add(tex tbox2.text), the textbox that resides in the modal popup...is there a way to reference this control by just getting its id/name, or do i need to redo it in javascript?...
    See more | Go to post

    Leave a comment:


  • jarremw
    started a topic referencing asp.net controls in javascript

    referencing asp.net controls in javascript

    hello all
    i am trying to pass some text from a textbox to a dropdownlist in my asp.net page, i am using the modal popup extender and vs 2008, how do i go about referencing asp controls when writing the javascript? i have the pop up display with two textbox's and two buttons, when the ok button is clicked i want whatever is in the textboxs to go to the asp dropdown, so how would i go about doing this?

    thanks
    See more | Go to post

  • jarremw
    replied to how do i do this, link postback
    in .NET
    so i have a strange problem now, ive got the repeater to connect to my mysql db and fill in my links, now my problem is when i pass the querystring.... ..when set a labels text property to the querystring, it comes out right, but when i try to include in a sql statement something like
    select * from course where course = '" & this is the variable that holds my requested querystring & "' and run it through a data reader and...
    See more | Go to post

    Leave a comment:


  • jarremw
    replied to how do i do this, link postback
    in .NET
    ok thank you so much, i finally understand this (kinda) haha thanks for the help and the quick replies, i love this site
    See more | Go to post

    Leave a comment:


  • jarremw
    replied to how do i do this, link postback
    in .NET
    so will this help me with the links? like if i display just the title of the course on the page and when they click on the title link, it gets the rows associated with that clicked link and displays the info on another page?
    See more | Go to post

    Leave a comment:


  • jarremw
    replied to how do i do this, link postback
    in .NET
    yeah im just now learning asp.net, ive been doing vb for about 8 months, what methods would i use to do this in asp.net? basically what should i google because ive been looking around, i just dont know really what to look for, about the only thing that i have seen is postback stuff but that sounds like a lot to do for my webapp...

    thanks for the quick replies...
    See more | Go to post

    Leave a comment:


  • jarremw
    replied to how do i do this, link postback
    in .NET
    ok, i just looked around on that, but how would handle this when the reader is creating the link for me?

    while reader.read
    <a href = "post.aspx" lname = "<% response.write( reader(0)) %>
    end while

    i have the reader creating the link for me from each row in the db so that means that essentailly every link would be same right?, so how would i handle this event? or will the page...
    See more | Go to post

    Leave a comment:


  • jarremw
    replied to how do i do this, link postback
    in .NET
    i would like to post it using the datareader and let the reader read everything to the new page, something like when the user clicks on the link it will search the db for the row associated with that string of text and post it to another page called post where there would be labels to fill in for each part found in the db

    basically, i am wanting to know what link is clicked by the user so i can get the link text, search the db, and...
    See more | Go to post

    Leave a comment:


  • jarremw
    started a topic how do i do this, link postback
    in .NET

    how do i do this, link postback

    ok, im trying to make a web app using asp.net and vb, what im doing is i have a mysqldatareader reading the database and writing links to the page, what i want to do is when the link is clicked, i want it to grab the data that is associated with the links row in the database and post it on a new page, here is my code, any help would be tremendous

    Code:
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
    ...
    See more | Go to post

  • jarremw
    started a topic passing data from links
    in .NET

    passing data from links

    hello all, i am making a blog engine for myself and i am wondering how to get the correct data when a link is clicked, example being, i have mysqldatareader returning all exceprts of my post, what i want is when the user clicks on the title of the post, the whole article will be displayed when the next page is displayed, how would i go about doing this? ive read somewhat on the onlinkclick event, but im not sure if it is what i need, i am using asp.net...
    See more | Go to post
    Last edited by DrBunchman; Apr 28 '08, 08:44 AM. Reason: Moved to .NET - ASP forum for Classic ASP only

  • jarremw
    replied to reading through the sql database
    in .NET
    thank you so much! that was exactly what i was looking for, i started playing around with it more and got some really good results, probably my new favorite language!

    Thanks!
    See more | Go to post

    Leave a comment:


  • jarremw
    replied to reading through the sql database
    in .NET
    i dont have any sample code, i honestly dont know where to start with it , but my wanted output is something like a blog system, i want to display the title,date, entry and author all in a nice formatted way while grabbing it from mysql, i just dont know how to set it up so that it will loop through the enitre database and display all of that info, can this be done through asp? i know this is possible through php but i like asp better, im not using...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...