Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by pulpfiction

  1. pulpfiction

    asp error?

    Those 2 statements [hidden textbox] are written to put the student id and asid. if that statement is in the loop then it results in multiple hidden textboxes of the same name and value. If you see the POST data, there are multiple studif and asid. since we require these values only once, you need to write the code outside the loop....
  2. This should help...http://www.faqts.com/knowledge_base/view.p...id/2311/fid/128
  3. We can also write <% @Page Language="C#" %> at the top of the page and code between <%%> right??
  4. If you need login authentication in the same page, then try using AJAX....http://www.w3schools.com/ajax/default.asp
  5. google search gave this...http://phpclasses.goodphp.com/browse/package/1754.html
  6. pulpfiction

    asp error?

    The problem is with the post data. it sends the same studid and asid multiple times.... so when you form the query it will be like this..update ass_status set grade='A',remark='' where ass_id='15, 15, 15, 15, 15, 15' and student_id='1, 1, 1, 1, 1, 1';Grade seems to be fine.This is obviously wrong... Can you post the code of the previous page which redirects to this asp page..
  7. Can you post your code and error msg??
  8. Yes... Example below.http://www.w3schools.com/html/tryit.asp?fi...rame_navigationhttp://www.w3schools.com/html/tryhtml_contents.htm
  9. Copy this code in a HTML file and when you select the options it will redirect to the respective pages.... inorder to modify the redirected page, change the "value" attribute of the <option>..... <html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"> </style><script language = "javascript" type="text/javascript">function Jump(temp){var opt_key = temp.selectedIndex;var url_val = temp.options[opt_key].value;window.open(url_val,'_top');return true;}</script></head><body><form><select name="stockists" onchange="return Jump(this);"><option value="">Select Your Region<option value="http://www.google.com">East Anglia<option value="http://www.live.com">Ireland<option value="http://images.google.com">London<option value="redirect_page.htm">Midlands<option value="redirect_page.htm">Northern England<option value="redirect_page.htm">Scotland<option value="redirect_page.htm">South East<option value="redirect_page.htm">South West<option value="redirect_page.htm">Wales</select></form></body></html>
  10. The left div which contains the menu has a width:900px [covers the whole mid section]. reduce that width and float it to left. #content_wrap { width:200px; margin: 0 auto; text-align:left; float:left; border:1px solid #fff; }
  11. java script:<script language="javascript">function Jump(temp){ var opt_key = temp.selectedIndex; var url_val = temp.options[opt_key].value; window.open(url_val,'_top'); return true; }</script>HTML: [value attribute should contain the redirect page]<form><select name="stockists"><option value="">Select Your Region<option value="East_Anglia.htm">East Anglia<option value="ireland.htm">Ireland<option value="london">London<option value="midlands">Midlands<option value="n_england">Northern England<option value="scotland">Scotland<option value="s_east">South East<option value="s_west">South West<option value="wales">Wales</select></form>
  12. pulpfiction

    Order by Random

    If you are using SQL Server, then trySELECT col_name1, col_name2 FROM Tbl_nameORDER BY NEWID()
  13. pulpfiction


    Google gave this software which generates such family trees... havent tried it before, [not sure if its safe]. just give it a try...http://www.otway.com/family/docs/gedtree.html
  14. no problem, did you test the code, is it working fine?
  15. Also dont forget to include the script you mentioned at the bottom of page, may be you will save a few from going through such trouble.....
  16. Here's another method which combines password and timestamp in the link sent to user...http://www.tutorialized.com/tutorial/Email...on-in-PHP/10898
  17. Im new to C#, just giving it a try... correct me if wrong. private void Page_Load(object sender, System.EventArgs e) { if (!Page.IsPostBack) { //STEP 1: Get the data from the database SqlConnection myConnection = new SqlConnection("Connection String"); const string strSQL = @"SELECT TOP 6 Name, ViewCount " + "FROM tblFAQCategory ORDER BY NEWID()"; SqlCommand myCommand = new SqlCommand(strSQL, myConnection); SqlDataReader reader = new SqlDataReader(); reader = myCommand.ExecuteReader(); //STEP 2: Create the chart object PieChart chart = new PieChart(); //STEP 3: Bind the DataTable to the WebChart chart.DataSource = reader; chart.DataXValueField = "Name"; chart.DataYValueField = "ViewCount"; chart.DataBind(); chart.DataLabels.Visible = true; //STEP 4: Attach the chart object to the chart container ChartControl1.Charts.Add(chart); ChartControl1.RedrawChart(); reader.Close(); } }
  18. IF statement should not have ; in the end..... same thing for the second IF statement. Also the condition you check in the 2nd IF is again "CheckA" should it be "CheckB==false"if (CheckA == false);Change it to....if (CheckA == false){...........
  19. I just tried to install Internet Explorer Developer Toolbar Beta 3. is this the latest version? its pretty much like FF's tool but graphically poor....http://www.microsoft.com/downloads/details...;displaylang=en
  20. How about Crystal Reports, you can create reports and charts/graphs.....http://aspnet.4guysfromrolla.com/articles/120804-1.aspx
  21. I like all the designs there except for "Retro Theater by Eric Roge"http://www.csszengarden.com/?cssfile=/202/202.css&page=0
  22. Just google for more exampleshttp://www.google.com/search?hl=en&q=sql+triggers
  23. FF Web Developer tool is awesome, "validate local CSS" and "validate local HTML" options are really helpful..... Never used it much, guess it should be nice.http://dev.opera.com/tools/
  24. This might help [Read part II for UPDATE trigger]http://www.sqlteam.com/item.asp?ItemID=3850
  • Create New...