|
Hi guys again, thanks for replying and helping me so far, here's my other question since im a complete noob with asp.net. Whenever i add a ContentPlaceHolder, is there anyway to perform its alignment ? it adds a complete bar, i would like to be a rectangle with right-alignment for example, am i allowed to do that ?
Because, eventhough my webpage looks nice in the browser, if i go to design view in VS, it looks like a pretty mess of containers
Is that normal or im just being very sloppy?
Thanks in advance,
Mariano, from Argentina.
|
|
|
|
|
Use Html tables for alignment
here is the simple example
<Table>
<tr>
<td align="Left">Something you want</td>
<td align="right"><your content palce Contentplace holder></td>
</tr>
</Table>
|
|
|
|
|
Thank you very much for answering to my doubt!
|
|
|
|
|
I have a website built in framework 2.0 .also there are virtual directory under the website built in framework 3.5 running successfully .When i placed a wcf service under one of virtual directories(and browsed the .svc file) I'm getting the following error....Section or group name 'system.web.extensions' is already defined. Updates to this may only occur at the configuration level where it is defined.
|
|
|
|
|
hey guys...can anyone give me some hints...
|
|
|
|
|
Don't be so impatient and rude. This is a volunteer site and people will answer, or not, as they see fit. If you have a critical issues then call for paid support.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
vkumar09 wrote: virtual directory under the website built in framework 3.5
You don't have a virtual directory built in any .NET framework. Virtual directories are an IIS construct that is independent of, and have been around long before, .NET.
What may be happening is the configuration file setting are applied incorrectly. We can't tell because you have not provided it.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi, I had perpared a report to show the overtime work and time off balance of staff.
the report like this: (the total_min column will not show in the report, it just a field in dataset)
From | To | No. of hours | Balance | total_min
01/01/2011 12:00 | 01/01/2011 17:00 | 7 hr 0 min | 7 hr 0 min | 420
07/03/2011 12:00 | 09/03/2011 14:00 | ( 2 hr 0 min ) | 5 hr 0 min | -120
07/03/2011 19:00 | 09/03/2011 20:30 | 1 hr 30 min | 6 hr 30 min | 90
10/03/2011 17:00 | 10/03/2011 17:30 | ( 0 hr 30 min ) | 6 hr 0 min | -30
I have no idea how to set expression in reportviewer to calculate the "Balance" column in each row that it will sum the value of previous row ?
( i already had a 'toal_min' column in dataset which can use for calculation)
Thanks.
Joe
|
|
|
|
|
You can use a footer row...... in that row you can have a cell sum(fieldname). Please let me know if it worked or how you want it
Naina
Naina
|
|
|
|
|
I have started in a small venture, to build and run a web site that offers mainly horse racing info and tips. The only financial transactions available on the site will be to subscribe to various levels of membership via PayPal. Two areas that are higher priority than normal to secure are where my partner, the compiler of the info and tips, uploads his new data on a daily basis, and to prevent spoofing where lower quality info pages could be displayed instead of the intended info. I presume HTTPS goes a long a way to help for the the latter, and the upload I can secure by sending a random token to the user's email or cell, that he must enter when logging in.
What else can I do? I have never had a requirement for any security beyond the out-of-box ASP.NET membership and roles.
|
|
|
|
|
This may help[^]
------------------------------------
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[ ^]
|
|
|
|
|
Heyy, hello community, i'm new here... and also with asp.net.
I'm creating my webpage with masterpages in order to practice a bit.
Here's the structure of my masterpage body:
div container
div header
div body
div footer
end div /container
Created the masterpage with the header and footer, inside of the masterpage, created to separate contentplaceholder, one for log in form, and the other for the body components such as register form, welcome message and a nice looking sliderbox.
Created the login.aspx, that inherits from the masterpage, and contains the login form and register form, (the one i previously mentioned).
Now the problem is:
Whenever you log in, you will be redirected to the home page, with a menu below the header (which is not included on the first masterpage).
What should i do ? create a sub-masterpage (contains the new menu) that inherits from the main masterpage and then home.aspx inherits from the submasterpage ?
Hope you understand my problem, and sorry for my english!
My best regards,
Marian.
|
|
|
|
|
To make sure I understand, you have a component, menu in this case, which you want to show up on all content pages but not on the login and registration pages?
Two ways for this.
1) Create two master pages, one with the menu and one without. Create the header and footer as controls so you are not duplicating code.
2) Create the menu as a control that can be displayed, or not, depending on the page being displayed.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
First of, thanks for replying Matt!
Yes you got it correctly. Ok, so i wasn't that wrong, right ?
Create 2 masterpages, one with the menu and the other without it.
1) Sub-masterpage inherits the header and footer from his father, but adds the menu.
2) home.aspx, contact_us.aspx, etc, inherits from the sub-masterpage with menu.
3) login.aspx inherits from the masterpage without the menu with the header and footer.
Am i correct?
Thanks in advance again,
Marian.
|
|
|
|
|
First of all its Mark, not Matt.
There is no inheriting involved. The term has a certain meaning and connotation in a software development context. Improper use of the terminology will lead to confusion. ASP.NET pages don't inherit or implement a master page, they use it.
I would not even refer to the second master page as a sub-masterpage. Sub has the meaning of something underneath. Your masterpages siblings.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Oh! sorry for you name mistake, i thought your name was "matt" because of your signature "Madmatt".
And thanks for explaining me the terms of "inheritance" in asp.net and masterpages
iou!
Best regards!
Marian.
|
|
|
|
|
I have a web site on an internal web server on our enterprise network. When a user who is a member of the admin group on the web server visits the page, cookies are created on the main page and read just fine on the other pages. But if it's a user who is not in that group, no errors are thrown but the cookies don't seem to be written.
MSDN gives two techniques for writing cookies. This one does not throw an error, but neither does it create the cookie for all users:
HttpCookie c = new HttpCookie("userinfo");
c.Values["domainaccount"] = _CtaUser.DomainAccount;
c.Values["userid"] = _CtaUser.UserID.ToString();
c.Values["username"] = _CtaUser.UserName;
c.Values["rolename"] = _CtaUser.RoleName.ToLower();
c.Values["ctaactiveflag"] = (_CtaUser.CTAActiveFlag) ? "1" : "0";
c.Expires = DateTime.Now.AddDays(1d);
Response.Cookies.Add(c);
This technique works just fine for all users:
Response.Cookies["userinfo"]["domainaccount"] = _CtaUser.DomainAccount;
Response.Cookies["userinfo"]["userid"] = _CtaUser.UserID.ToString();
Response.Cookies["userinfo"]["username"] = _CtaUser.UserName;
Response.Cookies["userinfo"]["rolename"] = _CtaUser.RoleName.ToLower();
Response.Cookies["userinfo"]["ctaactiveflag"] = (_CtaUser.CTAActiveFlag) ? "1" : "0";
Response.Cookies["userinfo"].Expires = DateTime.Now.AddDays(1);
As near as I can tell, the browsers for all users are setup identically, and we have tested with IE7 and FF. Can anyone point out what I'm doing wrong? Thanks.
My other signature is witty and insightful.
|
|
|
|
|
Hello
I have to show data from db. I have used Gridview to show the table. But I need to show it Vertically,
Eg:
Id Name Exp
1 AAAA 3
2 BBBB 4
Instead of this, I have to show like this,
Id 1 2
Name AAAA BBBB
Exp 3 4
I have searched and found use Datalist/Detailsview but I could not able to match that.. Can anyone give me an example / solution?
Awaiting for your valuable solution...
Thanks
|
|
|
|
|
Sir, I think that you need to use 2 Repeaters instead of GridView.
<table>
<asp:Repeater ID="Repeater1" runat="Server">
<ItemTemplate>
<tr>
<td><%# Eval("ColumnName") %></td>
<asp:Repeater ID="Repeater2" runat="Server">
<ItemTemplate>
<td><%# Eval("Value") %></td>
</ItemTemplate>
</asp:Repeater>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
100
Help people,so poeple can help you.
|
|
|
|
|
|
You can try DetailView. It does the same thing sa Gridview but in Vertical Way.
|
|
|
|
|
I have a large web application, which is supposed to run in a 64 bit process. However, when I set "Enable 32-bit Applications" to False on my App Pool, I get the following error trying to run the app in IE:
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
The application name at he beginning of the error message is missing, i.e. I have not lost it during copy and paste.
I have been advised to use Process Monitor to determine which application/DLL load is actually causing the error, but I have no idea where to start with this. Could somebody please advise?
I have tried filtering Process Monitor on only w3wp.exe and only file system and process events, but simply attempting a navigate to the root URL yields 34,012 events.
This is a copy of my original question on StackOverflow, located at http://stackoverflow.com/questions/5233540/how-to-use-process-monitor-to-determine-which-dll-is-causing-a-badimageformatexce[^]
modified on Wednesday, March 9, 2011 2:13 AM
|
|
|
|
|
Hi everyone,
My page need to be automatically refresh in every 20 minutes and get the data from table and show it. This I did simply. The time is calculate from when I load my page (i.e) If I load my page at 10:25 AM then it automatically refresh at 10:45AM, but my actual requirement is It should load every 20 minutes from 10:00AM to 8:00PM in that time interval....(i.e) If I load the page at 10:25AM then it automatically refresh at 10:40AM then next 11:00AM, 11:20AM, 11:40AM.................7:40PM, 8:00PM and it stop.
How can I achieve this in my C# code or Javascript? Give me some idea pl.
Thanks
|
|
|
|
|
|
Add
Async="true" to the Page directive, like so:
<%@ Page Async="true" Language="C#" AutoEventWireup="true" CodeFile="ProviderAlerts.aspx.cs" Inherits="ProviderAlerts" %>
Then, add this javascript:
<script type="text/javascript">
<!-- Begin
function reFresh() {
location.reload(true)
}
window.setInterval("reFresh()",300000);
</script>
This reloads the page every five minutes.
My other signature is witty and insightful.
|
|
|
|