|
How do you need help? It's up to you how the table ends up looking. Refer back to the link I posted with the example, http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_td_colspan[^]. You could remove the colspan="2" on the last row but it just looks weird, to me at least. You are in control of how you want the 2 rows to look.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Well, If you look at the code I posted in the thread. there are couple of this that is bothering me. Vehicle Identification label and its Textbox are somehow not in place and Credit disallowed radio buttons scrap and return collect are just going out td. Rest all are in proper alignment. So I need help in arranging those properly. I tried multiple ways but nothing has worked for me and so I need expert help.
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
I would suggest removing the width on the tds and let them autosize, for starters at least, until you can get it lined up properly.
It's really hard to read in that format but you don't need expert help. This should be relatively simple since you just have 2 rows.
Think of an excel spreadsheet. if things are lining up just count how many tds there are and make them match however you want.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
It is not just two rows. I think you did not see my code in the thread. Look at the last message of this Thread.
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
Regardless of how many rows, all you're doing is stacking blocks. You decide how you want it to look. Each cell (td) is a block and it can be wider than the one above or below it, it's up to you.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Here is my code, Can you make it look with proper alignments.
<table width="100%" cellspacing="3" cellpadding="3">
<tr class="RowOdd">
<td width="7.5%" class="Labels">Year</td>
<td width="16.5%" ><asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="true" Width="100%">
<asp:ListItem>2014</asp:ListItem>
</asp:DropDownList></td>
<td width="1%"><asp:RequiredFieldValidator ID="Ref16" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="ddlYear" ValidationGroup="Required" /></td>
<td width="7.5%" class="Labels">Make</td>
<td width="16.5%"><asp:DropDownList ID="ddlMake" runat="server" AutoPostBack="true" Width="100%">
<asp:ListItem>Nissan</asp:ListItem>
</asp:DropDownList>
</td>
<td width="1%" ><asp:RequiredFieldValidator ID="Ref17" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="ddlMake" ValidationGroup="Required" /></td>
<td width="7.5%" class="Labels">Model</td>
<td width="16.5%"><asp:DropDownList ID="ddlModel" runat="server" AutoPostBack="true" Width="100%">
<asp:ListItem>Altima</asp:ListItem>
</asp:DropDownList></td>
<td width="1%" > <asp:RequiredFieldValidator ID="Ref18" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="ddlModel" ValidationGroup="Required"/></td>
<td width="7.5%" class="Labels">Vehicle Identification</td>
<td width="16.5%"><asp:TextBox ID="txtVIN" runat="server" Width="100%" /></td>
<td width="1%"> <asp:RequiredFieldValidator ID="Ref19" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="txtVIN" ValidationGroup="Required"/>
</td>
</tr>
<tr class="RowEven">
<td width="7.5%" class="Labels">Installed Mileage<%--VIN--%></td>
<td width="12%"><asp:TextBox ID="txtInMile" runat="server" Width="100%" /><%--<asp:TextBox ID="txtVIN" runat="server" Width="100%" />--%></td>
<td width="1%"><asp:RequiredFieldValidator ID="Ref20" runat="server" ControlToValidate="txtInMile" ValidationGroup="Required" ErrorMessage="*" ForeColor="Red"/></td>
<td width="7.5%" class="Labels">Removal Mileage</td>
<td width="12%"><asp:TextBox ID="txtReMiles" runat="server" Width="100%" /></td>
<td width="1%"><asp:RequiredFieldValidator ID="Ref21" runat="server" ControlToValidate="txtReMiles" ValidationGroup="Required" ErrorMessage="*" ForeColor="Red"/></td>
<td width="7.5%" class="Labels">Total Miles</td>
<td width="12%"><asp:TextBox ID="txtTMiles" runat="server" Width="100%" /></td>
<td width="1%"><asp:RequiredFieldValidator ID="Ref22" runat="server" ControlToValidate="txtTMiles" ValidationGroup="Required" ErrorMessage="*" ForeColor="Red"/></td>
<td width="15.5%" class="Labels">Credit disallowed</td>
<td width="10.5%" colspan="2"><asp:RadioButton ID="Rbn3" runat="server" Text="Scrap" Font-Size="Small" ForeColor="Black" AutoPostBack="true" GroupName="TypeGrp2" /><%--</td>--%>
<%-- <td width="1%"></td>--%>
<%--<td width="11.5" colspan="1">--%><asp:RadioButton ID="Rbn4" runat="server" Text="Return Collect" Font-Size="Small" ForeColor="Black" AutoPostBack="true" GroupName="TypeGrp2" /></td>
<td width="1%"></td>
</tr>
<tr class="RowOdd">
<td width="7.5%" class="Labels">
Installed Date
</td>
<td width="16.5%">
<asp:TextBox ID="txtInDate" runat="server" Width="100%" />
<asp:ImageButton runat="Server" ID="Image1" ImageUrl="~/Images/Calendar_scheduleHS.png"
AlternateText="Click to show calendar" /><br />
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtInDate"
Format="yyyy-MM-dd" PopupButtonID="Image1">
</cc1:CalendarExtender>
</td>
<td width="1%">
<asp:RequiredFieldValidator ID="Ref24" runat="server" ControlToValidate="txtInDate" ValidationGroup="Required"
ErrorMessage="*" ForeColor="Red" />
</td>
<td width="7.5%" class="Labels">
Purchase Date
</td>
<td width="16.5%">
<asp:TextBox ID="txtPuDate" runat="server" Width="100%" />
<asp:ImageButton runat="Server" ID="Image2" ImageUrl="~/Images/Calendar_scheduleHS.png"
AlternateText="Click to show calendar" /><br />
<cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtPuDate"
Format="yyyy-MM-dd" PopupButtonID="Image2">
</cc1:CalendarExtender>
</td>
<td width="1%">
<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtPuDate" ValidationGroup="Required"
ErrorMessage="*" ForeColor="Red" />
</td>
<td width="7.5%" class="Labels">
Tire Type
</td>
<td width="16.5%">
<asp:RadioButton ID="Rbn1" runat="server" Text="OE Tire" Font-Size="Small" ForeColor="Black" AutoPostBack="true" GroupName="TypeGrp" />
</td>
<td width="1%"/>
<td width="16.5%">
<asp:RadioButton ID="Rbn2" runat="server" Text="Replacement Tire" Font-Size="Small" ForeColor="Black" AutoPostBack="true" GroupName="TypeGrp" />
</td>
</tr>
</table>
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
Can i develop mvc5 application without entity framework?
|
|
|
|
|
|
Yes you can develop. But when you google, you will not find many MVC examples without Entity framework.
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
|
Short Answer - Yes.
Long answer - MVC 5 is a framework for developing Web applications. Entity Framework is an Object relational Mapper which will ease up your data access layer creation. So if your application does not need a database or an ORM you should be able to use MVC5 without Entity Framework. You are also free to chose any database and/or ORM of your choice. The default template of MVC5 application comes with Entity Framework but that can easily be removed or perhaps an Empty MVC5 website can be created to avoid these EF references and code.
|
|
|
|
|
HI,
I am working on an asp.net web application. I am facing a strange problem while I launch the application. On running the application, while the default.aspx page is launching the address bar of the browser shows URL as : http://localhost:52839/default.aspx , but when the page gets loaded the URL changes to : http://localhost:52839/(S(hp5dkt55qmvwtre0jynebb55))/default.aspx . If you notice "(S(hp5dkt55qmvwtre0jynebb55))" gets added in the previous URL. That means a redirection is taking place when I launch the application. Can you please tell what and why this must be happening. I haven't done any redirection in the page load or any where else in the code behind.
|
|
|
|
|
That looks like a cookieless session[^] URL.
If you're not using .NET 4.5, and you haven't installed the relevant patch[^], it's possible that ASP.NET doesn't recognise IE10/11 as an up-level browser, and is forcing cookieless sessions. Try installing the latest .NET framework patches, or upgrading to .NET 4.5. Alternatively, update your web.config file to force the application to use cookies for all browsers.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
+5
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hello, i working with .net.socket and i have a server in vb.net, and client in aspx.vb, i can send all data server to client, and i add a break point and i can check the msg , but i try to show in listview or textbox, or something but i cant show nothing, please i need help,
the server can connect with client and can send msg
the client can receive the msg
but i cant show the msg in listbox or text box
and other question is too about Invoke in winform aplication i can work with invoke for Callback Object, but i dont know as i can do in aspx here a example
If Me.InvokeRequired() Then
Me.Invoke(client.ClientCallbackObject, bytes, dataChannel)
Else
Dim dontReport As Boolean = False
If dataChannel < 251 Then
If bytes.Length < 65535 then
Me.ListBox1.Items.Add(TcpComm.Utilities.BytesToString(bytes))
Else
Me.ListBox1.Items.Add("Received LAT packet containing " & bytes.Length.ToString & " bytes.")
Dim viewer As frmLatViewer = New frmLatViewer
viewer.PassBytes(bytes)
viewer.Show()
End If
|
|
|
|
|
How can I convert .net CLR into Silverlight CLR type
|
|
|
|
|
By modifying the code to meet the requirements of a Silverlight module. But without any more detailed information it is anyone's guess what else is needed.
|
|
|
|
|
hi hi every body ..i cant' understand logic of code...plz help me .Thank you!
class Product
namespace EssentialTools.Models {
public class Product {
public int ProductID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public decimal Price { get; set; }
public string Category { set; get; }
}
}
using System.Collections.Generic;
using System.Linq;
namespace EssentialTools.Models {
public class LinqValueCalculator {
public decimal ValueProducts(IEnumerable<Product> products) {
return products.Sum(p => p.Price);
}
}
using System.Collections.Generic;
namespace EssentialTools.Models {
public class ShoppingCart {
private LinqValueCalculator calc;
public ShoppingCart(LinqValueCalculator calcParam) {
calc = calcParam;
}
public IEnumerable<Product> Products { get; set; }
public decimal CalculateProductTotal() {
return calc.ValueProducts(Products);
}
}
}
}
modified 4-Jan-15 3:31am.
|
|
|
|
|
Please do not post the same question in two different forums.
«A man will be imprisoned in a room with a door that's unlocked and opens inwards ... as long as it does not occur to him to pull rather than push» Wittgenstein
|
|
|
|
|
i am sorry.Thank you bro!
|
|
|
|
|
Hello Experts,
Happy New Year!
I have a dynamic Grid view which generates rows dynamically. I also have a dropdown in Gridview. On ddlselectedvalue="File" create a new column for existing gridview where user should upload a file and that file should be saved in ASP.NET application "Files" folder.
Can anyone please help me with this. Working on this since two days.
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
<asp:GridView ID="gdvItems" runat="server" Visible="true" ShowFooter="true" AutoGenerateColumns="false">
<Columns >
<asp:BoundField DataField="ItemNo" HeaderText="ItemNo" />
<asp:TemplateField HeaderText="TireSize">
<ItemTemplate>
<asp:TextBox ID="txtTireSize" runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DOT">
<ItemTemplate>
<asp:TextBox ID="txtDOT" runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="RemovalArea">
<ItemTemplate>
<%--<asp:TextBox ID="txtReAre" runat="server"></asp:TextBox>--%>
<asp:DropDownList ID="ddlRemovalArea" runat="server" OnSelectedIndexChanged="ddlRemovalArea_SelectedIndevChanged" AutoPostBack="true">
<asp:ListItem>-Select-</asp:ListItem>
<asp:ListItem>Bead</asp:ListItem>
<asp:ListItem>Tread</asp:ListItem>
<asp:ListItem>Sidewalk</asp:ListItem>
<asp:ListItem>Other</asp:ListItem>
<asp:ListItem>Tread life</asp:ListItem>
<asp:ListItem>Interior</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="TirePosition">
<ItemTemplate>
<%-- <asp:TextBox ID="txtTireposition" runat="server"></asp:TextBox>--%>
<asp:DropDownList ID="ddlTirePosition" runat="server">
<asp:ListItem>-Select-</asp:ListItem>
<asp:ListItem>Left Front</asp:ListItem>
<asp:ListItem>Right Front</asp:ListItem>
<asp:ListItem>Left Rear</asp:ListItem>
<asp:ListItem>Right Rear</asp:ListItem>
<asp:ListItem>Other</asp:ListItem>
<asp:ListItem>Trailer</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText ="32nds">
<ItemTemplate>
<asp:TextBox ID="txtDepth" runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText ="Product Code">
<ItemTemplate>
<asp:TextBox ID="txtProductCode" runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Reason for Removal">
<ItemTemplate>
<asp:TextBox ID="txtRR" runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="ApprovalNumber">
<ItemTemplate>
<asp:TextBox ID="txtApprovalNumber" runat="server"></asp:TextBox>
</ItemTemplate>
<FooterStyle HorizontalAlign="Right" />
<FooterTemplate>
<asp:FileUpload ID="FileUpload" runat="server" />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField>
<FooterTemplate>
<asp:Button ID="ButtonAdd" runat="server" Text="Add New Row" onclick="BtnNewRow_Click" />
</FooterTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Here is my ASPX code , to make you understand what I need.
On ddlRemovalArea="Tread life" then upload file is Required. else not required. And if uploaded file it should give a image in the last column like Attachment.
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
|
i want add next page to current page at the bottom while scrolling
|
|
|
|
|
i used telerik component
this is my code:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<ClientEvents OnRequestStart="onRequestStart" />
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="FormLoading" />
<telerik:AjaxUpdatedControl ControlID="Lbl_Msg" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="tree_Image" EventName="SelectedNodeChanged">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="FormLoading" />
<telerik:AjaxUpdatedControl ControlID="Lbl_Msg" />
<telerik:AjaxUpdatedControl ControlID="tree_Permit" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
html:
<telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" >
<MasterTableView>
<Columns>
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="SaveImage" HeaderText="saveImage"
ImageUrl="~/images/saveImage.png" HeaderTooltip="saveImage" UniqueName = "SaveImage" >
</telerik:GridButtonColumn>
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="ViewImage" HeaderText="viewImage"
ImageUrl="~/images/openImage.png" HeaderTooltip="viewImage">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn HeaderText="(Byte)imageSize" DataField="Size" UniqueName="Size">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="imageName" DataField="Files" UniqueName="Files">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="location" DataField="parentFolder" UniqueName="parentFolder"
Display="false">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnablePostBackOnRowClick="false">
<ClientEvents OnCommand="OnCommand" />
</ClientSettings>
</telerik:RadGrid>
\\\\\
Protected Sub RadGrid1_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
Try
If e.CommandName = "SaveImage" Then
Dim FileName As String = RadGrid1.Items(e.Item.ItemIndex).Item("Files").Text
Dim parentFolder As String = RadGrid1.Items(e.Item.ItemIndex).Item("parentFolder").Text
Dim size As String = RadGrid1.Items(e.Item.ItemIndex).Item("Size").Text
Response.AddHeader("Content-Disposition", "attachment;filename=" & FileName)
Response.AddHeader("Content-Lenght", size)
Response.ContentType = "application/octet-stream"
Dim Url As String = parentFolder & "\" & FileName
ScriptManager.GetCurrent(Me).RegisterPostBackControl(RadGrid1.Items(e.Item.ItemIndex).Item("SaveImage"))
Response.WriteFile(Url)
Response.End()
Else
BindGrid(tree_Image.SelectedValue())
End If
Catch ex As Exception
'ShowException(ex.Message, MultiView1.ActiveViewIndex)
Lbl_Msg.Text = ex.Message
End Try
End Sub
but when i click "saveImage" button in grid i get this error : Control with ID '' being registered through RegisterAsyncPostBackControl or RegisterPostBackControl must implement either INamingContainer, IPostBackDataHandler, or IPostBackEventHandler
|
|
|
|