135 Posted Topics
Re: Simply, it ties two table togeather. For example, You have two table ... one called blog, with a column called catId, and another called catagory. Add a business rule that states a blog entry **must** contain a category. If you have a relationship between blog and category, where the reference … | |
Re: Are you using ajax? If so, be sure to register the controls so the DOM can be updated properly. | |
Re: No, it does not connect with database ... just a random response is needed. | |
Re: After selecting from the dropdown, are you rebinding the grid? Should happen on the selectedIndexChange event. | |
Re: Nothing ... both do the same thing. "Classic" ASP is the first rendition of Microsoft’s version of Active Server Pages. ASP.Net is a total overhaul of the original concept allowing a larger separation of content and data. To the end-user, it’s all the same. To the programmer it’s the difference … | |
Re: Ummm ... isn't this is a SQL question? You might have better results that way. As for the dropdown stuff, just grab the DropDownList.SelectedValue for each value, add it to a sql attribute then send it to a stored procedure, something like this: private void UpdateStudent() { string ddl1 = … | |
Re: Couple things I see ... * More contrast between background colors and foreground (text) colors. * You might consider using a frame work ... my suggestion is the Twitter booststrap one: http://twitter.github.io/bootstrap/index.html * Make sure you optimize your pictures ... be sure to re-scale them to the size your using. … | |
Re: The foreach will move throught the list of items i in ddlX.Items, and stop when the last one is read. So that should be fine. Question though ... What is a.XDescription? Is it a string object? If not it'll need to be converted or cast to a string to get … | |
Re: Make sure that you call the popup again, in the button click event handler. | |
Re: Try FormCollection in your controller and see if anything is coming through that way. | |
Re: Some of his information is outdated, but it still works ... http://www.ironspider.ca/graphics/alignment.htm | |
Re: You might want to rethink the Database layout that your thinking of using ... the masterpage switching is the easy part ... good luck. | |
Re: Easy ... add a text box and button. On button click, take the text box entries and put them in a vairable. Use that variable in a parameter to call a stored procedure. Depending on what your searching for, you might want to restrict what the user is using for … | |
Re: Try a jQuery auto-complete dropdown ... easy to setup and works pretty good. Here's an example, but there are many others: [http://blogs.msdn.com/b/josephkiran](http://blogs.msdn.com/b/josephkiran/archive/2011/02/25/jquery-asp-net-server-control-dropdown-autocomplete-sample.aspx) | |
Re: If you mean to save them in a database? If so, you'll need to encode them going in and then decode them when populatinging the textbox. string toDatabase = Server.HtmlEncode(text); string fromDatabase = Server.HtmlDecode(htmlEncoded); | |
Re: Make sure your calling you JavaScript after referencing your jQuery. If you simply cut and pasted the code then any JavaScript calls from the top section should be moved to the bottom of the page, under the jQuery reference calls. | |
| |
![]() | Re: On the databind event, have you tried checking for and converting any null values to an empty string? |
Re: Create an instance of the Master page, find the control on master page and do what you need to do ... don't make it overy complicated. In the example below I have a label on the master page called "lblMasterPageLabel". In the content page that is referencing the master page … | |
Re: File extension is .png]? Check your code for a missing quote or miss-named image. | |
Re: Are you rebinding after the click event? | |
Re: Line 31 should be at line 74 You closed the repeater, before adding the content. | |
Re: Request.QueryString["Name"] will get you the query parameter named "Name". If you need the name of the page: string refPage = Request.UrlReferrer.ToString(); | |
Re: This should get you started: http://msdn.microsoft.com/en-us/centrum-asp-net.aspx | |
Re: KodeBarang is a label so you'll need to make an instance of it first by locating it in the reapeater. Are you trying to find its value? | |
Re: If your method is set to public it can write directly when called: `public string MakeText() { string results; // Add code here return results; } This goes in aspx page, and will output what ever MakeText returns on page load. <%= MakeText(); %>` | |
Re: Your code is showing a GridView, but its named a ListBox? Anyway, if you're using data keys this will get row and a key(s) which can be used to remove the particular selection. This is not like above, where its only removed from the grid, to be shown again on … | |
Re: jQuery can do that for you too ... $(document).ready(function() { $('#txtBoxId').focus(); }); | |
Re: You need a return value between the two curley brackets on line 18, like mentioned above. | |
Re: It would be easier to do it in jQuery. $(function () { $('#business').toggle( function() { $('#businesslist .subb').prop('checked', true); }, function() { $('#businesslist .sub').prop('checked', false); } ); }); | |
Re: Just add a value to the "Text" attribute. If you need a dynamic entry you can set it from a public method. <asp:TextBox ID="txtBox" Text="Default Value" runat="server" ></asp:TextBox> | |
Re: In C#, this will loop throuh all controls and get their values ... you need to do something with it them though. private void GetControlValues(Control parent) { foreach (Control c in parent.Controls) { if (c is DropDownList) { string ddlValue = ((DropDownList)(c)).SelectedValue; } if (c is TextBox) { string txtbox … | |
Re: To split the string at the dash, with string **str** being the returned result ... string s = str.Substring(str.IndexOf("-")+1, str.Length - (str.IndexOf("-")+1)); | |
Re: Are you talking initial page load or after a post back? You can seperate post back and intial load by: if(!IsPostBack) { First page load; } if(IsPostBack) { Any page postback, but not the intial one; } | |
The End.