Mobiles :: Best Practices For Look And Feel Using Html Tables
Nov 17, 2010
In order to keep the look and feel of my web forms optimized for a mobile device, what table/table row/table column border-style and position settings should be used (i.e. fixed, relative, static, etc)?
View 1 Replies
Similar Messages:
Nov 3, 2010
Environment: C#, ASP.NET 4.0, SQL Server 2008.
Here's the scenario: Buyers and Sellers (where all of the sellers have a unique D&B number).
I'm catering to the buyers, and I want them to be able to import a list of sellers based on the D&B number.
Here are the tables:
BuyersSellers - unique list of sellers - one record, no matter how many buyers work with them.BuyerSellers - lookup table - buyer_id, seller_id sets which buyers work with which sellers
ImportedSellers - temp table that holds sellers the buyer wants to add.AllSellers - master table that has all known sellers with D&B numbers (remote database).
Here's the process:
Buyer uploads list of new sellers, they get added to ImportSellers tableMatch ImportedSellers against AllSellers (valid), ignore unmatched (invalid).Add valid ImportedSellers to the Sellers table if they don't exist.Create BuyerSeller records for all valid ImportedSellers - using data from AllSellers.Delete all valid ImportedSellers, leave the unmatched behind so they know what they need to fix.
I've got the upload and import working, but now I'm a little stuck on how to do all of the matching and inserting, and do it as quickly as possible.
View 1 Replies
Jan 29, 2010
I'm very new to MVC (just started 2 days ago), and I would like to know what the best practice is for outputing HTML.
I have a model named Tools.cs which contains the code below. It uses a stored procedure to return a recordset of menu items, and another to return a second level of menus for each first level menu. In another function, I then loop through the recordset and generate the HTML code to display the menu in a string, which is then returned.
I then have a controller MenuController.cs which calls the GetMenu method and puts the returned HTML string in the ViewData["RightMenu"].
I then have a view which displays the result.
My question is: would it be better practice to return my datareader to the controller into ViewData["RightMenu"], and then loop through it and construct my HTML in the View instead?How would I get that to work with that second level of menus?[Code]....
View 2 Replies
Apr 27, 2010
is it possible to get the Html response (of an asp page) sent to the browser?
View 2 Replies
Dec 7, 2010
So I created a site optimized to be rendered in a mobile device. I set the Width Site is looking good on Blackberry of my <DIV> tags to be about 300px, for the most part, to account for the reduced screen size. However, the IPhone Safari browser renders this to the screen extremely small, and I can only assume that it's automatically reducing the size of the html accordingly to fit the device. Again, Blackberry does not do this.
View 5 Replies
Mar 16, 2010
I am trying to display a local .html file in a web page. The file uses javascript to display some information about my phone. In the executable, I am retrieving two values out of the registry. I would like to pass these values in a query string (I think that is the correct terminology). Something like file://\Program Files\TestTest.html?type=newtype. I have attempted this with using webbrowser.navigate, but that is giving an unhandled exception when it tries to pass the URI string. Obviously, I have no experience with this and am using the wrong method. There has to be a simple way to open a new webpage in a form and pass it this type of string.
how to implement such a function? I have been attempting to implement this with Visual C# using the .net CF for Windows Mobile.
View 2 Replies
Feb 18, 2010
project's 'look and feel' get disturbted if i run it on other then IE6 (in IE6 its ok) ; even in IE7 and IE8 pages are disturbted.mainly i use <table></table> tag.no extra feature is used (i don't know the how to design a page)
View 2 Replies
Feb 21, 2011
I have listviews that I would like to modify the look and feel of the default datapager. How do I do that?
View 2 Replies
Jan 19, 2010
What is the easiest why to display two buttons, one underneath the other, without using a table?
View 3 Replies
Mar 17, 2010
I'm doing the first bit of web-page development I've done in years, in VS2008, using VB.net. I have a fairly simple layout, which is using several nested tables. IE6 displays the layout just fine, but Firefox for some reason shows the whole thing in a small panel at the top of the page, with a scrollbar.
View 1 Replies
Dec 22, 2010
How to create Rich user friendly and look and feel application in ASP.NET. I am going to create the web application but after the development our aim is zero support that's why we desired to develop the application as user friendly and look and feel. what are all the new features in asp.net to develop the application as user friendly and look and feel.
View 6 Replies
Jan 13, 2011
I have a .net code that generate a nested grid kind of output. I have written the logic to to generate the nested grid in prerender. The use html tables to generate the same. I need to align all the columns in the grid.
How can I align the columns of nested tables for the following HTML code. I want all the columns from all nested tables to be aligned. I will use that logic then in my prerender.
[Code]....
View 2 Replies
Aug 19, 2010
I have a problem with Updating Form Element Look and Feel under Update Panel Control. I Used Uniform JQuery Plugin to shape form controls such as DropDown. it works very well in a ASP.net form but i used an update panel to generate CheckboxList Items when user selects a dropDownList Item. The picture Below Shows form Look and Feel: but when I Select a Category from list to update the UpdatePanel Template and updating CheckBoxes the uniform style removes from controls located inside update panel: I call uniform function above the form:
<script type="text/javascript">
$(function() {
$("input, textarea, select, button").uniform();
});
</script>
and Update Panel Markup:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<p>
انتخاب دسته: <myCtrl:CategoryDDL AutoPostback="True" EmptyItemText="همهی دستهها"
ID="CategoryDDL" OnSelectedIndexChanged="CategoryDDL_SelectedIndexChanged" runat="server"
SelectedCategoryId="0" />
</p>
<p>
برند محصولات<br />
<asp:CheckBoxList ID="CheckBoxListBrands" runat="server">
</asp:CheckBoxList>
</p>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="CategoryDDL" />
</Triggers>
</asp:UpdatePanel>
is there any possible way to keeping update panel control style from removing?
View 1 Replies
Mar 11, 2011
How can I add a StyleSheet reference in a Web Content form to change the look and feel of an accordion
View 3 Replies
Mar 18, 2011
i am really confuse about the html dropdown helper. i cant reli find one info which describe clearly about every overload and how to use them.currently i gone through a problem which i spent one day and still cant resolve it, really hope can get the help here since i need to make tis work for my final year project..i have a food table, and a foodtype table. each food will have a type, so the FoodTypeID is the FK for Food table.i want to have a create and edit page for Food. on the page, i want to provide a dropdownlist for user to select the food typethe FoodTypeName column that store the food type description is at the FoodType table, so i need to get the value of FoodTypeID based on user selection on the dropdown.I had tried for hourssss to do this bt i either get a compilation or cant save the new foodType selected in db
[Code]....
in fact, i not reli understand wat should be put inside the model => xxx and the dropdown helper overload, i am writing this based on the mvc tutorial
View 12 Replies
May 25, 2010
I want to design a website which displays on loading two tables each with it's respective data from a csv file. Then every minute the website automatically refreshes. This problem seems so simple! But yet the solution eludes me.
All of the files will be contained in 1 directory, not on a server but on a local machine. Such as sitting on the desktop. I understand if I use javascript I have to use ADO, and I'm still trying to work out how to use ASP. I am new with both languages. So far the only restriction is that I can't use PHP. So the jist so far as I can think right now is:
1. read the file
2. place the file into an array by splitting at the commas
3. write the array into td's ?????
4. then print all this out into a div ????
I have googled my heart out and can't seem to find what I'm looking for. or even piece together what I'm looking for. Everything with javascript and ADO's leads me to dead ends, I can't find anything on ASP that is helpful. Could someone write up some sample code for a resource? Or have a better solution?
View 1 Replies
Feb 4, 2011
Is there a standard method for calculating fixed width values for tables in HTML? Right now, I'm working on formatting tables on a web page to be a fixed width, I have a table that's within another table, when testing the page in IE I notice that the alignment of the colon is off as the second picture below illustrates. My intention is to make sure the colons are properly aligned as they are in Firefox and was just curious if the misalignment was due to the settings in the HTML or if it has more to do with how the browser renders the page.
Firefox:
Internet Explorer:
UPDATE: Sorry for not providing any reference code, here's a snippet of the particular section I'm working with.
<div style="width: 1600px; text-align: center; position: absolute; top: 10%; left: 0%;">
<span id="labelInstructions" style="font-size: xx-large;">PAGE TITLE <br><br></span>
<table style="width: 1000px;" align="Center" border="0">
<tbody>
<tr>
<td style="width: 1000px;"><label for="FileUpload1" style="font-size: x-large;">ENTER: </label><input name="FileUpload1" id="FileUpload1" size="70%" type="file"></td>
</tr>
<tr>
<td style="width: 1000px;"><span id="fileUploadError" style="color: Red; font-size: medium;"><br><br></span></td>
</tr>
<tr>
<td style="width: 1000px;">
<table style="width: 1260px;" border="0">
<tbody>
<tr>
<td style="font-size: x-large; width: 800px;" align="right" valign="top">FILE INSTRUCTIONS:</td>
<td style="font-size: x-large; width: 1800px;" align="left" valign="top">INSTRUCTION 1<br>INSTRUCTION 2<br></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td style="font-size: x-large; width: 800px;" align="right" valign="top">FILE EXAMPLE:</td>
<td style="font-size: x-large; width: 1800px;" align="left" valign="top">EXAMPLE 1<br>EXAMPLE 2<br><br></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
I know it's ugly, just a note, this is an ASP.Net generated webpage and I'm setting the attributes of the HTML elements pro-grammatically from the code behind. I sorta inherited this and my employer wants to keep major changes to a minimum. UPDATE 2: When I adjust the inner table width I can get it to align in IE when set to 1377px. For Firefox, the sweet spot for alignment is 1260px.
View 4 Replies
Jan 1, 2010
wanted to know what is the easiest way to interface a mobile phone device with an online system. I have literally NO knowledge in this domain. However, I am brainstorming on possibility of an online application that will allow me to backup my data in nokia set 3110 such as my Address book in the application and restore it. This I want to achieve without connecting my phone to any PC. I am thinking on some way to achieve this by leveraging mobile phone line only. I beleive it may require my application to connect to mobile phone through mobile phone network. Currently my mobile phone line subscriber is offering Address Book backup/ restore service with some charge. I want to see if I can replicate similar features. I would really appreciate if you can give a direction to my random thoughts.If anything is not clear then please feel free to inquire. I look forward to your kind response.
View 2 Replies
Oct 6, 2010
I applied Panel horizontal scroll to my application. I did so in the code behind since I did not want to show the "scroll slider" till I had filled the GridView. It was working fine.
Code behind:
Code:
mySqlDataAdapter.Fill(mySqlDataTable7)
Session("mySqlDataTable7") = mySqlDataTable7
GridView7.DataSource = mySqlDataTable7
GridView7.DataBind()
[Code]....
Now I have added UpdatePanel and UpdateProgress to my Gridview and the Panel horizontal scroll does not show and the GridView columns run outside the Panel.Modified mark up code:
Code:
<asp:Panel ID="Panel12" runat="server" CssClass="panellayout" Style="top: 60px; height: 201px;
width: 518px; left: 2px; border: none">
<asp:UpdatePanel ID="UpdatePanel99"
I could put the Panel scroll attribute in the mark up code and it works this way, but it does not give the right "touch and feel" when the GridView is empty the first time (I prefer not see the scroll attribute till I have filled the GridView the 1st time).
View 3 Replies
Jul 28, 2010
Basically, given data like this:
Col 1 | Col 2
1 7
2 8
3 9
4 10
5 11
6 12
I want to have the page display something like this:
Col 1 | Col 2 Col 1 | Col 2
1 7 4 10
2 8 5 11
3 9 6 12
The purpose of course is that I have extra horizontal space with less vertical space. Obviously it doesn't take a rocket scientist to pull this off, but I feel like I might be missing a cleaner/easier solution than my own, perhaps using CSS or clever use of an existing ASP.NET control. It seems like a common enough requirement, but I can't quite get the search terms right to find what I'm looking for.
View 1 Replies
Jul 3, 2010
What is the common practice of input validation? In other words do you check for input validation on client-side, on server-side or on both sides?
Also, if performance is crucial to me, would just the client-side input validation be sufficient for my website without presenting any security risks?
View 6 Replies
Nov 24, 2010
I have a web application where users can upload the photo. I do have a windows service running which takes the uploaded photo and crops it to different sizes. This runs in a specified interval. Photo will be visible to the user once after it's cropped. So once user uploads the photo and photo cropper has not yet run, they wont be able to see the photo. Due to this behaviour user thinks that there was some error uploading the photo and they will upload it again and again.
where the photocropper runs immediately when the user uploads the photos which is queued.
I am using asp.net & C#.
View 3 Replies
Feb 11, 2011
I'm about to begin an ASP.NET MVC project and I'm not sure how to approach an aspect of the design. Basically, there is a user site and an admin site. In the admin sites, administartors design a form and send an e-mail link out to a handful of people. When the users click on the link, they are sent to the form.
Essentially what I'm wondering is what are the best practices when the model resembles looks more like a dictionary than a table?
In other words, instead of:
CREATE TABLE FormResponse (ResponseId, FormId, UserId, FirstName, LastName, BirthDay, Comments)
...containing 1 row per complete response
It's more like:
CREATE TABLE FormResponse (ResponseId, FormId, UserId, QuestionId, Value)
...containing 4 rows. 1 for the FirstName, 1 for the LastName, 1 for the BirthDay, and 1 for Comments.
View 2 Replies
Feb 28, 2011
For WPF, there's the Microsoft Patterns & Practices's Prism project.
Prism provides guidance designed to you more easily design and build rich, flexible, and easy-to-maintain
Windows Presentation Foundation (WPF) desktop applications, Silverlight Rich Internet Applications (RIAs), and Windows Phone 7 applications I was wondering whether a similar project (reference implementation) intended for software developers building WCF applications exists.
In our main internal project (a .Net WinForms rich client app), we don't talk directly with the database but instead fetch and update data with ASP.Net web-services that we also control. Our current setup is giving us some bottlenecks. For a new smallish project, we want to try WCF. Objective question: Where do I find a not-too-basic WCF reference project?
View 2 Replies
May 7, 2010
In my experience building web applications, I've always used a n-tier approach. A DAL that gets data from the db and populates the objects, and BLL that gets objects from the DAL and performs any business logic required on them, and the website that gets it's display data from the BLL.I've recently started learning LINQ, and most of the examples show the queries occurring right from the Web Application code-behinds(it's possible that I've only seen overly simplified examples). In the n-tier architectures, this was always seen as a big no-no.I'm a bit unsure of how to architect a new Web Application.
View 2 Replies