Jump to content

mvc .net question


sqlhelp

Recommended Posts

30 minutes ago, sqlhelp said:

Evaro consultant rasadu .. ilaga chesthe Value cannot be null or empty. Parameter name: url   error vasthundi 

 

public ActionResult Login(string URL)

        {

            string redirectURL = "";

            redirectURL = string.Format("{0}{1}", appHelper.URL(), URL);

            return Redirect(redirectURL);

}

 

ila change chesi chusa 

 

"Value cannot be null or empty. Parameter name: url " 

ne URL lo value emi ledu danni redirect cheyyataniki try chestunav. 

ne parameter URL, method ki sariga pass avvatledu or string.format lo call chese method lo  appHelper.URL() edo error unnatu undi

Link to comment
Share on other sites

30 minutes ago, telugumesh said:

appHelper.GetReturnUrl(Request.Url)) check chey

Request.url correct  vuntadi. app helper. Get return Url method post chey if u can? 

        public String GetReturnUrl(Uri RequestURL)

        {

            String RedirectURL = String.Empty;

            if (RequestURL != null)

                RedirectURL = String.Format("{0}://{1}{2}", RequestURL.Scheme, RequestURL.Host, RequestURL.PathAndQuery);

                return RedirectURL;

        }

Link to comment
Share on other sites

4 minutes ago, sqlhelp said:

        public String GetReturnUrl(Uri RequestURL)

        {

            String RedirectURL = String.Empty;

            if (RequestURL != null)

                RedirectURL = String.Format("{0}://{1}{2}", RequestURL.Scheme, RequestURL.Host, RequestURL.PathAndQuery);

                return RedirectURL;

        }

Chudadaniki correct ga ne vundi. Debug chesaava? How important and urgent is it to you? I can come to TeamViewer if it's really important to you? Msg me

Link to comment
Share on other sites

4 minutes ago, telugumesh said:

Chudadaniki correct ga ne vundi. Debug chesaava? How important and urgent is it to you? I can come to TeamViewer if it's really important to you? Msg me

urgent kani teamviewer lo connect kalenu 

Link to comment
Share on other sites

8 minutes ago, sqlhelp said:

        public String GetReturnUrl(Uri RequestURL)

        {

            String RedirectURL = String.Empty;

            if (RequestURL != null)

                RedirectURL = String.Format("{0}://{1}{2}", RequestURL.Scheme, RequestURL.Host, RequestURL.PathAndQuery);

                return RedirectURL;

        }

instead of host try Authority in case if you have port number it wont work with host 

Link to comment
Share on other sites

7 minutes ago, Popkatapetapotapulti said:

instead of host try Authority in case if you have port number it wont work with host 

Is it.  Good to know... @sqlhelp  bhayya Post all the three parameters values here... 

Link to comment
Share on other sites

13 hours ago, Popkatapetapotapulti said:

instead of host try Authority in case if you have port number it wont work with host 

asalu code issue motham start ayindi  port ni tiseyali ani return url nunchi .. I will debug and post the values.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...