.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Need help adding SSL to Login button

Posted By:      Posted Date: October 26, 2010    Points: 0   Category :ASP.Net

Hello, inside an ASP.Net 3.5 application, we currently have a login box with two inputs and one button.
The buttons does a JQuery .ajax call in a POST over HTTP with the login and password(!!!)

The server, checks the credentials and returns a success or error code.

I was asked to change this to an HTTPS call.  I've tested $GetJSON and $JSONP but nothing will do a POST like I want to.  Next I realized that maybe, I should create a FORM but, I would like to have an advice on what would be the best way to secure this call.

Another thing, I've started to use SecureString on the server side but was wondering if anything was planned to receive a SecureString directly from the Request object instead of creating a SecureString from Request["password"] ?

Thanks for any help,


View Complete Post

More Related Resource Links

Adding a button to the Report Portal

Hi everyone, I am using SSRS 2008 and would like to know if there is a way to customize the Report Portal?  I need to add a button that the user can click on when they find a bug or the report doesn't work.  The button would open an email window for the user to type in the problem they are experiencing and it would be sent to our Ontime system.      Thanks for your help!  Youngmon...  

Adding a Cancel Button

Hi, I have an application that performs a very big algorithm when a button is clicked. I'm trying to add a "Cancel Button" if the user wants to cancel the operation. The problem is the cancel button doesn't fire any event while the program is executing another events. Actually it seems beeing inactive. Any idea of how can I solve the problem?

adding play / stop button to a simple slide show


Hi guys,

I got the following code with the help of raghav khunger and I wanna add a play and stop button on it to cycle the pictures orderly and stop them. how can I do that?

<%@ Page Language="C#" %>

<%@ Import Namespace="System.Web.Services" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <style type="text/css">
            width: 100px;
            height: 100px;
            width: 400px;
            height: 300px;
    <form id="form1" runat="server">
    <asp:Image ID="imgMain" CssClass="main-image" runat="server"  ImageUrl="http://www.clubalbuquerque.com/files/images/15%20Random%20Greenery.JPG"/>
    <br />
    <div id="thumb-container">

InfoPath Forms : Adding rows dynamically from a SQL table along with a 'Delete' button per row


My requirement is something like this:

In a Task Approval form, I want to have a view which shows all the rows in a particular SQL table (in a infopath repeating table?). Along with each row, there should also be a button, on clicking which the row should disappear from the infopath view table. Do you think InfoPath can handle all this? :) 

To summarize:

1. How do I add rows to a table dynamically?

2. Per row, how do I create a button dynamically?

3. How do I remove the row from the view when the button is clicked?

Dynamically Adding button in GridView



I am using the following to dynamically add button to the cell of gridview, condition is that if the value of the fourth column is empty, then in place of empty cell add the button. But nothing is happening.  I am making use of the following logic in  RowDataBound event in gridview.

protected void gdvEmployee_RowDataBound(object sender, GridViewRowEventArgs e)

for( int i=0;i<=dataSet.Tables[0].Rows.Count;i++ )
                if (dataSet.Tables[0].Columns[3] == null)
                    Button button = new Button();
                    button.Text = "ADD";
                   DataColumn dataColumn = new dataColumn();

Adding Button in StatusBar !


Hello Everyone,


I am trying to have a StatusBar in my application which has a button in one of the panels.

I am doing

StatusBarPanel panel = new StatusBarPanel();



Which I know is wrong because I get

"Unable to cast object of type 'System.Windows.Controls.Button' to type 'System.ComponentModel.IComponent'"

as button is not IComponent.


What is the right way to do this?


P.S. I don't have a XAML file but doing everything through code.


Thank You in advance :)

Adding Current Windows User to Database Encounters Existing User with Same Login


In VS2008 in debug mode, I am using SMO to programatically change the users and permissions on a database. Windows authentication alone is being used. I need to limit access to a administrators group and the current user for whom the database has been dynamically created during the first run of the application within their current Windows environment on the machine. I have no problems creating and assigning the administrators group, but when I try to create the user using the environment's UserDomainName and UserName variables (which would be my creditals) I encounter an inner exception "The login already has an account under a different user name". Before doing running the app, I manually have checked the local server for user and logins with my credentials and programatically looked at each login but have not found any matching credentials. 

Insights and suggestions appreciated.


Adding a 'send meeting notice' button to the calendar.

I'm attempting to add a button to allow users to send meeting notices when they create it in sharepoint.

I am using the following framework of Java to implement the creation:

The part I'm caught on is that instead of having it beign created as a button under a standard list view, I would like to either have the Java snippet execute when a meeting is created, or, to have a button appear under the meeting in the calendar that someone can click.

Any recommendations as to the approach?

(I am also referencing http://www.winscripter.com/WSH/MSOffice/90.aspx and http://msdn.microsoft.com/en-us/library/ms268875(v=VS.80

Adding Image to button created in VS 2005



I am using C# and VS 2005. I am using the WSP Builder to create a web part feature.

I have created a button in the CreateChildControls. I want to add an Image to the button.

I would like to know, if this can be achieved.


btnMyBtn = new Button();
this.btnMyBtn.Style.Add(HtmlTextWriterStyle.BackgroundImage, "/Images/email_button_rnmp_opt.jpg");


In the folder structure, which gets created using the WSP Builder, there is no Images folder.  Is it possible to create a folder (for example: IMAGES) in the Solution Explorer, under Template.

How to add the image to the solution explorer, and under which folder, so that after building the application, the Image can be seen in the webpart.

Thank you

What would be the best way of adding a button that will only update a status of row from "Created" t



I am planning to add couple of custom buttons to update a status of a record in GridView?

What would be the best way of implementing it?

Many thanks, 

Adding Accordion pane dynamically on button click


Hi All,

As per my need I want to dynamically load accordion pane and inside that I want to load an ascx control. I am attaching my code for reference. But when I run my code it does not create separate pane. Can any one help me to fix this problem.

Sample Code part:

protected void Button1_Click(object sender, EventArgs e)
        i = i + 1;
        Label l = new Label();
        l.ID = "l" + i.ToString();

On browser back button click again login in Application problem



In my project I am using the FormsAuthenticationTicket and maintain session when any user login in the application. On logout I am expire the seesion using Session.Abandon (); but when I click on the browser back button after logout it again login in the application. I want after logout if any user clicks on the browser back button it do not again login in the application it redirect it on login page. But I do not how it could be possible.


Below is my code


protected void btnLogon_Click(object sender, EventArgs e)


            propertyStore.BusinessLayer.Users objUser = new propertyStore.BusinessLayer.Users();

            if (objUser.IsAuthentic(txtUserName.Text, txtPassword.Text))



                FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(


Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Maintain HTML Radio Button Selection Inside GridView After Postback

Long time ago I wrote an article about getting the value of the selected RadioButtons inside the GridView control. The code did not addresssed the postback issue which means that the selected radio button was cleared after the postback occurs.

A Simple and Extensible Radio Button Style GridView

The GridView is one of the significant controls in ASP.NET 2.0 and later versions. No doubt it reduces a lot of work time. However, customizing the GridView control is not an easy task. For example, it's hard to add a radio button column to the GridView. This article demonstrates the reason why a radio button column cannot act as normal and how to create a simple and extensible radio button GridView.

Adding Rows in GridView without using a Database

This article describes on how to add rows in GridView without using a database. Basically the GridView will be populated with data based on the values entered in the TextBox on Button Click and retain the GridView data on post back.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend