- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 15
- Posts with Upvotes
- 14
- Upvoting Members
- 13
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
135 Posted Topics
Re: Another new one to look at is sBlog. Fairly simple, but looks to have a lot of promise [sBlog.Net Project](http://sblogproject.net/) FYI ... WordPress is PHP, not Asp.Net. | |
Re: It needs to be a seperate list. You could also set a style: style="float:right;" | |
Re: Your code is going to fire as soon as the page is finished loading. Try this, it works differently on IE and Firefox though: $(window).bind('beforeunload', function() { alert("You are attempting to leave this page. Are you sure want to leave MSJ Bank Financial?"); }); | |
Re: $("#DatePick").datepicker({ minDate: <%= DateTime.Now.ToShortDateString() %> }); This will set min date to the current date. Only future dates are available to select. Set the 'minDate' argument to the date you need. | |
Re: Use jQuery $("ul.nav > li a[href*='pageName']").parent("ul.nav > li").addClass("active"); | |
Re: If your record count is fairly small you can use the .RecordCount attribute on the record set. Otherwise a seperate SQL statment returning an int of records counted. | |
Re: Add font-awesome or one of the other icon stacks. `<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> ` Example from Font-Awesome ( [Font-Awesome](http://fortawesome.github.io/Font-Awesome/examples/) ): <div class="list-group"> <a class="list-group-item" href="#"><i class="fa fa-home fa-fw"></i> Home</a> <a class="list-group-item" href="#"><i class="fa fa-book fa-fw"></i> Library</a> <a class="list-group-item" href="#"><i class="fa fa-pencil fa-fw"></i> Applications</a> <a class="list-group-item" href="#"><i class="fa fa-cog fa-fw"></i> Settings</a> </div> | |
Re: Check your CSS classes, to make sure they are not floating it over or repostioning it somehow. | |
Re: Are you looking for a certain format? This is what I do to keep the copyright set to the current year ... `<%= DateTime.Now.Year %>` If you need the whole date ... `<%= DateTime.Now.ToShortDateString %>` | |
Re: Your site host needs to be able to support IIS. Not all hosting sites do. If they don't your either going to have to find a new host, serve it yourself or use a different language. [Azure is easy to use and free for a simple site.](http://azure.microsoft.com/en-us/documentation/articles/fundamentals-introduction-to-azure/) | |
Re: Go into designer view, refresh and save the page, then go back into code view. Sometimes the IDE is slow in writing to the .designer file. | |
Re: Couple things that may make life easier ... * Use ValidationGroup names. Then you can validate groups or individual inputs * Don't use inline SQL. Write a view or procedure to do the work, then call the procedure. Big security no no. Inline SQL opens you up to SQL injection. … | |
Re: ... you can usually refresh by hitting F5. | |
Re: Yes, call a stored procedure in the database that will list out the columns you want. Bind the results to the DataGrid. | |
Re: Make sure the path to your external files are correct. You can go to 'View Source' in the browser and click on an external file location. If it doesn't work, then you'll need to find out why. Code example would help. | |
Re: Try removing the "http" on your links. I.E. href="\\somewebsite.com\css\site.css" This is a hack that works if one of the sites is using https or http. | |
![]() | Re: Looks like your trying to convert "monster.co.uk" to an int ![]() |
Re: About W3Schools ... I would not use. Just saying ... http://www.w3fools.com/ ![]() | |
Re: Try to think of an interface as a class of classes. Each seperate class could be of a different type. It allows you to create very complex models. | |
Re: diafol ... nicely done. I'd make a small change though (visual stuff): body{ font-size: 60px; } .ring{ color:white; text-align: center; background-color:#CC0000; padding: 5px; } ![]() | |
| |
Re: Doesn't look like your calling LoadGrid() till after a dropdown selection. On page load you can do this, but you'll need to have some default start values. Also, firstDate and secondDate values are not set till a dropdown selection. You might want to refactor and call LoadGrid() by passing the … | |
Re: Where is hrdoc1 called? Where is id set? | |
| |
Re: On the grids row databound event you can access and run your method that would fill the dropdown. You can even set selected item after its loaded, by using a hidden value in the gridview data. | |
Re: Accessibility ... Can it be read and navigated by anyone? User Experiance ... Can I find what I want fast. Can I view it on my ... (Phone, tablet, laptop, desktop). Is the content relevent to what the site is about? | |
Re: You need to check c1.SignUp, to see if the return value is true or false. | |
Re: Grab an id from a grid row and then use that to get the detail information. Works best if you can put the id into a link button CommandArgument. Example below: <asp:templatefield> <itemtemplate> <asp:LinkButton ID="imgbtnGetDetails" commandargument='<%# Eval("sID") %>' commandname="DetailRow" cssclass="imgIcon" runat="server" > Details </asp:LinkButton> </itemtemplate> </asp:templatefield> | |
Re: What is your procedure "GetMonthlyReport" bringing back? | |
Re: Can you post the full Inner Exception text? | |
Re: Should be : Response.Redirect("index.aspx"); Notice the Capital R on redirect | |
Re: Nothing wrong with classic ASP. I have many sites that I maintain that are still running ASP. And they work just as good as anything new. The only issue I have is the time needed for some of the reporting sites, but this only on the larger ones. | |
Re: You need to clear the 2nd dropdown before loading it. `DropDownList2.Items.Clear()` | |
Re: You might want to rethink your database design. A catagory list should be a table lookup, which in turn is referenced in a data table. You have a database diagram you could show? | |
Re: Because its an int, which defaults to 0. | |
Re: What are the extra/doubled parameter fields? | |
Re: Is there a click event on the button? | |
| |
Re: Change `<asp:Checkbox ID = "chklst" runat="server" />` to `<asp:CheckBoxList ID="chklst" runat="server" AutoPostBack = "true"></asp:CheckBoxList>` To add to it, do this in your .cs file `chklst.Items.Add('Happy Birthday');` `chklst.Items.Add('Happy Happy Birthday');` | |
Re: Try this: private void RadGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) { if (e.Item is GridDataItem) { GridDataItem dataItem = e.Item as GridDataItem; string contactName = dataItem["SomeField"].Text; LinkButton button = dataItem["ColumnName"].Controls[0] as LinkButton; button.Attributes["onclick"] = "return confirm('Are you Sure You Want to Delete User??')"; } } | |
Re: Create a User class, and add it to a Session. Session["User"] = Users.GetUser(1); Then you can grab the Session["User"] to fill any info you need. Users usr = (Users)Session["User"]; string pass = usr.Password; string usrName = usr.UserName; | |
Re: Example page? Rest of code? With the information given, its acting like the container its in has a set or max width. | |
Re: <!DOCTYPE html> <html> <head> <title>Floating problem</title> <style type="text/css"> .mainWrapper{ background-color:red; max-width:630px; min-height:400px; padding:0; } .one{ width:310px; height:120px; background-color:magenta; float:left; margin-bottom:10px; } .two{ width:310px; height:120px; background-color:magenta; float:left; } .three, .four{ width:310px; height:150px; background-color:yellow; float:left; } .three{ margin-right:10px; } /* .subThree1{ width:150px; height:150px; background-color:black; } */ .one{ margin-right:10px; } </style> </head> <body> … | |
Re: Have you tried the jQuery Toggle $('#< %= btnName.ClientID %>').click(function() { $('#DivId').slideToggle('slow'); }); | |
Re: Nothing wrong with using tables in a responsive site. Just make sure that word wrap is on. Some data by its nature is not able to be completly responsive though, and thats ok ... Another option would be to put it in a horizontal form with labels. These would stack … | |
Re: Use a Session[] ... Session["Name"] = null; Session["Name"] = txtBox.Text.Trim(); then in the page that your printing with, use it like so ... string sName = Session"Name"] != Null ? Session["Name"].ToString() : string.Empty; lblName.Text = sName; | |
Re: Yes, so long as the UserId and Email used are unique, otherwise you could login as someone else. | |
Re: Your styling the menu using the Left property, which is not working. also, the style.css is being called twice. Try this tutorial on making a horizontal css menu ... its a classic thats been around for a long time. [listutorial](http://css.maxdesign.com.au/listutorial/horizontal01.htm) and | |
Re: Start a new post |
The End.