- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: Presumably because its an invalid URL you're using? Error 400: Requested URL invalid or incomplete I have tried to use the website using the recommended example and it does not work - suspect the site has changed its policy for access | |
Re: Seems to be missing the following: Main.master.cs controls/SideMenu.ascx Other that that it seems to be working (When you get build errors on compilation just click the 'Yes' button 'to continue and run the last successful build') | |
Re: How do you intend to set/display this time for people accessing your site from different countries? | |
Re: Any particular reason you want to set the timeout to an arbitary value of 200 or do you just want the session variables to remain indefinately? If its indefinately then check that the user has been authenticated and populate the session variables accordingly | |
Re: Nitin Daphale: Not actually sure what you're trying to do - presumably the row deleting event is being fired because you are trying to delete the row? So why do you need to remove the row programatically as the inbuilt delete function will take care of this - do you … | |
Re: Have you tried the following?... [CODE] SELECT T2.ID, T1.Date FROM T2 LEFT JOIN T1 ON T2.ID = T1.ID [/CODE] You will get everyting in table 2 (which has an ID but no date) and only the date from table 1 (which has an ID and a date) The you can … | |
Re: Louis, Your problem will be whether you intend on having a 'real-time' look and feel to your application or whether you want to check the actual time spent on the question AFTER the user submits the request to the server. What adatapost has suggested will offer you server-side processing which … | |
Re: If you are loading the pictures and labels proramtically them you must have an idea of which objects are being updated. Do you know which obkjects you want to clear? | |
Re: The code... [CODE] string image = "Images"; +"//" + fileName; [/CODE] Should be.. [CODE] string image = "Images" +"//" + fileName; [/CODE] You have added an unnecessary semi-colon which will effectively terminate that statement so the filename never gets added. Surprised your IDE did not flag up a warning on … | |
Re: It depends on what format you are receiving the data from the WebService but the syntax is as follows: [CODE] Dim reader As New System.IO.StringReader(<Webservice>) DataSet dataset = new DataSet(); dataset.ReadXml(reader); myDropDownList.DataSource = dataset.Tables[0]; myDropDownList.DataValueField = "value_field" myDropDownList.DataTextField = "text_field" myDropDownList.DataBind(); [/CODE] The reader object is used to access the … | |
Re: There is some debate whether its a good idea to store images in a database or on a file server. If you insist on using a database then you'll need to set up a webhandler file which streams the image to your webpage. Create a new item in your project … | |
Re: As we don't have access to yer data - what exactly is going wrong? BTW would'nt it it easier to bind the DropDownLists to the ticketPrice - then you don't have to do your "If DropDownList2.SelectedValue = ..." [CODE] DropDownList.DataTextField="Ticket_Type" DropDownList.DataValueField="Ticket_Price" [/CODE] | |
Re: Any particular reason you're using an HTML table? Why don't you use a gridview to display the results from a datasource? | |
Re: Hmmm, I assuming that the 'other machine' is your web server and you've loaded the images to the relevant directory on that server but you are now working on a local machine and cannot find the images. Or have I got it completely wrong? | |
| Re: How would you know which record to keep if the phone numbers are the same but the record information is different? Do you have a timestamp on each record so you know whioh is the latest record? |
Re: Do you know how to use a validator control or do you want to do the validation in code-behind? [CODE] <asp:RegularExpressionValidator id="RegularExpressionValidator4" runat="server" ControlToValidate="txtPhoneNumber" ErrorMessage="Please enter a default 10 digit contact number (eg:111-111-1111)" ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}">*</asp:RegularExpressionValidator> [/CODE] | |
Re: Is there any reason why you aren't checking the username directly in your SQL query instead of iterating through the user table? [CODE] // don't ever do this! String sql = "SELECT * FROM UserNew WHERE u_name = '" + uname + "'"; [/CODE] Ideally you should be doing this … | |
Re: I've used DotNetNuke and its a very good system but to get the fun stuff you need to buy the commercial add-ons which is not always a good idea as DNN do very regular upgrades and the third-party stuff always lags several version behind. You can easily run multiple sites … | |
Re: What language are you using for your code behind? | |
Re: The only issue you will have is ensuring you can update the tables in your database using the logged-in user's identity (which is GUID based) Otherwise the memebrship/roles will do nearly everything you need. Be advised that the Membership data resides in your App_Data folder unless you specifically point to … | |
Re: Further to the above post you will need to add the following in your webconfig: [CODE] <connectionStrings> add name="LocalSqlServer1" connectionString="Data Source=myServerAddress1;Initial Catalog=myDataBase1;User Id=myUsername1;Password=myPassword1;"/> <add name="LocalSqlServer2" connectionString="Data Source=myServerAddress2;Initial Catalog=myDataBase2;User Id=myUsername2;Password=myPassword2;"/> </connectionStrings> [/CODE] And in your code-behind... [CODE] using System.Configuration; . . . string sqlServer; if(LoginOption ==1){ sqlServer = ConfigurationManager.ConnectionStrings["LocalSqlServer1"].ConnectionString;} elseif(LoginOption ==2) … | |
Re: Also you may have the AutoPostBack set to 'true' in the HTML of your textbox in which case it will do a postback on the enter key. Delete this option, create a seperate button and do the postback on that [CODE] In your HTML... <asp:Label ID="Label1" runat="server" Text="Enter Value"></asp:Label> <asp:TextBox … | |
Re: Not understanding your requirement. You stated "If the value retrieved is 100, textbox should except 200, 300, 400..." So where does the multiple of 2 mentioned in your previous statement come into play? What should the textbox except for the following retrieved values: 1) 200 2) 300 3) 400 | |
Re: Hmmmm, Assuming you have saved your images in the Images directory and you are storing the path in your SQL database as... ~/Images/Properties/Image1.gif Then you should have no problem in using: Image.ImageUrl=dr[6]; Please check the path that's being returned in dr[6]! | |
Re: Your s.suppcode does not join with either a.suppcode or i.suppcode as it does in your previous query | |
| Re: If you dragged the table onto your form then a datasource will have been added automatically with the relevant INSERT, UPDATE and DELETE routines already created [URL="http://www.asp.net/data-access/tutorials/querying-data-with-the-sqldatasource-control-vb"]http://www.asp.net/data-access/tutorials/querying-data-with-the-sqldatasource-control-vb[/URL] |
Re: Hmmm, Not a good idea to get the Max(IDColumnName) as previously suggested it will only get the last inserted record (not the record you have added) - and in a high transactional database you will get totally incorrect results. Much better to return the ID added within the scope of … |