asp.net

Create computed column with string in formula

I want to create a computed column in SQL SERVER and set the formula to this ([Category] + '.aspx?ID=' + [Post_ID]) Not working though......what am i missing? Category and Post_ID are current columns in the table ...

Open Jquery Dialog Server Side

Hello. Is it available to open jquery Dialog Server Side From Behind Code in asp.net? Please give me an example or a link for more information. thanks. ...

How to set class on div that is inside of repeater in code behind???

CSS & html id0 is the class for the div that's got background as a sprite image and inside of this div..there's a list of links (in repeater)..when the user hovers over links..the background image of div displays diff parts of sprite image accordingly Now I want that the classes id1 to id5 be set as the classes of the repeater's list.....

why after validation is false HttpContext.Current.Request.IsAuthenticated

I've created a login on my website using forms authentication, I do not understand why after creating the ticket and adding it to the cookies if I check for HttpContext.Current.Request.IsAuthenticated i get false. Only on the successive request the user become authenticated this is my code var fat = new FormsAuthenticationTicket( ...

Static website from ASP.NET website

Hello, A few clients have asked to make some static websites because their hosting doesn't support a server-side language. Now I was wondering are there any tools/techniques for generating a static website from an Asp.net site? The reason I ask is because without masterpage or any form of templating it gets really cumbersome. I remem...

accessing html control inside the page from web user control

hi I have created a web user control I want to change the iframe' src value when the user click on the link but the problem is that I dont have access to iframe inside the page from web user control I think there is a way because my control is in the page they have some relation perhaps I like to find something like this : public void ...

Help in Create Page like "aspx?id=1"

I want to write a code that open a new page in for ex : ".aspx?id=1" . like this site : http://www.dotnetcurry.com/ShowArticle.aspx?ID=76 when my user click on his article then go to "aspx?id=76" what am i going to do ? thanks in Advance . ...

twitter like open source software for .Net platform?

Hello everyone, I am wondering whether there is twitter like open source platform written in .Net (C#, ASP.Net, SQL Server, etc)? I want to integrate twitter like feature into my own web application, but not want to use public twitter service. thanks in advance, George ...

Adding tracelistener to web.config

I want to use below code with a website. Which config sections I should add to web.config to log the output into a file or windows eventlog ? using System.Diagnostics; // Singleton in real code Class Logger { // In constructor: Trace.AutoFlush = false; public void Log(message) { String formattedLog = formatLog(message)...

restrict user when select from ajax calender

I had Ajax calender for birth date on registeration form and I tried to restrict user from select now date also I tried to limit user to select from calender birth date equal 6 years or greater than6 years.I user rang validator but I couldnot .So please any one help me. ...

Post to another page site works, but shows a blank page in the process

I am posting values to from an ASP.NET website to a completely different site (Paypal actually). I accomplish this by returning a page to the user that has all the hidden form inputs written and then a Javascript function that automatically submits the form. The process is supposed to be seamless, but the blank page is noticeable for th...

Adding asp.net server side controls through javascript dynamically

Hi, Is there a way to add asp.net server side control dynamically on the webpage without causing postback. Like can I add a calender control dynamically on a button click and handle calender events to do some other work.... Thanks ...

ASP.NET 3.5 GridView Row Selection

I have a GridView. I have to collect the GridViewRow where checkbox is selected. How can I achieve it without any client side script? Please help me to get this done. ...

ASP.NET :Why my dynamically added event handler method is not firing in asp.net page

In my asp.net page codebehind,I am creating a button dynamically and adding a event handler to it.But when i set a breakpoint on the button click event(which i added in codebehind),its not hitting.Any idea why ? My code is here ASP.NET PAGE <form runat="Server" id="frm1"> <div id="divPaymentOptions" runat="Server"> </div> </form> ...

ASP.NET submit button RequiredFieldValidator not firing with Facebox

I was trying to create a popup logon form for a site I'm working on so I decided to give facebox a try. The logon pops up ok, but the submit button and required validators are not firing. This is within the master page and is contained with a Progress Panel. In the page header, I have: <script type="text/javascript"> $(document)....

How do I convert XML to string and get the element value?

How do I convert XML to string and get the element value? Example XML <Example> <Option1>x</Option1> <Option2>y</Option2> <Option3>z</Option3> </Example> . If i wanted to get option1 it would return x, option2 returns y, option3 returns z. etc.... ...

Customizing MonoDevelop to enhance productivity and coding enjoyment

I'm new to C#, and although my office machine is based on windows, my netbook only has linux on it. I installed monodevelop, and so far everything is working fine. I was just wondering if you had any tips or must dos for any person who is using monodevelop for c# / asp.net programming Edit Feel free to recommend open or closed source...

ASP.NET MVC 3 Futures Library - Post New or Undocumented Feature Discoveries Here Please!

Possible Duplicate: Actually, a more specific version of below post, as mods declared below post as vague and general, yet this specific version is apparently a dupe? Asp.Net MVC 3.0 Futures - Please post your feature discoveries here? Basically trying to figure out the usage of the new features in the MVC 3 Beta Futures that ...

Passing parameters when submitting a form via jQuery in ASP.NET MVC

I'm trying to do a form submit to my controller through jQuery Ajax. The following code works for the most part, however, the ThreadId parameter does not get passed. If I call the controller directly without using jQuery, it gets passed, but when using jquery, I don't see the ThreadId after form.serialize(). WHat would be the easiest ...

Inherit class from page, usercontrol, and masterpage

I have Page, MasterPage and UserControl in my project. So I create basepage class and share some logic, then inherit from System.Web.UI.Page. My problem is I want use single basePage for any type of UI content. ...