|
Response.Redirect("aaa.aspx",false);
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I guess, the question is "how to redirect to the requested page instead of default page after login?"
- Regards - J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
|
|
|
|
|
What is wrong with the answer i gave ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
It doesn't help at all. He wants his page to redirect to the login, and then whatever page the user went to, it goes back to.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Try To add the code
in
protected void Login1_LoggedIn(object sender, EventArgs e)
{
Response.Redirect("yourPage.aspx");
}
|
|
|
|
|
check for Request.QueryString["ReturnURL"] != null
to redirect to the requested PageURL
if (Request.QueryString["ReturnUrl"] != null)
{
Response.Redirect(Request.QueryString["ReturnUrl"]);
}
else
{
Response.Redirect("default.aspx");
}
- Regards - J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
|
|
|
|
|
I would recommend to use Server.Transfer from aaa.aspx.
|
|
|
|
|
Thank you all for your response.I got idea from the answers.
|
|
|
|
|
All The Best
|
|
|
|
|
Yes. This is cool. But seems that you gave me "Bad Answer". Is there any reason for that.
I think if you are in a page already you dont need to Redirect again.
|
|
|
|
|
sorry again
but aspxcombobox(for Developer Express) has not any DataSource ?
|
|
|
|
|
|
Hi,
In my website when users are downloading their Microsoft office 2007 files like the ones with .docx , .xlsx,.pptx extensions they are getting downloaded as .zip folders.This problem is happening only in google chrome browser.Thanks in advance for any suggestions and solutions.
Regards
jophin
|
|
|
|
|
Sonds like the browser is zipping them. I doubt there's anythign you can do about it then.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I think the there must be problems with filename...
I have downloaded lots of files in chrome and never found such issue.
|
|
|
|
|
How can I change the date type of a textbox in a Formview?
Thanks.
|
|
|
|
|
What do you mean ? A text box contains text. You can put a date in there, but only by rendering it as text. Your question makes no sense.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I know. At the moment the text box contains a date rendered as text, but it is a date field in SQL DB. At the moment the format is "date time" and I want to change it to only "date".
|
|
|
|
|
MrRhodos wrote: and I want to change it to only "date".
CG Is Correct .!
Please try To ask the Question In Brief..!
It Is Nothing to do with TextBox .In PageLoad.You Have to change the value of Date From Db and convert it into Your Fomat and Display it in TextBox
|
|
|
|
|
Now we are getting somewhere.. You understood my question.
I am a beginner, so you could please tell what kind of code I need and where I have to put it?
I guees it is to be placed under scripts and look a bit like:
Protected Sub ProjektstartdatoTextBox_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
::code::
End Sub
Thanks for your help.
|
|
|
|
|
Use The Database query for retriving the data Fron DataBase as a date format
CONVERT (VARCHAR,u.[dob] ,101) AS dob
And Bind the Data to the Textbox in the FormView
Like
<asp:TextBox ID="DateOfBirth" runat="server" Text='<%# Bind("dob") %>'></asp:TextBox>
and in pageload Bind the Source
MrRhodos wrote: I am a beginner
Please try To Read a Good Book For FormView Control
|
|
|
|
|
It was much easier than that, but thanks for your help.
<%# Bind("dob","{0 }") %>
And you are right about the book, it would probably help a lot.
|
|
|
|
|
MrRhodos wrote: And you are right about the book, it would probably help a lot.
But, you get to keep your job either way, so you're not going to bother learning ASP.NET, right ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
MrRhodos wrote: How can I change the date type of a textbox
Plz Can You Explain In Brief..!
|
|
|
|
|
Convert your date to proper format which is understood by sql server.
use
DateTime.Parse
I think it would be better to understand your requirement if you could make more clear sentence.
|
|
|
|