- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
How come the last condition is executing, instead of the first ? Why isn't the while loop working ? document.prompt("hello there") if (i==2 || i==4 ) { document.write("smart"); while(i>6){ } if(i=8){ document.prompt("can you ask me again"); }}else (i>=9){ document.write("you are a lemon"); } //document.write(" I want to buy an apple … |
|
Re:
When I run the code below it fails. I've run the exact same code without the ID appended to the url and it worked just fine. Am I appending it incorrectly? // CALLS THE PHPSLQAJAX_GENXML2 PAGE AND RETURNS VALUES function downloadUrl(url, callback){ var request = window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : … |
|
Re:
I've got a list of hyperlinks that have a specific class assigned to them of "single-location". I need to add an EventListener to my Google Map that when a hyperlink is clicked, it will call the correct function. Can anyone help me? |
|
Re:
Hey, As you can see i have a function to retrieve the product description based on product code. For some reason this is refusing to return a value even though the value im entering into test is there in the table, i can see the value of the input enters … |
|
Re:
Hi! I am a .NET developer. I have two consecutive web parts. Each webpart is inside an update panel. So the scenario is like there are two update panels one after the other. The problem I am facing is when one is fired the other is also firing. The code … |
|
Re:
I need some help with parsing information from a query string to a database. There is a company that wants to send me information to a page on my server as a query string (http post) e.g. [url]www.mydomain.com/info.aspx?Name=Smith&LastName=Taylor[/url] They will send probably about 15 different strings of information a day. … |
|
Re:
Hi, I am trying to hide a table based on its id on clicking a button. function showTable() { var reasonTable = document.getElementById("reasonTable"); if(reasonTable.style.display == "none") { reasonTable.style.display = "block"; reasonTable.style.visibility = "visible"; } } <form id="MyForm" method="post" name="MyForm"> <TABLE id="reasonTable" style="visibility: hidden; display: none;" WIDTH="612" CELLPADDING="0" CELLSPACING="0" ALIGN="center"> <TR> … |
|
Re:
Hi there, I got this annoying problem... I have to create dynamically an image control that has got to be accesses later through javascript. In other words, I got an image that was created in the page code, and using javascript I got to be able to work with it … |
|
Re:
If I have tow textbox and 2 button first button ok and secon is clear or reset how i can clear the input and input another values?? |
|
Re:
I have a simple ASP.NET page where after the initial page load the user enters a username and a password to two text boxes. Note that I can not use the built-in login control in ASP.NET, as my purpose of using this username and password is slightly different. Now, I … |
|
Re:
I have a listbox in which there are 100 items. The items of the listbox is being populated from database. Now after selecting an item, if I click any button(sending request to server), then though the selected listbox items is kept selected, but if I had selected say 70th Item, … |
|
Re:
Hi Everyone ! I have 2 DropDownList controls inside an UpdatePanel. The first is a dropdown for [B]Country[/B] while the second is for [B]State[/B]. I have set the properties of Country as AutoPostBack="True", OnSelectedIndexChanged ="PopulateState". Selecting a different Country fires the [I][U]PopulateState[/U][/I] function causing the the State to populate itself … |
|
|
Re:
Hi Everyone, I've got an online form that is broken up into several different sections and some of these sections will ask questions where multiple values can be supplied. For instance someone's address or information about their education. Just for simplicity I'll focus on someone's address and I want to … |
Re:
I have a DropDownList that is populated from an ObjectDataSource [CODE] <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" DataSourceID="odsGetDeptByFaculty" DataTextField="Dept" DataValueField="FID" onselectedindexchanged="ddlDepartment_SelectedIndexChanged"> </asp:DropDownList> <asp:ObjectDataSource ID="odsGetDeptByFaculty" runat="server" SelectMethod="usp_GetDeptByFaculty" TypeName="DataLayer.StoredProcs"> <SelectParameters> <asp:ControlParameter ControlID="ddlFaulty" Name="fCode" PropertyName="SelectedValue" Type="String" /> </SelectParameters> </asp:ObjectDataSource> [/CODE] My problem is when I run the program and select the option from the dropdownlist … |
|
Re:
Hello I want to use a CustomValidator using ASP.NET/C# to make sure a textbox isnt empty (no spaces, no blanks, no nulls, etc) How do I do it? Thanks |
|
Re:
I want to learn ASP.net and VB.net . Can anybody reccommend a proper site or some resource so that i can start from scratch . Something like w3 schools . |
|
Re:
I want to populate a drop down list fetching data from database along with a "select" listitem at the top of the srop down list. I am using dropdownlistname.items.add("select","0") and dropdownlistname.items.insert("select","0") and then i am fetching data from database in a dataset and then binding the data into the drop … |
|
Re:
Hi, I wonder if anyone has tried to have multiple subroutines in ASP.NET and have one call the other. For example, if the first one is called message(), and second is login(), if login() tries to call message(), how do you do that? Or, is this not a common practice … |
|
Re:
can somebody tell me how does data reader work in following list and what will the result of............if(dr.Read()).. [CODE] public List<clsproductprp> RetFind_rec(clsproductprp prp1) { SqlDataReader dr=null; List<clsproductprp> obj = new List<clsproductprp>(); SqlCommand discmd = new SqlCommand(); try { if (con.State == ConnectionState.Closed) { con.Open(); } discmd.CommandText = "spFindFromProduct"; discmd.CommandType = … |
|
Re:
Hi I am worthless in CSS. My boss doesn't want me to use <br> or table. I have a datalist and a div which is relative, like he said I should have. Then I placed spans which are absolute and with top and left. It works fine when there is … |
|
Re:
Dear experts, I have a GridView with an invisible CancelEdit button. I want to use this button to get out of Edit mode. When I make this button visible for testing purposes and press it with the mouse, it works fine, getting me out of Edit mode. But I need … |
|
Re:
Hello, I am making a web page and I want to make it 100% fluid, which means that I want to resize the images when the browser window is resized. I just need to know how to get the Panel width in px with c#. I am using master page … |
|
Re:
hey.........i m new in asp.net ....and following is the class library.... ........can somebody tell me the working of the following code like why catch{} is used why finally is used and all this [CODE] public abstract class clscon { protected SqlConnection con = new SqlConnection(); public clscon() { con.ConnectionString = … |
|
Re:
whats the difference between [code] while(dr.Read()) { } [/code] and [code] if(dr.Read()) { } [/code] |
|
Re:
I am using Visual Basic 2008. I am trying to create a web page. I can't seem to get the labels, controls, etc. to let me place them where I want them on the page. I found several articles that suggest to make sure document shows in property window then … |
|
Re:
Hello, I added a button from code and with it i added onclick event. here is the code [CODE] Button button = new Button(); button.ID = link; button.Text = "1"; button.Click += new System.EventHandler(this.button_Click); private void button_Click(object sender, EventArgs e) { System.Web.UI.WebControls.Image im = new System.Web.UI.WebControls.Image(); im.ImageUrl = ((Button)sender).ID; //ID … |
|
Re:
Need to delete the selected item from the dropdown from the database with the button click.Also when user clicks the delete button i need to show the alert or confirm dialog box for confirmatiuon that user realy want to delete that item....plz help me ... |
|
Re:
Hi, i am using a flag in the database to detect if the user is logged in or not. But this flag is updated only if the user logs in or logs out.If the user closes the browser or somehow gets out of the site without logging out he has … |
|
Re:
I want to generate non-repeated random number. I tried the following code but it generates repeated random number. [code] protected void Button1_Click(object sender, EventArgs e) { Random rnd = new Random(); int n = rnd.Next(1, 100); Label1.Text = n.ToString (); } [/code] |