SharePoint server 2013

Hi,

i have created custom sign in page for FBA.Here i passed querystring while redirect to custom sign in page.Here how to pass the querystring value in TextBox

here is the code below

<div class="signin_main_div" style="text-align: left">
                                    <%--<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="User Name" EncodeMethod='HtmlEncode' />--%>
                                    <asp:TextBox ID="UserName" AutoPostBack="true" runat="server" class="ms-inputuserfield userNameIcom" />
                                    <%-- <SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" Text="Password" EncodeMethod='HtmlEncode' /> --%>
                                    <asp:TextBox ID="password" TextMode="Password" autocomplete="off" runat="server" class="ms-inputuserfield passwordIcom" />

                                    <%--<input type="text" value="Email or Member Name" />
                                    <input type="text" value="Password" />--%>
                                </div>

Help me to pass the value into username textbox

September 4th, 2015 11:25am

Hi,

A solution is that you can apply custom JavaScript into your page to get the value of the query string and populate into the textbox.

Here is a demo about how to pass the value of the query string to a textbox would be helpful:

http://www.c-sharpcorner.com/UploadFile/cd7c2e/get-values-from-query-string-using-jquery/

Another similar thread about this issue for your reference:

http://forums.asp.net/t/1192853.aspx?QueryString+Value+and+the+TEXT+attribute+of+a+TextBox

Thanks 
Free Windows Admin Tool Kit Click here and download it now
September 8th, 2015 3:36am

Hi Arthi28,

Any update?

Thanks

September 13th, 2015 9:25pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics