|
hi,
i hav created an asp.net application using c#.It works fine in IE 6.0 but wen i open in mozilla browser it asks for a username and password why is it so?
wat to do 2 overcum it?
plz do reply immediately
zari
|
|
|
|
|
|
I have a dropdownlist server control on my page. Thers a text box on the page to which is disabled. The dropdownlist contains four options - Apple, Orange, Lemons, Grapes. I've programmatically set the the DropDownList in such as way that then Lemons are selected. the text box gets enabled else it gets disabled. Everytime i select Lemons, a post occurs. I order to avoid this im planning on using JavaScript. How do i add JavaScript. I realllly new to JavaScript so if you give me a simple code snippet, it'll give me a head start. What event would i have to write for DropDownList - OnChange?
|
|
|
|
|
|
Guys
I have two questions and i hope this wonderful world of forum will help me ASAP
a) I need some sample source code (preferably vb.net) for callback functionality of framework 2.0. E.g. Country-state dropdown list....
b) I would like to know all of your views/experiences on server controls...MS has released more than 100 server controls like DataGridView, FormView, DataListView etc....
Should we use this, i mean is it advisable to use for a site where load is too high. I always heard from different faces that all these controls are very heavy and we should avoid as much as possible. For our last project, we used data repeater control and build all the functionality like paging etc...it was painful…….
Can't we go for datagrid type of controls which provide lot of in built functionality....
Please suggest and keep in mind i am talking only for medium/bulky web sites...
Amit Gugnani
|
|
|
|
|
Hell Everybody!
I have set an error page in web.config file. this page fires a mail embedding last error (Server.getLastError()) and also url of error page. It is working fine but without error message. Can anyone suggest the better solution.
|
|
|
|
|
hi all
In Asp.net 2.0 i am developing i look some fantatic in UserControl
When i develop a application "Dynamically Loading User Control on a Webform"
i load usercontrols on function Load so All Event on UserControl run very good but i load usercontrols on function ___dopostback(On CodeBehide "Ex: i have a linkbutton when click it and it will load other UserControl" ) so Event on UserControl not run(Ex: in UserControl have button when click that button Respons.write("demo"); but it not run ) and that usercontrol immediate hide??
I dont userstand ??????
Why ??
Some body help me
|
|
|
|
|
i have created a web site using Login Controls of asp.net 2005.when i set up homepage as default
login pageit is giving resource not found.can any body help me,as i am new to asp.net
Thanks in advance.
|
|
|
|
|
make sure code behind now codefile and all reference are correct...
If you can post your code, may be i will point you in more correct direction...
Amit
|
|
|
|
|
I dont have any code behind.i have used asp.net membership concept.
|
|
|
|
|
yup, i know but can you send me that apsx code... )
|
|
|
|
|
<asp:label id="lblmess1" runat="server" text="Click Login Link to direct to login Page" font-italic="true" font-bold="true">
<asp:loginstatus id="LoginStatus1" runat="server">
<asp:loginview id="LoginView1" runat="server">
<anonymoustemplate>
<asp:hyperlink id="hplguest" runat="server" navigateurl="~/GuestPages/Guest.aspx">Guest and Member | <asp:hyperlink id="hplmember" runat="server" navigateurl="~/MemberPages/Members.aspx">Member |
<loggedintemplate>
You are logged in. Welcome,
<asp:loginname id="LoginName1" runat="server" formatstring=""Hello {0}."">
<asp:button id="btnchgpwd" runat="server" text="Change Password">
<asp:hyperlink id="hplchgpwd" runat="server" navigateurl="~/MemberPages/changepwd.aspx">
Change Password
Click this link to redirect to members page
<asp:hyperlink id="HyperLink1" runat="server" navigateurl="~/MemberPages/Members.aspx">Member's Page
<asp:hyperlink id="hplregister" runat="server" navigateurl="~/Register.aspx">Register
this is Homepage.aspx code
the below code is Login page.aspx.
<asp:login id="Login1" runat="server" onauthenticate="Login1_Authenticate">
<asp:validationsummary id="ValidationSummary1" runat="server" validationgroup="Login1">
|
<asp:hyperlink id="HyperLink4" runat="server" navigateurl="~/RecoveryPwd.aspx">Forgot Your Password?
<asp:hyperlink id="HyperLink1" runat="server" navigateurl="~/Register.aspx">Click here to get registered,for New Users
|
i am getting one morw error when i am entering login name n pwd it is giveing loggin error
|
|
|
|
|
Hi,
How can I get the URL full path of a file (eg image file) that is in the form: http://MyHost/MySite/Images/Product.jpg. I use ResolveURL function but it return a path without host name.
Thank you.
|
|
|
|
|
You can get the host name from the Request.Url.Host property.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
|
hi, my web.config file is like this
<system.web>
.......
.......
</system.web>
<location path="Default.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
Now if i use the <location > element as bove i get this error
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
However if i remove the location element my app works fine
Any help is appreciated,
Yojimbo
yojimbo
|
|
|
|
|
because you are crossing the app boundries....Location node is normally used to cross the boundries for example
you want to distinguish roles/authorization on basis of ordinary and admin user.
You can also replicate the same error
a) if you keep two confifg file in your project AND
b) remove location node details....
|
|
|
|
|
Hello,
I created the following SQL script to check if a record exists:
IF (EXISTS (SELECT LevelName FROM dbo.by27_Levels WHERE LOWER(@LevelName) = LOWER(LevelName)))
Return (1)
ELSE
Return (0)
And I also found in a web page another solution:
IF EXISTS(SELECT 1 FROM TABLENAME WHERE LevelName=@LevelName)
SELECT 1
ELSE
SELECT 0
- Which approach should I use?
- Why "SELECT 1 FROM"?
- And when should I use SELECT or RETURN?
All I need is to know if the record exists ... nothing else.
I will use this procedure on an ASP.NET 2.0 / C# web site.
I am not sure if this important but anyway ...
Thank You,
Miguel
|
|
|
|
|
Second approach; Select 1 is used to minimize the processor workload (there is no need to return the fields)
you could also consider:
SELECT count(*) AS Results FROM dbo.by27_Levels WHERE LOWER(@LevelName) = LOWER(LevelName)
|
|
|
|
|
hi friends
i have 5 textboxes(empid,date,intime,outtime,workingtime) and submittbutton
now i enter some integer value in the textboxes
now my query is
empid,date is already entered in database.i dont want enter same empid,date
how can i compared parricular empid,date exist or not.if that empid,date exists it will show error
thanks in advance
saravanan
|
|
|
|
|
Hi all
I have a datagrid, which holds item name, item price, and its image(all from SQL Server database), what I need is when the user clicks on the image, I need the (id) for the item to be carried to the new page where I want to show more details about the item (expiry date, ...)
Regads
|
|
|
|
|
Can someone explain when would be a good time to user Server.Transfer? Thanks.
- Robert
|
|
|
|
|
Hello Robert,
Assume you have two forms form1.aspx and form2.aspx. now you want all the controls of form1.aspx can be retrieve in form2.aspx, in this situation you can use form2.aspx.
Regards,
S Kumar
|
|
|
|
|
In 2.0 we have three options and all come with its +/-ve
A) Response.redirect
-ve : round trips, value can not be passed across pages
b) Server.Transfer
-ve : Loose browser history, but good for value pass and no round trip
C) PostBackUrl
New feature in 2.0 and in my views, you should use this only when you need to transfer from page a to b. Because in background it creates all the page events of page a ...
So use wisely and smartly...
Amit Gugnani
|
|
|
|
|
I will also post this in VB forum. I have a general question. I want to create a "webbased, interactive, and collaborative classroom learning tool". I believe ASP would be a good language for this. However, I also have a strong need to become proficient in VB. My application will be a type of question and answer game to be used in the classroom.
Here is my question; If I first build it entirely VB.net as a VB application, how easy is it to then move it to the Web using ASP?
You can tell from my question, I am not an expert in either or I wouldn't be asking. I know some VB but no ASP. I have six months to work on this so I am somewhat confident I can do whatever needs to be done.
Thanks,
Jinx
|
|
|
|