|
Hi,
Well i'd like the pages in my site to appear differently (such as background color, text size, font etc) based on if the user click on a certain button from the home page. Now the pages are the same as when the user doesn't click on the button (use customized site) and therefore what I'm thinking is to create new style sheets (in addition to the ones that are currently being used by the pages) and then add their references to the aspx pages also (since we could have multiple external style sheets in any particular aspx page). What do you guys think about this approach?? or if there's a better design then this???
Secondly if I go with this approach, how do I make the subsequent pages (after the user has clicked on Customize my site button) use the newly created styles sheets with my new properties?
Any suggestions would be appreciated!
Thanks
~TINA
|
|
|
|
|
Hey .NET 2.0 has Themes Concept... You can try that also...
|
|
|
|
|
Hello Venkatesh,
i have a query about how to call the windows services from a windows application.
i have a windows application with a timer, two tree views and a copy button.
when i set the time in timer, it should copy a file from the source and destination at that particular time.This is done using windows serivices.How to use Windows Services.And how to create the windows services
thanks
tirumal
|
|
|
|
|
This is not the place to post this question. This is an ASP.NET board.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi Venkat, I should have mentioned. We are still using 1.1. And as far as I know, there’s nothing of this sort (themes concept) in 1.1 Any ideas????
|
|
|
|
|
Then, using of the CSS is the best and easiest way...
|
|
|
|
|
Hi,
Iam authenticate the user against Active directory. Iam able to access the active directory by using directoryentry. But when i use the built in features provided by .NET iam getting error.
If i give my username and password incorrectly it is giving "Invalid User Name or Password". if i give correct data i get error.
In My web.config i use the following values.
<connectionstrings>
<add name="MyConnectionString" connectionstring="LDAP://servername/DC=mydc1,DC=mydc2">
<membership defaultprovider="MyProvider">
<providers>
<add name="MyProvider"
="" type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionstringname="MyConnectionString" connectionusername="MyName" connectionpassword="MyPassword">
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginurl="login.aspx"
="" defaulturl="default.aspx" protection="All" timeout="30" path="/" <="" forms="">
protected void MyLogin_Authenticate(object sender, Authenticate EventArgs e)
{
MembershipProvider objMP;
objMP = Membership.Providers["MyProvider"];
}
When i click the login button i get the following error
Object reference not set to an instance of an object. (D:\MP1\web.config line 41)
can anybody help me out.
Regards
|
|
|
|
|
Have you enabled the Impersonate property in your application?
|
|
|
|
|
Hi there,..
I'm using ASP.NET 2.0 and also applied Ajax Concept. Now in one page(MyAccount.aspx), if i click enter with focus on one Textbox this is redirecting to home page that is first page. I also using Master page. Why it's happening. It should redirect to that same page(i.e) My Account Page..
Please Help me
Regards n Thks
Sam.M
-- modified at 1:55 Monday 8th January, 2007
-- modified at 1:56 Monday 8th January, 2007
Regards n Thks
Sam.M
|
|
|
|
|
Is the TextBox within a login control? This may happen if you have the login control as the login control redirects to the default page.
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan
|
|
|
|
|
Hi all,
In my asp.net application I need to display data in datagrid which is in Excel Sheet. For that i read the data into data table and then bind it. Now the problem is Application displays error message " Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request".
My application works fine if Excel Sheet contains upto 20000 rows. Problem araises more than 20000 records
Any one please help me.
thanks & regards
sumanth
this is sumanth, completed m.c.a from india.
|
|
|
|
|
It seems you are getting this error because of Server Timeout. You might like to consider async operation while working with this big operation.
- ashish
|
|
|
|
|
hi,
In the web application developed using asp.net 2.0 , on the click event of a button a pop-up window is opened.
While running appliction pop-up window is opened after clicking the button (i.e. btn_click is called).Or alternatively if we want to call the same event when user press the Enter key by focussing control on that button using Tab key.In this case,click event is not called but I want it should be called.
I want Btn_click event should be called either
user will click on button(this is working) or
prees Enter key provided focus is on that button (even being focussed after hitting Enter key not working).
Hope you understood the problem. Please guide.
Thank you.
Have a nice day!!
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
Hey Yog,
I think, when you press enter, the browser is using the same pop-up to open again.. Put an alert() message in the click event and check whether it is called or not.
|
|
|
|
|
Venkatesh Sir, I put a query to you please answer that too. Thank you.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
|
Dear All
i am making web based application using C# and asp.net(Visual Studio 2005). In my application , its mandatory to store ip address along with relevant data.
i used to get ip add as
ip = Request.ServerVariables["REMOTE_ADDR"];(ip is string veriable).
I want to know
1>how can i make this code global so that i do not have to assaign it every time
2>Is it work fine everywhere. as one of my friend said it will not effective in the network whereever there is firewall.
please guide me
thanks
imran khan
|
|
|
|
|
you should add a class to your project then create a method to obtain the ip address.
once you have done that all you need to do is declare and instantiate your class and call the method. this can be done anywhere in your application.
i use the following code to obtain ip address of remote users
Request.UserHostAddress()
this will always obtain ip address of remote users firewall or no firewall i use this for a customer portal site for tracking users.
|
|
|
|
|
Hi there:
IMO..you just declare an public abstract class...then put the public info into this class...
Hope you get the clue
<< >>
|
|
|
|
|
Hello,
I have created a web service and will publish to a remote IIS, however the publishing takes over a hour and sometime longer. But this App_Data is 10mb in size. In my code all I have is about 10 methods which most of them return a dataset from a sql server database.
I am wondering, do i need this App_Data? what purpose does it serve? What data does it store?
Many thanks for any advice,
Steve
|
|
|
|
|
I could not see App_Data in my application... Have you added this to use in your application.
Well, what happens if you remove this?
- ashish
|
|
|
|
|
I am using visual studio 2005. That has the App_Data.
Thanks,
Steve
|
|
|
|
|
How do you delay the movie play until it is fully loaded (downloaded) from the server? My movie's start playing immediately and are jerky as crazy. Then if I wait a minute or two they play smoothly as they have finished streaming down.
Here's the code I'm using:
//MediaElement is just an ASP:Literal.
_mpg = Request.QueryString["MPG"].ToString().Trim();
tmpHTML += "<object id=\"MediaPlayer\" height=\"240\" width=\"320\" classid=\"CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95\" standby=\"Loading Windows Media Player components...\" type=\"application/x-oleobject\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112\">" + "\r\n";
tmpHTML += "<param name=\"filename\" value=\"" + _mpg + "\">" + "\r\n";
tmpHTML += "<param name=\"Showcontrols\" value=\"True\">" + "\r\n";
tmpHTML += "<param name=\"autoStart\" value=\"False\">" + "\r\n";
tmpHTML += "<embed type=\"application/x-mplayer2\" src=\"" + _mpg + "\" name=\"MediaPlayer\"></embed>" + "\r\n";
tmpHTML += "</object>" + "\r\n";
MediaElement.Text = tmpHTML;
|
|
|
|
|
Rex,
You may try hooking the client side event ReadyStateChange of the player, and check the ReadyState parameter of the handler or this property of the player.
|
|
|
|
|
Hi.
I use visual studio 2003 and framework 1.1
My question is :
How can I insert my swf file into asp.net ?
I have created a swf for the header of my site and I want to use it in my site but I dont know where should I insert this SWF to ASP.net
please help me if you know.
thank you very much.
|
|
|
|