|
the same approach I have used in my project and found simple way to implement this. Cheers!!
Brij
|
|
|
|
|
Your opinion was helpful.
Thanks..
|
|
|
|
|
Passing the page that performed the redirect to your login would be quite easy. Just use a querystring.
e.g
default.aspx
String url = Page.Request.RawUrl;
Response.Redirect(String.Format(CultureInfo.InvariantCulture, "~/login.aspx?pp={0}", url));
login.aspx
if(Request.RawUrl.Contains("?pp="))
{
string previousPage = Request.QueryString["pp"]);
}
Once you have your value you could use the login control LoggedIn event
to redirect to you original page using the query string you have captured.
I know it's a chore but I heartily recommend getting a book on Asp.Net. Most beginners books will have plenty of information about this.
Good luck!JimBob SquarePants
*******************************************************************
"He took everything personally, including our royalties!"
David St.Hubbins, Spinal Tap about Ian Faith, their ex-manager
*******************************************************************
|
|
|
|
|
Thanks. Your instruction was helpful.
|
|
|
|
|
Hi all,
I'm not sure if I'm heading in the right direction on this, if I'm making things over-complicated then please point it out and point me in the right direction!
I'm writing a search filter for my website where people can refine their search results by adding/removing filters like on many other websites. Ebuyer.com springs to mind as a rough example of what I'm trying to achieve.
I'm currently creating the filter list as a webusercontrol so that it can be added to more than one webform if required. I want it to interact with it's parent page by changing it's properties and running a couple of public methods (all on the parent page).
How do I go about accessing the parent page properties etc? I have tried creating a reference to the page class in the webusercontrol, but it refuses to recognise it. I'm writing it in c#, does anyone have an example they could show me of how I should be doing it, I would greatly appreciate it, or at least a reference to a good comprehensive article, as so far what I have found has led me down dead ends.
Any help would be appreciated.
Thanks
Mark
|
|
|
|
|
Sorry friend,
Your post is too long and still i am not clear,
According to me you want to make communication between User Control and Container Page, Right?
Then you need to user Properties to Access Control from Page.
And Events (You can pass any value as Event Argument, it can be a class) define in UserControl to communicate with the page.
Hope this might be useful to you.Best Regards,
Chetan Patel
|
|
|
|
|
how can i connect to sqlserver compact edition in web application ?
|
|
|
|
|
When i select 2 then nothing happens when i select 1 again then error msg fires for a while and disappears why it is so?
<div>
<asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True"
AutoPostBack="True">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem Value="2"></asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="DropDownList1" Display="Dynamic"
ErrorMessage="RequiredFieldValidator" InitialValue="1" SetFocusOnError="True"></asp:RequiredFieldValidator>
</div>
|
|
|
|
|
In the example above you don't need the validator since the dropdown always has at least 1 value available so remove it in the safe knowledge that when you parse the results the selected value of DropDownList1 will always contain a valid value.Tychotics: take us back to the moon
"Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars."
H. G. Wells
|
|
|
|
|
i want to bind crystal report in datalist ........so plz help me
|
|
|
|
|
Hello,
I have put my web project (which uses reporting services) into the web server for testing.
All works fine on th elocal machine but on the server I get this error when trying to access the reports:
The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are insufficient for performing this operation. (rsAccessDenied)
What do I do to solve this please?
thanks
|
|
|
|
|
I have now done this:
go to the property tab and create a new group with name
BUILTIN\Users
And in the role assignment tick browser role
Now the error is :
An error has occurred during report processing. (rsProcessingAborted)
Cannot create a connection to data source 'dsDB'. (rsErrorOpeningConnection)
For more information about this error navigate to the report server on the local server machine, or enable remote errors
Any thoughts please?
thanks
|
|
|
|
|
Solved by using the correct user in sql server logins.
Thanks
|
|
|
|
|
hi
i am using table {page-break-after:always} in printing HTML page and it is working fine
but when i export the same report to word and print the word document the page break is not working.
Any ideas or is there another work around so if i have multiple reports to print each new report on new page
example
report1 on pages 1,2,3
report2 starts on page 4 and so on
|
|
|
|
|
Hello,
I have placed the web project (built in vs2008) into the DEV web server for testing...
virtual directory is also created.
After checking the asp.net version on the web server it seems only the version 2.0 is available and so when I browse to the site i.e. http://servername/site
then I get this error below. Should I put something in the web.config file to solve this issue?
It seems the error is to do with the reportviewer control I am using.
NOTE that the ERROR is on line 117
Any thoughts please?
Thanks
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 115: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
Line 116: <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Line 117: <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
Line 118: <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
Line 119: </assemblies>
|
|
|
|
|
This seems to be to do with installing the reportviewer into the Dev web server.
How do I do this because these dlls are present in my local machine where I have developed this web project in C:\Program Files\Microsoft Visual Studio 9.0\ReportViewer
whereas in the webserver I only see :
\\DevWebServer\c$\Program Files\Microsoft visual studio 8
\\DevWebServer\c$\Program Files\Microsoft visual studio .NET
\\DevWebServer\c$\Program Files\Microsoft .NET
to which folder do I copy the dlls to?
Thanks
|
|
|
|
|
This is now solved by copying the dlls into the bin directory of the project.
Thank you
|
|
|
|
|
Cool Cheers!!
Brij
|
|
|
|
|
MY opinion is 4
I want to check whether particular value for a column exists before inserting , for that i want to ask which one is recommended ?
1) Set the unique constraint in table field, and in data access layer throw error catch it in presentation layer , and check whether error number is 2626 and display duplicate message.
OR I Use
2)In store procedure use EXISTS before inserting and if their is duplicate found then raise error.
Or I Use
3) I create another store procedure for checking whether value exists for a field, call this store procedure in my BLL Before inserting , if duplicate found then raise duplicate exception in presentation layer catch and display duplicate exception.
or i usemodified on Friday, February 19, 2010 3:16 AM
|
|
|
|
|
According to me its better to use 2 option becuase you can do all you task in one go i.e in one procedure and you dont have to call database two time.
|
|
|
|
|
|
I am not able to see 4th option Cheers!!
Brij
|
|
|
|
|
if you want to check for User name in registration form then i recommended you to 3 where other procedure will call by ajax when you enter user name.
If it is not for registration then use 2.
|
|
|
|
|
|
Where is 4 option? I am not able to see it.
|
|
|
|