|
hi friends,
In my application, in one aspx page contains only .aspx.cs file no aspx page in that. Even when i try to run that page it takes to directory list and says that that aspx page is set as forbidden. Please anyone tell me what is the problem. Because I am new to asp.net I dont know how to resolve it.
Prya
|
|
|
|
|
Hi,
I am getting errors when I try to add a new user through the ASP.NET COnfiguration Tool. I'm not sure what it means, and how to fix it. Can some please help??
My SQL membership provider:
<membership defaultProvider="JdssSqlMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add
name="JdssSqlMembershipProvider"
applicationName="JDSS"
connectionStringName="JdssDatabaseConnection"
description="Stores and retrieves membership data from the local Microsoft SQL Server database"
enablePasswordReset="false"
enablePasswordRetrieval="true"
passwordFormat="Encrypted"
type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>
And the error is:
An error was encountered. Please return to the previous page and try again.
The following message may help in diagnosing the problem: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.Administration.WebAdminMembershipProvider.CallWebAdminMembershipProviderHelperMethodOutParams(String methodName, Object[] parameters, Type[] paramTypes) at System.Web.Administration.WebAdminMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) at System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() at System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I hope someone can help.
Regards,
ma se :->
|
|
|
|
|
How can I dispaly network drives in asp.net(with C#) appliation? How to set authorization to folders in a drive from asp.net?
Thanks,
Bhasker P
|
|
|
|
|
HI
Guys , i know , there are three types of authentication in ASP.Net windows,Form and passport ,what are the purpose of these authentication ?
|
|
|
|
|
|
I have a dropdownlist that is put on a panel. When I scroll the page up & down the control vanishes & reapperars on putting the mouse over the location. How can I fix this problem?
Could somebody help me pls.
Thanks in advance
|
|
|
|
|
I'm trying to make a list of documents that open in another page, i tried 2 ways: using hyperlinks within a datalist and using linkbuttons within a datalist, when i bind to datasource using linkbutton the document opens with the parent page not a new page, but when using the hyperlink with a target window set a dont get links
10.10
|
|
|
|
|
Do you want to open a popup window to display the document? If so the use javascript window.open() function.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi
i wanted to show photo album slide show on web page Please tell which are the possible ways for it and which is the best
|
|
|
|
|
|
Yes
My query is not specific .. i have imgages store at the server.Now i want to show a simple slide show of those images
|
|
|
|
|
Hi,
I would like to install VS 2005 and sql server 2005 to practise developing ASP.NET codes.
The company policy prevents installation of IIS on individual machines.
I have tried installing sql 2005. The installation gives a warning about IIS that some features of sql 2005 do indeed require IIS. AND do not get the management Studio window.
My question is:
Since IIS is not allowed to be installed then can I still reach my objective? (Installing ASP.NET 2.0 and sql server 2005)?
Thanks
|
|
|
|
|
You have to have IIS in order to run ASP.NET 2.0 applications.
What kind of company would like you to learn something, but does not allow you to install the tools you need for that?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi,
VS 2005 does allow you to create ASP.NET pages without IIS. The pages are served somehow through Visual Studio. If you create an ASP.NET page and run it in debug mode, it will run. I know that some parts of SQL 2005 will also run without IIS, but if you find that you need a feature that requires IIS you could have your IT department install it on a server for you. IT would need to set up the proper permissions for you, and set up the databases, but you can then connect to the database remotely through a data provider on your ASP.NET page.
|
|
|
|
|
Hi,
I am trying to access an image from the server, it is visible in the browser, but if i try to provide any querystring parameters the url defuaults to something else, i wanted to know what could be the reason for this behaviour.
e.g.
when i try to access
http://server_/Images/Img01.jpg
works
but
http://server_/Images/Img01.jpg?xyz=1
doesnot work
pls advice
Regards,
Sivaprasad
|
|
|
|
|
My code is not working for dispaly records when i click buttonNext.Correct me.
Dim dr As DataRow
For i = 0 To ds.Tables("Offices").Rows.Count - 1
dr = ds.Tables("Offices").Rows(i)
If dr.Item("office_id") = TxtOff.Text Then
i = i + 1
TxtOff.Text = dr.Item("Office_id")
End If
Next
i tried but not working.
kissy
|
|
|
|
|
What are you trying to acheive. Please try and explain the whole scenario
Mubashir
|
|
|
|
|
I have to access records from database into the respected textboxes.
Whenever i click ButtonNext it should show the records,for that i have given code as above.but it is not working,it showing only first record,it is not moving to the next row in the database table.
kissy
|
|
|
|
|
Kissy16 wrote: My code is not working
What is the Error it gives? Mention that one.
Kissy16 wrote: TxtOff.Text = dr.Item("Office_id")
dr.Item("Office_id").ToString() ' Should be Converted to string.
Check also in 'if' statement above for the same.
More Efficiently try using, ForEach like..
Dim dr As DataRow
For Each dr in ds.Tables("Offices").Rows
put ur code here
Next
I am not remember the syntax using vb.net . But u may use like this.
Regards,
Jay
|
|
|
|
|
it is not moving to the next record,stay back in the first record itself,no error.
kissy
|
|
|
|
|
Kissy16 wrote: If dr.Item("office_id") = TxtOff.Text Then
i = i + 1
TxtOff.Text = dr.Item("Office_id")
End If
What this code does? Why u r increment 'i' value ?
Keep in mind, 'i' is the variable in the 'for' loop.
Regards,
Jay
|
|
|
|
|
why i am incrementing that value is,when the user is suppose in record1,if he wants to see record2,that is second row,here i is the row value.
i am incrementing row value to +1 to go to the next row.
Dim i As Integer = 0
Dim dr As DataRow
For Each dr In ds.Tables("Offices").Rows
dr = ds.Tables("Offices").Rows(i)
If TxtOff.Text = dr.Item("office_id").ToString() Then
i = i + 1
TxtOff.Text = dr.Item("Office_id").ToString()
end if
next
This is my code for the ButtonNext,if it is wrong what should i do.i am retriving dabase records into textboxes.
Give me an idea,for moving to the next row and display.
kissy
|
|
|
|
|
For that purpose u have to keep track of Current Record. ok. (ie)What is the Currrent Row Index, that should be kept in a variable.
I believe no need for looping through all the rows every time. Better to use, Select.. Case.
I think, u have used LinkButton Control to navigate Prev,Next record. Set the CommandArgument propery to some text, for example ,say 'prev' for navigating to previous record and 'next' for navigating to next record.
In the Click event of either link button, write a single event handler. In that use Select ...Case method, to find the particular 'CommandArgument' and Perform ur operation.
Thats all the idea.
Regards,
Jay
|
|
|
|
|
Man the i variable is local and declared in the button event handler which is causing the problem,when ever u click the button i will alway be set to 0,this is the problem, it can work if u can make i static global variable, but it is better, if u save the value of i variable in View State for accessing the next record and check with the condition if the view state is empty then assign i with 0 , other wise assign the value of view state to i, hopefully this will solve ur problem.
|
|
|
|
|
Your for loop is not coded properly.
Thanks & regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|