|
We have, in the past, styled the content with the media tag, but ultimately this didn't prove to be enough. While you could get the styling reasonably well, we came to realise that not all the content was suited to the different resolutions; so we put in place a system where the same request could serve up content from two locations - 1 for mobile and 1 for full. Combined with the different stylesheets and it became a lot easier to roll out content.
|
|
|
|
|
I don't suppose you have any links that detail the technique? And is it something that could be implemented from a hosted service? I won't have access to the machines, and cannot control what software will be available.
|
|
|
|
|
I don't. It's just something that we built into our CMS - which we host.
|
|
|
|
|
Hi,
I was using visual studio 2005 before. Now I am using visual studio 2008. I got some problem with the loop execution. Well the project with the loop statements was working fine before but now in visual studio 2008, loop is not executing.
I have a loop on a button click and only the loop is not even working. The piece of code i have on my button click is
protected void btnArchieve_Click(object sender, EventArgs e)
{
for (int i = 0; i < gViewIndividualNames.Rows.Count; i++)
{
}
}
I put the breakpoints in all the lines but I even checked my count value. Its 2 but still this loop is executing only once.
Any ideas?
suchita
|
|
|
|
|
Without seeing what's in the for loop itself, no. If, however, there's a line in there that's incrementing i (e.g. i++ ), then that would explain it. Merely changing from VS2005 to VS2008 does not, by itself, change the fundamental nature of program applications.
If I were you, I'd put a local watch on i and see what's happening to it as you step through the loop.
|
|
|
|
|
thanks for the reply... now again the same code is working...
suchita
|
|
|
|
|
Dependant on the number of rows, there is nothing obviously wrong here.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
I have following setting in my solution:
Project1 and Project2
Project1 has reference to project2. However when I trying to redirect from project1 to default.aspx in project2 it won't find it: The resource cannot be found.
here is what I see in url at run time:
first default page in Project1
http://localhost:192/default.aspx
redirect to default page from Project1
http://localhost:192/Project1/default.aspx
Could you explain why I am getting that error?
|
|
|
|
|
Because other web project should be in running mode too when you are redirecting from project one. It seems you are using VS inbuilt IIS.
Other way, you can host both apps on IIS server and then you can use it means redirect pages from both web aps.
Thanks
Parwej Ahamad
|
|
|
|
|
I convert textbox to multiline for editing address data inside gridview. I am unable to find the syntax to retrieve multiline textbox value code behind for updating data.
I am using following syntax for retrieving textbox value code behind:
string DESCRIPTION = ((TextBox)gridview_ExcelData.Rows[e.RowIndex].Cells[11].Controls[0]).Text;
anu
modified 28-Sep-11 8:52am.
|
|
|
|
|
FindControl has worked. Has changed my syntax as below:
GridViw:
<asp:templatefield headertext="--------------DESCRIPTION--------------">
<edititemtemplate>
<asp:textbox id="txtDescription" runat="server" columns="30" rows="10"
="" text="<%# Bind("DESCRIPTION") %>" textmode="MultiLine">
<itemtemplate>
<asp:label id="lblDescription" runat="server" text="<%# Bind("DESCRIPTION") %>">
protected void gridview_ExcelData_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
string DESCRIPTION = ((TextBox)gridview_ExcelData.Rows[e.RowIndex].FindControl("txtDescription")).Text;
}
It worked now.
anu
|
|
|
|
|
Hello,
i made a simple menu using tables and labels on a top of a master page
i could use a help please by telling me how to use an UPDATE PANEL to update only part of the page (contentplaceholder).
this is the situation now:
in the Master page, i have the menu(Linkbuttons.. lots of them) and a contentplaceholder. i need the contentplaceholder to be updated partially without the menu of the masterpage each time i click on any of the labels. WHY? because each time someone clicks on the menu, the item gets marked up in red, i want the path of the item to be saved and therefore not to be refreshed.
I tried to read about update panels but none of it helped me. i might be missing something, i would be more than please if someone would explain the steps of using the update panel in THIS situation please.
thank you a lot.
modified 28-Sep-11 10:52am.
|
|
|
|
|
Sir; What you are trying top do can not be estblished by Master page/Content page or an update panel. All you need is a frameset consists of to frams _master (to hold the menu) and _content (repesents the page you want to navigate to).
Now, every item in the menu should contain a link to the desired page. just like the code below:
<a href="url to the page" target="_content" >Some Text</a>
Help people,so poeple can help you.
|
|
|
|
|
Thank you Ali for your answer. can you show me a good sample using frameset in asp.net?
Thanks,
Basel
|
|
|
|
|
|
|
Good Day All
I have a Dynaically created a Textbox and i have a Dynamically created DIV. So what i want to do is to Find the Position of the Textbox and and Dynamically when this textbox is created , please a Div just next to this textbox. So my plan was to find the position of the textbox and next to it using the position of the textbox and calculate the position of a Div.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
Hi, you cqan achieve this on client-side using jQuery like so:
var top = $('#txtTextBoxId').offset().top;
var left= $('#txtTextBoxId').offset().left;
By finding the top and left of the textbox, you can easily create a div and fix it at maybe 10px below/up and 10px left/right depending on what it is that you are trying to achieve.
More here:
- http://api.jquery.com/offset/[^]
- http://api.jquery.com/position/[^]
|
|
|
|
|
I have a big .net web application hosted on the server, it was working fine until I tried to share the solution folder by giving permissions to a user.
In the process I might have messed up permissions
After this, the whole solution stopped working, then I gave 'Everyone' the access permissions to the project folder, then the project started working but one folder has some aspx files, and when I click on the link that opens them, It gives me the
Could not load the assembly 'xxx'. Make sure that it is compiled before accessing the page I tried everything from replacing old compiled version of this folder.
And before you ask, this folder does not have its own web.config file.
I have checked all the permissions and re-assigned them, I have also check the IIS (5) to have the v2 asp.net framework, I have tried the aspnet_regiis -i command to re-install asp.net , I also created a new application pool for this project
But in Vain
I can't get the problem
Please help me
UPDATE
I copied the whole solution to another location, created a new virtual directory and it worked
But the permissions on the folder are still screwed
I cannot rename the folder now, the reason is, I created a new folder called project_bkup now after it works I want to rename it to project, but its not allowing me
I cannot get to the botton of this
Please help
_____________________________________________________
Yea! I could be wrong...
modified 28-Sep-11 4:45am.
|
|
|
|
|
Dear all
i wanted to know how to add new location in google by asp.net programming project
any one one help me
rizvan sivally
|
|
|
|
|
Try Googling this. I got over 1 million results for asp.net google maps api[^] search.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Hi friends
I am new to this resource group. I am having a doubt regarding how to create templates which can be used in all asp.net pages. This template has the common features to be displayed in all the asp.net pages which i am to create. How to create and call that template in all the asp.net pages. I am to use asp.net 2.0 with c#.
Looking forward for a reply
K.Gayathri
|
|
|
|
|
|
thanks for the reply.
K.Gayathri
|
|
|
|
|
most welcome....
I quit being afraid when my first venture failed and the sky didn't fall down.
|
|
|
|