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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

change aspnetdb.mdf control

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :ASP.Net
 

Hej guys


I have a database that contains one table with usernames and password. I am using vs 2010 and sql server developer version. i don't want to add other tables to my database.is there anyway that i can tell the login form of visual studio (maybe by using a web server that turns back the answer if user exists or not ) not to create the aspnetdb.mdf  ??? 

if i can use a web server to check if the user exists or not do i have to use a session or forms authentications...???i really am confused about this forms authentications and session...what is the difference..how do they work????

 Any idea 




View Complete Post


More Related Resource Links

Password change control won`t accept new password

  

Hi guys

I am developing a shopping cart with asp.net and sqlexpress. I am using aspnet authentication components to create a backend page. I designed the site to let in only authorized users in. 

Yesterday, I forget my password to login to backend and asked system recover my password. with recover password of the asp.net I was able to receive the temp password. I took that and logged in, of course asp.net forward me to password change component which I am having problem with. 

Every time I change my password , password change shows that I was successfull but after clicking on the continiue button password change component comes back. I went to properties of password change component and entered the main default page as destination but it is not helping. 

I close the IE clear the cache , even restart the machine. When I login always taking me to the password change page.

So, I need your help with this. Please let me know your inputs.

thanks



Use update progress control to change image control imageurl

  
UPDATE: Apologies for the previous formatting error - hopefully the post is now more readable... Hi I have a button with an image control next to it. Before the button is clicked, the image control "ConfirmedStatusImage" shows a "cancel.png" image. When the button has been clicked (and some other code successfully executed), then I change the imageurl for the "theConfirmedStatusImage" to show a "ok.png" image. Quite a bit of time can often pass between clicking the button and the associated code executing, so I have an ajax update progress control that shows a "bluespinner.gif" image while the page is updating after the button click. At the moment, the update progress updating image appears next to the "ConfirmedStatusImage" control. However, I would like to change things so that when the update progress starts, the imageurl of "ConfirmedStatusImage" changes from "cancel.png" to the update progress image (i.e., the "bluespinner.gif"). Then, when the update is complete, then the image should change to the "ok.png" image. My question is: how can I achieve this? As far as I can tell, the update progress control does not have any events that I can hook into. Also, placing the "ConfirmedStatusImage" inside the ProgressTemplate would not work either, as this only displays

Change the Default Date in the Date Picker Control

  
Hi, I have a WPF Datagrid in which one of the columns is a Date Column. So i have used a DataTemplateColumn as Follows     <my:DataGridTemplateColumn CellTemplate="{StaticResource EffDateDateTimePickerControl}"   CellEditingTemplate="{StaticResource addrEffDate}" Header="Effective Date"/> And in my Resource File i have written the following code: Style   TargetType="{x:Type my:Calendar}" x:Key="CalenderControlTemplate">     <Setter Property="Template">     <Setter.Value>     <ControlTemplate TargetType="my:Calendar" >     <my:CalendarItem Name="myCalendarItem"   Background="White"   BorderBrush="Black"   BorderThickness="1"   VerticalAlignment="Center" />     </ControlTemplate>       </Setter.Value>     </Setter>     </Style>       <DataTemplate x:Key="EffDateDateTimePickerControl">     <Label x:Name="lblEffDate" Content="{Binding effectiveDate,Mode=TwoWay}" ></Label>     </DataTemplate>     <DataTemplate x:Ke

How to undo any change done on checked tree view control

  
Frnds,   I have Check boxed tree view control on a popup control.   Two button also there, 1) Save   2) Cancel.   On cancel I am hiding the pop-up control. But if any change I have mad on tree view (Check or Uncheck) will be there if I am open it again.    So I need to undo any change done on tree view if I clicked cancel button.     Can any one help me on this?

change the color of label control inside gridview

  

Hi i am saving color as a string in database 

i have a gridview control

 <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowUpdating="Update_Schedule"
                    OnRowDeleting="Delete_Schedule" OnPageIndexChanging="OnPaging" OnRowEditing="Edit_Schedule"
                    OnRowCancelingEdit="CancelEdit" PageSize="10">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="Todo" runat="server" AutoPostBack="true" Height="23px" OnCheckedChanged="CheckedChanged" />
                                <asp:HiddenField ID="hdn_ScheduleID" runat="server" Value='<%#Eval("ID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Label Text='<%# Eval("Title") %>' runat="server" ID="lbl1"></asp:Label>
                            </ItemTem

Change caption language of HTMLEditor Control (Ajax Control Toolkit).

  

Hi!

Is it possible to change the captions language of HTMLEditor?

How can I do it?

Many thanks.


Bye.


How to change the date format using AJAX calendar control tookit

  

I want to desplay date like (21-Sep-2010)



how to change visible of control in java script

  

how to change the visible of control in javascript ?  


Change color when control is desable

  

hi

im applying different backcolor / forecolor for different controls. But when i set Enable property to 'false', the colors set to Gray. i cant change the colors. 

eg: i cant change the forecolor of check box, radio button, backcolor of combo box.

can v have different color when the control is disable? im using c#. pls help me.

/kevin


Programatically change a TwoWay bound control, change wasn't commited.

  

Hi,

I had a TextBox bound to a single DataColumn with TwoWay mode,
then checked if it works by manually changing the text.

But when I programmatically changed the value of TextBox.text, the DataColumn wasn't changed.

Here is a snippet, anything wrong?

    <TextBox Name="tbName" Text="{Binding Path=DataColumn1,Mode=TwoWay}"/>
    <Button Name="Change" Click="Change_Click" Content<

login form change ASPNETDB.mdf

  

Hi guys.


i have a database with username and passwords. Can anyone please help me showing how can i make the login form point to my database and do not create a new ASPNETDB.mdf file???I am thinking about using a web service to check if the user is present (is that a good idea??).


Change search scope for SharePoint search control at runtime

  
I have a requirement where based on a users SharePoint group, there search should be for a specific scope. My question is, is it even possible to change the SharePoint search box to use search a particular scope at runtime?

Here is my new control code i couldnt make it so if i change the control size on form1 designer so i

  

I have two major problems.

1. After dragged the control to form1 designer when im on form1 designer i dont see anything in the control only when i run my program. I thought ill some kind of preview or what i painted in the control ill see it on the form1 designer before i run my application.

2. On form1 when i manualy stretch the size of the new control on form1 designer to be bigger or smaller the things i painted dosent fit i thought the way i created the code in the control code it will keep its size arroding to the size changed ill do in form1 designer but it dosent.

 

So here is the code of the control and form1 can someone help me with this two problems show me the correct code?

 

First the control code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DannyGeneral;

namespace My_Diet_Control
{
   
    public partial class My_Diet_Graph_Control : UserControl
    {
      
        int x_axis_lenght;
        int y_axis_lenght;
   &

Here is my new control code i couldnt make it so if i change the control size on form1 designer so i

  

I have two major problems.

1. After dragged the control to form1 designer when im on form1 designer i dont see anything in the control only when i run my program. I thought ill some kind of preview or what i painted in the control ill see it on the form1 designer before i run my application.

2. On form1 when i manualy stretch the size of the new control on form1 designer to be bigger or smaller the things i painted dosent fit i thought the way i created the code in the control code it will keep its size arroding to the size changed ill do in form1 designer but it dosent.

 

So here is the code of the control and form1 can someone help me with this two problems show me the correct code?

 

First the control code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;<


danieli

How do I change application database from ASPNETDB.mdf to my own

  

I am using Visual Studio 2008 Express.

I did this simple test:

I created a new Web project with a simple page that has a Log In. There were no databases in App_Data.

I used the configuration tool to create a Role and User.

I refreshed the project folder and behold AspNetDB.mdf has appeared in the App_Data folder.

I have checked the Web.Config file and there is NO Connection string to this database.

So how do I move the Roles/Users application data storage away from AspNetDB.mdf to my own database ??!!




how do I change BORDER COLOR for a TEXTBOX (and any other winform control) in a windforms app in VB

  
Does anyone have the VB code to change  border colors for winform controls such as a textbox?

The Accordion Control change font controls

  

Hi, I use an accordion control that contains some aspnet control inside. 

When I collapse the accordion control, all of aspnet controls include labels or textboxes change the font to another differnt, what can I do.


There is the code:

<cc1:Accordion ID="Accordion1"  Width = "100%" runat="server"  FadeTransitions="True" SelectedIndex="0" TransitionDuration="300"  HeaderCssClass="accordionHeader" ContentCssClass="accordionContent">

            <Panes>

                <cc1:AccordionPane id="AccordionPane1" runat="server" >

                <Header> Datos Generales de la Póliza</Header>

                <Content>

                         <asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="8pt" CssClass="labelFormat"

                               &nb

Categories: 
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