Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About jaylisto

  • Rank
  1. i plan to make a fill up data sheet in the web form with c# instead of infopath. id tried the report manager witch i found out in youtube tutorial and it just print all the data in my data base like an excel type. i wonder i can choose data to be print with template. example. i want to print data like it was typed in a Microsoft word but selected data was came from the data base. this product is sold to (data from database) from (data from database ) date: (from database) and donwload / print it like it was typed in the microsoft word. if a video tutori
  2. this is a very simple task, it insert name, address and age to the database error when the sql data base from server is use. but when data base from folder app_data is used its working. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Configuration; namespace WebApplication5 { public partial class WebForm1 : System.Web.UI.Page { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].Conn
  3. code works without problem by putting all the code inside the next button..
  4. sir im about to surrender.this javascript makes me confuse. is there any easier way? please help by editing my existing code with the javascript handler. im not that expert. this is my first asp.net project.
  5. how do i do that? you mean instead of c# it should be on java? sorry im just a beginer.
  6. here's what i did on viewstate..... int j=0,k =12; protected void Page_Load(object sender, EventArgs e) { imagesthumbnailjaylisto(); if (!IsPostBack) { ViewState["clicks"] = j; //when the page loads the value of j is 0 by default and the value of k is 12 as declared on the top. ViewState["clicks2"] = k; } } protected void Button1_Click(object sender, EventArgs e) { if (ViewState["clicks"] != null && ViewState["clicks2"] != null)
  7. yes it does work. thank you for your help.but when i implement it in the next button in my gallery issues keeps on coming. i guest html destroys every variable i made every time i pressed "next button" that what makes it harder. in the static variable, the next button needs to press twice before the next set of thumbnails. i tried season state, static and viewstate i feel so dumb right now
  8. dude! i cant solve it. this portion will solve my problem on the link next button of my gallery. i dont know if i will start a new topic for this one. can you please help me every time i press the button it should count the number of clicked. i tried using static variable, yes it worked. but every time i re run the code the static will continue to its last value. public partial class WebForm1 : System.Web.UI.Page { static int count = 0; protected void Button1_Click(object sender, EventArgs e) { count += 1; Response.Write(count); }
  9. i will definetly search for that global/static/session. by the way. wow! you are amazing sir. i really upriciate your code. it really works. limitting 10 photos on the gallerynow the button "next" without redirecting the page will be my next problem.after pressing the button next , im planning to add numbers in the for loop portion like this one. for (i=10 ; ((i<pixpaths.Count)&&(i<20)) ; i++) is this possible? i will post my code later after numerous attempt. thank you very much.
  10. ok ill just put all the codes here. using System;using System.Collections.Generic;using System.Linq; using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.IO;namespace WebApplication5{public partial class WebForm1 : System.Web.UI.Page{protected void Page_Load(object sender, EventArgs e){jayvalue();}}Response.Redirect("~/WebForm1.aspx");}private void jayvalue(){foreach (string strFileName in Directory.GetFiles(Server.MapPath("~/pictures/loveones/"))) // "this portion is the loop where it loads all the content of all images in the folder pictures/lov
  11. been searching for the answer for a long time i have this working code for a simple photo gallery for viewing photos when the images are too many it will take a long time to load all the imagebuttons i want to limit the imagebutton's to load only 10 photos, i will just put another next button for the next 10 photos and so on. this foreach loop portion is where it loads all the pictures inside the folder named "loveones" ImageButton imageButton = new ImageButton();FileInfo fileInfo = new FileInfo(strFileName);imageButton.ImageUrl = "~/pictures/loveones/" + fileInfo.Name;imageBu
  • Create New...