asp.net

Can I use ASP.NET Server variables in assembly embedded javascript resource file

I was only wondering if it is possible at all to use server code within an assembly embedded javascript resource file. For example I downloaded an assembly resource sample project and I can see within the javascript resource file you can call server code. In this sample to get the url of another embedded resource (an image in this case)...

Repeater using a user control

I have a repeater with which I want to use to show a user control multiple times, populated with data. Currently, I have this: <asp:Repeater runat="server" ID="MyRepeater" > <ItemTemplate> <uc1:MyItems ID="MyItems1" runat="server" /> </ItemTemplate> </asp:Repeater> My user control has three properties, which I want to...

button click event call on page load

hi expert i am new in asp.net development, i have problem when page load fired a click event of button is automatically fired will you please tell me why it is happening and what is the solutions for that. lets protected void butSubmit_Click(object sender, EventArgs e) { if(butSubmit.Text.ToString().Equals("Submit")) ...

window.open cache problem

Hi all, I'm using window.open in a function to open a web page, which displays help for the current page. The pages URL are stored in DB , some pages need authentication. For these pages, the first time we call them the user has to authenticate, but if he closes the page and opens it another time , it's the cached page that is displa...

how to insert image in html action link? asp.net mvc

Hello all, I have navigation and many link on my webproject from html action links. They are ugly with underline. I would like to insert some image with name or play with styles of action link. Is it possible? How to do that? Thanks and take care, Ragims ...

Free ASP.NET WYSIWYG control needed

I need a free ASP.NET WYSIWYG control, which allows me to edit full HTML page. I tried FreeTextBox, RichTextBox and others, but they remove <html>, <head>, <body> and etc tags when I switch to Design View. I googled a workaround and found two opened topics on the FreeTextBox forum dated 2005 and 2007 with no answer. http://freetextbox....

Datasource with parameter in ASPX page to move in user control

Hello, I have a page with some datasources in it. I am doing reenginering of the page itself and would like to split some parts of the page in several user controls. In my code I have an ObjectDataSource object with the following params <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="DataSetTableAdapters.Photos...

how to handle Asp.net MVC Routing along with asp.net webform routing

How to handle asp.net mvc routing along with asp.net webform routing. I have merged my mvc app into my existing web application. In my web application i have implement routing as below: routes.Add("View Product Details", new Route("Product/{City}/{Manufacturer}/{Name}/{ProductID}/{*ProductType}")); Similarly i have implemented rout...

Get html tags from textbox in C#

I have a text area in my ASP.NET web application that is used to enter html code. Now there is also an button control, which upon clicking should retrieve just the text placed between certain html tags in the text box. For example: 1) User types html code including tags etc. and clicks the OK button 2) In my code the text from the te...

Hi all how to rectify this errors..

The type 'Sdi.Pss.Site1' already contains the definition for 'logout' The type 'Sdi.Pss.Site1' already contains the definition for 'btnfresh' The type 'Sdi.Pss.Site1' already contains the definition for 'lblshow value' ...

How to localize calendar component of YUI?

Hi friends, I have a question about YUI. I am using YUI calendar component in my website project. I insert the codes inside ASP as javascript. (like that http://developer.yahoo.com/yui/examples/calendar/germany.html ) Now, i am about to hearing your questions, i am answering them immediately. Yes, this link explains how lo localize YUI ...

Is this a safe way of keeping an asp.net application alive without getting recycled?

I ve started a timer to visit my application every 20 minuates in Applicaiton_start in global.asax. void Application_Start(object sender, EventArgs e) { System.Timers.Timer tm = new System.Timers.Timer(20 * 60 * 1000); tm.Elapsed += new System.Timers.ElapsedEventHandler(tm_Elapsed); } void tm_Elapsed(object sender, System.Timers.Elaps...

multiple asp.net membership providers

I have created two custome membership providers that I would like to add to my web.config. The first one would be the default that the asp.net application would use. The second would be called by a WCF service that I have in the same application. The providers in the membership section of my web.config looks like the following: <...

How can i build an Online word Processor using .net.. Libraries in .net for MS word files???

I'm a student doing final year of my Computer Science and Engineering. For my final year project i've choosen to do an online word processor such as google docs,zoho etc.I want to implement this project in .net. This will be a ajax oriented project and i'm well prepared with the web related part of it with ASP.net and C#.net at the serv...

Learning Web Development starting with ASP.NET MVC

Hi, I have been working with C# for past four years at the enterprise level. Now, I have taken a decision of moving to Web side of the things. Since I am well versed with C# and WCF I naturally zeroed in on ASP.NET as I need not learn a new Programming language. Learning just the Web Framework will suffice. I have read a lot regarding ...

handling with sever side control button.

hi all i want to know that if in my login.aspx page there is two button login and cancel now i press enter key of my keybord by default its select cancel button but i want to set it on login how i will do ? ...

finding users IP Address and MAC address from web browser

Is it possible to find out the clients IP and possibly MAC address from non IE browsers (i.e. without using ActiveX)? If so, how? ...

Javascript not pulling value from form

userName = Global.getComponent('centerRegion').UserName.getValue(); That code pops up with the error {"browserEvent":"'Global.getComponent(...).UserName' is null or not an object","button":-1,"ctrlKey":false,"xy":[0,0]} When I run it on this form: Using Form As New WebControls.Forms.Form With Form ...

Controlling access to Silverlight control or service DLL in IIS/ASP.NET

I made a toy Silverlight application. It gets some arbitrary XML from a domain service and stuffs it in a datagrid. What I'd like to do is implement access control for the service and the Silverlight control. For example, I'd like to allow access only to logged-in users, while denying access to anonymous users. With forms authenticat...

asp:RegularExpressionValidator, make sure there is no comma in a string

I've been trying to read about and test various regular expression testers to find my solution but to no avial. I'm using: <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ErrorMessage='<%# "*"%>' ValidationExpression="," runat="server" ControlToValidate="edit_email" Display="Dynamic" EnableClientScript="true"></asp:Re...