- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hi Friends,
I am Post Graduate student from DAIICT
Passion to learn new technologies,love hard coding,gaming,cycling...
49 Posted Topics
Re: Nop,here is the problem In your code line 19 of first Code Snippet [CODE] xmlhttp.open("GET","ReplyAJAX.php?TabID="+tID+"replycomment="+comment,true); [/CODE] Change it into [CODE] xmlhttp.open("GET","ReplyAJAX.php?TabID="+tID+"&replycomment="+comment,true); [/CODE] [B] You forgot an Ampersand symbol (&) . :) [/B] Hope it helps .. | |
Hi, I am totally new in [B]ExtJs [/B]and [B]Sencha [/B]touch... As per the samples explained in the demo application of sencha i am able to have one [B]Droppable [/B]area and multiple draggable objects. But when I am putting multiple [B]droppable [/B]regions, the application works awkwardly. It seems that it has … | |
Re: [QUOTE=baig772;1497527]i m suffering with the following error Warning: oci_connect() [function.oci-connect]: ORA-01017: invalid username/password; logon denied in C:\wamp\www\New Folder\connection.php on line 4 but i've tried atleast 100 times, username and passwords both r correct $conn=oci_connect("sysdba", "hammad90", ""); is thr any problem in the above code?[/QUOTE] Try providing the dbname as a … | |
Re: Hi,please make it more understandable. I am not getting your question. What do you want to achieve? | |
![]() | Re: Removing caache is definitely a good idea,but even you can try doing this,i am not sure,but it may help you. Try creating that partictular iframe dynamically in js or jquery. And if the page is left,the iframe should get deleted,so each time a new iframe is made and it's src … |
Re: So you mean to say that you are not able to access and run any website that you make as 'Http' not as 'File System', Is this the problem? | |
Re: Hi,this is a simple javascript to get start with it [CODE] if ( document.getElementById('name').value == "" ) { msg=msg + "\n--> Your name"; flag=1; } [/CODE] [B]And your changed HTML,and the code you wrote is very buggy[/B] [CODE] <form method=POST onSubmit="validate_form ();" enctype='multipart/form-data' action='insert.php'> <table> <tr><td>Data 1</td> <td><input type='text' id='data1' … | |
Re: Yes,it is possible. Even if post back is made then also it is possible. | |
Hey everyone I have a Datalist control,that contains a Gridview control. I have binded the data properly,but at the time when i select a row from gridview, i need to get a particular value from that selected row. But i am not able to do this. All data is shown … | |
Re: Hi,I dont know what kind of Database you are using here. But i have a solution for you if it is in Mssql But you do not need to wory,a little change may be needed incase Database is not Mssql this is the code [CODE] select * from tableName order … | |
Re: Hi, Actually many problems are there inside your HTML code Two reasons are there that your Please Wait is not shown.. 1 ) That you have put your [CODE] <DIV ID="Loading" STYLE="position:absolute;z-index:5;top:30%;left:42%;display:none;"> Please Wait.... </DIV> [/CODE] inside the <DIV id="LoadStructure">,so when your data is received asynchronously from the server,your Loading … | |
Re: It is very simple. What you need to do first is,convert each of the columns of your row in to a template field. do it as follows 1) Click on the GridView's Top-right corner,i.e smart menu 2)Click on Edit Columns 3) Select each of your column and Click on [U]Convert … | |
Re: Hey,why do you put large amount of code for a little task? create one function [B] <script language="javascript"> function clearAll() { document.getElementById('urInputFieldName').value=""; //Do this for all other input fields } </script> [/B] And then call it in this way [CODE] <body onLoad="clearAll();"> . ... [/CODE] | |
Re: Why do you have multiple fields for storing one question's answer?? like you have answer1,answer2,answer3 and answer4... do you want to provide multiple answers to be true for one question? Please clarify this. :) | |
Re: You will need to have an ajax call to your current page on the blur event of your text box. | |
Re: So what code have you written in your page load event? And instead of putting in openly,put it in this way.. [CODE] public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //write here if needed } } } [/CODE] And please put … | |
Re: You can not write that directly into the query,instead use parameters in your Stored Procedure [CODE] alter procedure [dbo].[GetFullStudentProfile2] ( @studentId int ) as select StudentID,StudentName,StudentFamilyName,Birthday,cls.Classname from dbo.Students where studentId=@studentId inner join Classes as cls on cls.ClassId=dbo.Students.StudentId GO [/CODE] This will be your altered stored procedure,i have declared @studentId as … | |
Re: The problem is simple,that you are making those elements and buttons inside the php code run-time,without changing their ids. So every time you click it will get only a first item,because all the elements are having the same ID,and if there exists more than one element with the same name … | |
Re: Hey,explain your problem with full details,because in this way no body is going to know what your problem is. | |
Re: Hi,the question you have posted is quite confusing. Please clear it with sample example. Like you have A.aspx you open B.aspx that generates and excel then... | |
Re: Hi, For getting random numbers you need to have a bit of code like this [CODE] Random Number Generator -- Generate Random Numbers (Int) between Rang -- Create the variables for the random number generation DECLARE @Random INT DECLARE @Upper INT DECLARE @Lower INT ---- This will create a random … | |
Re: If the input fields are already made hard coded,then code a javascript loop,and get first three input field's id in it and make them block [CODE] document.getElementById(ids).style.display='block'; [/CODE] | |
Re: Hi, 1 )In your BL,put some code to check whether the [B]StudentId[/B] already exists in your given table. If it exists,then return 2,if it doesnot exist,then only execute the insert statement or call the Data Layer insert statement/Sp,method. 2 ) Instead of returning boolean,return three differnt values [B]0 for successful … | |
Re: Did you mind in checking this line in the source of your webpage that links to the ajax assemblies [CODE] <add tagPrefix="act" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/> [/CODE] Here the value shown in tagPrefix="---",the dashes can be any value. | |
Re: Hi,the problem seems to be in conversion. The stored Procedure expects parameters of type Int or Bigint or numeric that is too defined in Autoincrement mode within the database. The problem is here 1 ) [B] SqlDbType.VarChar[/B] for parameterUID -- define it as int or int32 or something in numeric … | |
Re: Hi, This is a bit of theory that might give a bit of idea about sessions. Because every programmer working for Web/or such applications loves to deal with session,i would love to help you with this problem. [B] ASP.NET Session state provides a place to store values that will persist … | |
Re: In the code append few lines of code in this manner that clears the information entered in the text fields if the successfull form submission is made,remember if successful form submission is made. [CODE][B] function clearInputs() { document.getElementById('name').value=""; document.getElementById('email').value=""; document.getElementById('subject').value=""; document.getElementById('message').value=""; } [/B][/CODE] And call [CODE][COLOR="Green"][B]clearInput function[/B][/COLOR] like this after … | |
Re: A bit of intelligent code is required to be inserted for making an sql injection work. It cannot be directly obtained by inserting any sql statement inside any text box [B]Fortinbra[/B]... :) And for an intruder who wants to do such injections,first checks that what kind of DB is there … | |
Re: Asp.net makes our life much more easier and simpler Download ajax control toolkit 3.5 for your visual studio 2008 When you add it to your website or project successfully by adding a tab in your control box and adding the reference for ajax in your toolbox. 1) Do this just … | |
Re: You need to understand the selected index changed event of the grid view In your grid view's selected index changed event write like this [B] Dim attrib1, attrib2, attrib3 As String attrib1 = "" attrib2 = "" attrib3 = "" attrib1 = GridView1.SelectedRow.Cells(0).Text '0 for getting first attribute value,as its … | |
Re: Hi My brother you did a serious but silly mistake in the code,that is why is was not working as per your expectations. You have 3 body tags inside your page,where one is perfect,but two other body tags inside tables TD tag. That too without closing it. Change your entire … | |
Re: Check this out,it will work if i understood properly... [CODE] SELECT * FROM `$table_name` WHERE field_id like '%\n1%' OR field_id like '%1\n%' OR field_id like '1' [/CODE] Hope it works :) | |
Re: Hi try this one... :) [CODE] select * from table where myvalue >= ((select myvalue from table where name='A') - (select myvalue from table where name='A') * 5/100 ) and myvalue <= ((select myvalue from table where name='A') + (select myvalue from table where name='A') * 5/100 ) [/CODE] [B]It … | |
Re: Hi,the code you have posted is very messy You can pass values between two pages or within same page using javascript's redirecting technique with query strings. [B]location.href="yourpage.extension?query=queryValue1&query2=queryValue2";[/B] It will redirect to the page you want to call,just put it in your Login button or on a similar button like this … | |
Re: Hi, First thing is that i did not understand your problem,what you want and what is it currently showing. Second thing is that your code has spelling mistakes... [CODE]if(isset($_POST['prop_pricemin'])) echo $_POST['prop_pricmin'];?>" />[/CODE] replace it with [CODE]if(isset($_POST['prop_pricemin'])) echo $_POST['prop_pricemin'];?>" />[/CODE] [B]Mistake is echo $_POST['prop_pric[U]e[/U]min'];?>" [/B] [I]That underlined letter was missing...[/I] Waiting … | |
Re: Put a onClick in the delete button example [CODE] <input type="button" value="Delete" onclick="return confirm('Are you sure you want to delete?');)"> [/CODE] What it will do is ,it will show you confirm,so if you click yes,there confirm returns 'true'. So if true is returned write some php code there,else do some … | |
![]() | Re: I have not understood your problem exactly i guess,and your sample site doesn't allow me to login as per your user name and password,i don't know why so. What i am getting in your problem is like this, 1) You make a drop down dynamically through Ajax and psot2.php on … ![]() |
Re: Instead of using [B]document.formname.elementname.focus();[/B] use this instead [B]document.getElementById("elementname").focus();[/B] It will sure work in all the browsers. Just because the name attribute sometimes creates problems,or you may have forget to give id or name or both attribute to(any/all) the elements in your page. Try it once,hope it will hepl you. [B]Happy … | |
Re: hi, for the first case what you can do is,just replace the action="nextform.php" with action="#" ,so in case of any submit method it will redirect to the current page. So do not use submit to post the data,change the method="get" or leave it as it is ,but do not use … | |
Re: Try importing you name space ExpenseReport in index page too and then create any instance of Dbclass that you have done. In reall this should not be required,but it may help in your case. :) | |
Re: What i can suggest here is that it can be done through triggers. When a bid is made,it means that an update is made in certain table or an insert for the first bid, so on update/insert in that particular table fire one trigger. This trigger will check that is … | |
Re: [QUOTE=Shantanu88d;1491105]Hello everyone, I am developing a website application on vb.net. I was earlier using IE-6 and everything was fine, except some wrong display of gui elements. So, I installed IE-8. But now, when I run/debug my web appl, it starts VERY SLOWLY. It takes about 20 seconds+ to load the … | |
Re: Add some code in it like this... Just replace your ??? with numberOfRecords variable that contains that query result of (Select count(*) from tableName) [CODE] string qry,numberOfRecords; SqlCommand cmd = new SqlCommand(); qry="Select count(*) from tableName"; cmd.Connection =cn; cmd.CommandText =qry2; numberOfRecords=cmd.ExecuteScalar (); qry = "insert into General values(@Gno,@GRno,@Fname,@Mname,@Lname,@Sex,@Bdate,@Pass,@Mono,@OtherNo,@Photo,@Role,@GCID)"; cmd.Parameters.AddWithValue("@Gno",numberOfRecords ); … | |
Re: Hey,but why do you want to pass arrays by reference,as arrays are passed by reference by default. so make any changes that you want to make in the called function,you will get the changed array inside your calling function. | |
Re: The page at which google lands first is not the actual url of the image. I mean if u click on a image,say 1.jpg google lands u to a page like [url]http://www.google.co.in/imgres?imgurl=http://www.tizag.com/store/previews/php-cover-preview.jpg&imgrefurl=http://www.tizag.com/store/php-ebook.php&-------[/url] so what it does here is like this-- 1 >It opens a page of its own server say … | |
Re: [QUOTE=kalender;1497631]Hi, Need some help here again. If you guys take a look at: [url]http://83.233.5.191/crurre/index.php[/url] There is a field called "Personnummer". Fill this with: 440611-1890 Then press "Hämta personuppgifter" It will then fetch/recieve some personal data and fill the correct fields. But.. as you can see. The number disappear when the … | |
Re: in the Page load event of AcquifreeConditions.aspx.cs write [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class AcquifreeConditions : System.Web.UI.Page { Service ipmslookup = new Service(); protected void Page_Load(object sender, EventArgs e) { GridView1.DataSource = ipmslookup.Acquifree_ConditionsFreehold(304747); GridView1.DataBind(); } }using System; using System.Collections.Generic; using System.Linq; … | |
Re: In the below given example,you just need to specify 1> Your Table name from any specific MSSQL database 2> 'ColumnName' as a table field,that should be in datetime or date format in the table Example [CODE][B]select * from [yourTableName] where (CAST(ColumnName AS date) >= '2006-01-18') and (CAST(ColumnName AS date) <= … |
The End.