|
One Way is that you send the url as query string, same as the dot net does.
for ex:
in page Home.aspx, if session expired, redirect it to loginpage as
Response.Redirect("login.aspx?ReturnUrl=Home.aspx");
and after logging in successfull send the user to Home page as
Response.Redirect(Request.params["ReturnUrl"]);
you can set addiotional checks in login page like.
string ReturnUrl = "Default.aspx" ; // the default page if user comes directly to login page.
if(Request.params["ReturnUrl"] != null)
ReturnUrl = Reuest.Params["Returnurl"];
Response.Redirect(ReturnUrl);
you can also use Request.UrlReferrer method.
|
|
|
|
|
|
is there any query that list all the tables in the database?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
SELECT *
FROM dbo.sysobjects
WHERE (xtype = 'u')
|
|
|
|
|
Navaneeth ,
it is giving error.
error is - cannot find the "c:\document and settings\abc\my documents\dbo.mdb"
My database is MS-Access
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
|
SELECT *
FROM information_schema.Tables
it worked for me so should work for u
|
|
|
|
|
I am using the FileUpload control for the client to upload his file and i want to be able to open that XLS file read it and dump the data in the SQL database. How do i do this?
|
|
|
|
|
when i publish my site ,it says Circular reference not allowed,although i fix this problem bt writing 'allowbatch=true' in web.config, but this problem is same when i publish my site, i have tried alot to find where actually the problem is, i.e where actually the controls are circled, is there any programmatic way to get rid of this problem so that i can publish my web. as i have many pages and controls. so having lot of problem finding the reference.
|
|
|
|
|
There's no magical workround for circular references. You have to track down the reference and deal with it.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi all
Can any tell me how to remove the border of a text box and combo box. My application is in asp.net and i am writing the code in VB.
For example the look should be like this NAME Prakash consider Prakash is in text box but it should look like what i wrote.
I tried like this but didn't work
TxtFname.BorderColor = Color.Transparent
TxtFname.BorderStyle = BorderStyle.None
TxtFname.ReadOnly = True
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
It s working for me..Where did you put the code in your application code behind?
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
actually the text box property should change when i click on a button so i cant write in page load. so wrote the code on the click event of that button. But problem is i have a background color in the table and text box is showing a white square background.
And what about combo box i think its not possible this way??
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
Hello to Every one,
i hav completed my project. i want that any user can access it over internet how it is possible....
Suggest me.
Thankiny You.
|
|
|
|
|
Hemant Garg wrote: i want that any user can access it over internet how it is possible....
Find a good service provider. Pay them and get server space and a domain name. Copy your files to the server. Type your domain name in addressbar. !!
|
|
|
|
|
I CREATED A WINDOW USER CONTROL AND ADDED IT'S DLL AS A REFERENCE INTO THE WEB SOLUTION.
CAN I ADD THAT CONTRO;L IN THE TOOLBAR IN WEB SOLUTION
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
what? I didn't quite hear you.
I don't believe you can use a windows control in an asp.net application.
|
|
|
|
|
if i have to add a control in the web solution toolbar then what should i do?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Right click on the tool box and choose Add/Remove Items. in 2005 I think it is customize tool box. Is it ?
|
|
|
|
|
If your web user control or web control is in the same solution then it will be displayed automatically in the Toolbox when you switch to design view on a form (default settings in options - this behavior can be turned off in the settings).
Sometimes it needs a clean and rebuild to work correctly however.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
There is a web page and user control in the solution.
after completing in the web user control.i opened the web form design page.then i saw the user control in the toolbar.but there exist no web control in any tab.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
BTW why r u creating a new thread continue in the same thread.
SSK.
|
|
|
|
|
yaa u can do it.
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
r u idiot??????????????????
Raghvendra Kumar Roy
|
|
|
|
|
why u say idiot my dear
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|