|
You problem is not clear. please rephrase your question.
|
|
|
|
|
I think I should start with showing you my code in the login page (I'm using prepared asp login component):
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
SmithChatDataContext data = new SmithChatDataContext();
var user = (from u in data.Users
where u.Username == Login1.UserName
&& u.Password == Login1.Password
select u).SingleOrDefault();
if (user != null)
{
e.Authenticated = true;
Session["ChatUserID"] = user.UserID;
Session["ChatUsername"] = user.Username;
Response.Redirect("SmithChat.aspx?roomID=14", true);
}
else
{
e.Authenticated = false;
}
}
}
and when I run the page from the Visual Studio, it goes to the login page, when I'm trying to login - sometimes it redirects me to the webchat as it should, and sometimes the link after authentication looks like that:
http://localhost:49786/Smiths/Default.aspx?ReturnUrl=%2fSmiths%2fSmithChat.aspx%3froomID%3d14&roomID=14
and I'm still on the login page. I don't know what is wrong.
Anyway, I tried to deploy my application using IIS, so I followed the tutorial which I mentioned about before, and my login page is accessible (http://localhost/Smiths1/Default.aspx) However, after authentication it stays on the login page and the link again looks like that:
http://localhost/Smiths1/Default.aspx?ReturnUrl=%2fSmiths1%2fSmithChat.aspx%3froomID%3d14&roomID=14
|
|
|
|
|
I think it is redirecting to default page because
it is not finding SmithChat.aspx page on it's path.
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
try this
Response.Redirect("SmithChat.aspx?roomID=14", false);
|
|
|
|
|
Thanks, but I've tried that already. It's not redirecting anywhere at all when this boolean is set to false (stays on the default.aspx). I still can't figur out what's wrong
|
|
|
|
|
I have an ordering site with a requirement where I need to allow a user to upload a file and while that file is uploading, allow them to continue on in the page flow. On each page, I wish to be able to check on the status of the file uploading and provide feedback to the user on the status of the upload, such as a progress bar.
I'm looking for ideas on how to begin a file upload and then allow for page navigation without ending the upload. ASP.Net / AJAX are good to use, but not Silverlight
|
|
|
|
|
Interesting problem. The first thing that comes to mind is to use an iframe for the navigation so the file upload is taking place in one page while other pages are displayed in the iframe.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Not a bad idea in general, but unfortunately won't work for my purposes. We cannot place the main page content into an iframe for navigation, it could create a lot of problems for us.
Any other ideas?
|
|
|
|
|
As I'm sure you know the difficulty is keeping the uplaod active while navigating to another page. The thing the pops to mind (pun intended ) is a popup window to handle the upload, however that could be blocked by browser settings, etc.
Although its just a variation on the the same idea you could use ajax calls to refresh the content.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
What if you just open a new pop window and allow the users to upload the files in the popup window
For whowing the progress... There are some solutions for that, just google it
Alexei Rodriguez
|
|
|
|
|
I have an application built using classic asp. I built a page using asp .net (C#) and need to retrieve parameter values passed from the asp page.
Some of them are working - when I use code like MyControl = Request.Form["cmbDepartmentID"];
But for unknown reason - the others are not working.
So, I tried to create a Session object in the asp page, and retrieve it in the asp.net.
In the asp for example - Session("Param") = value
And in the asp.net - MyParam = Session["Param"].ToStrng();
But it doesn't recognize the session object.
What is the way to do it?
The asp page is a huge mumbo-jumbo of vbscript, javascript, html etc. that I don't follow the flow clearly. But I know querystring is not an option here.
Thanks.
|
|
|
|
|
ASP and ASP.Net do not share the same session on the same server by default. Microsoft has a way to implement session sharing[^] but I don't think a lot of people have had good experiences with it.
Have you done any debugging to output all of the Request.Form items to see if they are being posted? I can't remember if Request.Form in ASP.Net is case sensitive or not.
|
|
|
|
|
Hi Gray,
Yes I tried outputting all of them, and some are not being passed to the asp.net. Thats why I can't retrieve them. When I did that - I used the same case wording.
I could try the Session sharing technique you pointed to, but it looks like overkill.
I'll go back and dig further - and let you know.
Thanks.
|
|
|
|
|
|
Hi All,
I've designed a crystal report with a subreport in one of the report footer section. I wanted to print the subreport in new page so I select "New page before" option for that section also to avoid printing a blank subreport I select "Suppress if blank " option also suppressed the blank subreport.
Now section is getting suppressed for blank report but a new page is being added into my report.
Does anybody know how to avoid this situation?
Please help me it's very urgent.
Hope I've cleared my point.
|
|
|
|
|
Put a boundary (with some color and style) to check what's causing the report to extend to new page. It might be because of some extra space (even 1 inch or less) , new page is getting added.
Putting colors/style will help you in finding the reason and resovling it if possible.
|
|
|
|
|
Hi Sandeep,
First of all thanks for ur reply. I've already checked the report like that but sub report is completely suppressed. the new page is only showing the header and footer of the page nothing else
|
|
|
|
|
What do I need to do to put a web service inside an existing asp.net web site?
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
If your web service is already hosted then
you do not need to put web service inside
asp.net project.
Just add web reference of it and use it.
If you want to add web service in your web application then
add it as existing web service application by right clicking
on your solution and clicking on "Add->Existing Project".
Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
You misunderstand. The web site is already deployed. I want to add the web service to it. I tried just adding a folder to the web site and copying the web service into that new folder, but I'm getting web.config collisions. I don't have permissions to alter the IIS server instance, so I have to be able to add the web service in this manner.
Can it be done, and if so, how?
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Not sure you can mix environments like this, I've certainly never seen it set up.
You're in a bit of a hard place really, I would've tried adding a sub-application but if you've not got access to IIS to set it up as an application, kind of up the creek. Pretty sure your only recourse is to push for a second site.
|
|
|
|
|
How did you add it in your project? I think mostly what needs to be done is just web.config updates to add the proper handler sections to tell it how to talk to the asmx. And I thought VS did those by default. I know you can mix and match in the same project. Does it work in your test and development environments?
|
|
|
|
|
Well, the web service is a sub project of the silverlight application's solution. I figured I could just drop the web service stuff into its own folder and be golden, but I guess that ain't how it works.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hi everyone ,
i 've come up with strange error hope you guys can sort it out
i have used AjaxToolkit:AutoCompleteExtender which calls a web method to get string array. Everything was working fine as its populating all the data.
But the issue arise when web method is returning value in a string array like
arr[0]=1-12-100
arr[1]=1-10-100
the value im getting in the AutoCompleteExtender is the subtract of the result like
arr[0]=-111
arr[1]=-109
Why is it treating it like numeric and doing calculation when the return type is actual an string
Is there any solution to it, As per my knowledge i think its has to do sth with serialize and deserialize thing
|
|
|
|