Link to home
Start Free TrialLog in
Avatar of MrTV
MrTVFlag for Thailand

asked on

c# how can webcon trol fill user name

c# how can webcontrol fill user name automatic  fill username(david) and password (1234) in the sign inform

in this case if it have user name teera it should delete it and fill david
<span class="formValue">
        <input id="msuLoginName" name="msuLoginName" value="teera" class="text rightEdge" style="width: 276px; height: 16px;" type="text">
</span>
    </div>
    <div class="formRow">
      <span class="formName">
         <label for="msuPassword">Password:</label>
</span>
      <span class="formValue">
        <input id="msuPassword" name="msuPassword" class="text rightEdge" style="width: 276px; height: 16px;" type="password">
</span>

Open in new window

Avatar of sameer_goyal
sameer_goyal
Flag of India image

Your question is not very clear. Please correct if I understand it wrongly.

You want to know how can you make a user control which includes a textbox for username and a password, automatically. right?

If yes, then you can use properties to do this. In your user control, you need to define public properties which you will populate on the Page_Load of your webpage which uses the user control.

Your property's 'SET' clause should then assign the value to the TEXT property of the textboxes.
Hope it helps.

If this is not what you were looking at, please clarify and i will try to help you out.
Avatar of Obadiah Christopher
Is it possible to set the textbox tht has a password property from code-behind. I dnt think so.
Avatar of MrTV

ASKER

Hi expert
   My job is go to website and post promotion of the shop I need to put user name and password then put my personal information the problem is auto complete pro gram not work well for my language My idea is use c# to fill some information and some in formation some and the rest i fill by myself so I just want some example to do this
ASKER CERTIFIED SOLUTION
Avatar of sameer_goyal
sameer_goyal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial