|
I have been programming asp.net for 5 years, here is how I would answer.
1.If you are updating a record that has been deleted, then you haven't coded any record locking which is not good. I make database updates by calling stored procedures directly, I don't use the dataset. So if my stored proc didn't check if the record exists then it would execute but zero rows would be affected.
2. I've never tried that before because I don't put code in my aspx pages. However, it would only take a second to try it and see.
3. You have to set up a certificate in IIS. But you could just follow the instructions at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/secnetht16.asp
Just an aside, those are some terrible questions. 1. is bad because updating a dataset is terribly inefficient and should rarely be used. 2. Putting code in the ASPX page is not only pointless, it defeats the entire point of having a code behind page. 3. Most companies do not ask the developer to be responsible for configuring IIS. Setting up SSl is usually not the job of the developer. Not to mention that none of these questions gauge your intellect or ability. You have either come across those specific situations or your haven't. I would ask yourself if you really want to work at a company that asks such silly questions.
|
|
|
|
|
ToddHileHoffer wrote: 1. is bad because updating a dataset is terribly inefficient and should rarely be used.
I agree 100%, but my boss doesn't
|
|
|
|
|
I am is a new user of ASP.net, I create a web-page and I would like to know whenever a event happen when the client hits some thing in my page (ie: he/she mouse-click on any place in the web-page)
Can someone know how to do it? Thanks for any help
|
|
|
|
|
You would have to write custom javascript to handle the mouse click event and do a postback to the server. That makes no sense though. If you need to whenever the mouse is clicked you need to write a windows application, not a web app.
|
|
|
|
|
Thanks for the advice, I will try it!
|
|
|
|
|
Hi,
My Custom Validator DOESNOT want to execute Please help me.
Here's the code.. I am desperate..
Front-End
=========
<TD width="35%" colSpan="2">
<asp:TextBox id="txtUsername" tabIndex="18" runat="server" CssClass="smallFormBox" width="150" MaxLength="50"></asp:TextBox>
<asp:CustomValidator id="cstUsername" runat="server" ForeColor="#7C1E3F" Visible="False" ControlToValidate="txtUsername" OnServerValidate="CheckUsername" ErrorMessage="<Img border=0 width='10px' height='10px' src='../Images/Star.gif'>" tooltip="This username already exists" Enabled="True"></asp:CustomValidator>
</TD>
VB SCRIPT
=========
Protected Sub CheckUsername(ByVal sender As Object, ByVal e As ServerValidateEventArgs)
Dim ds As New DataSet
Dim objUser As New clsUser
objUser = New clsUser
ds = objUser.getUserNameDetails(Me.txtUsername.Text)
If (ds.Tables(0).Rows.Count > 0) Then
e.IsValid = False
End If
End Sub
|
|
|
|
|
I think the angle brackets in your error message may be confusing the parser... That's just an idea though.
|
|
|
|
|
Thanks for the reply.
I have found the problem after 1 week of debugging!!
You will never guess what is was...
...
...
I removed Visible="False" then it worked. I suppose visibility affects its functionality lol
|
|
|
|
|
Hi
guys can any one please let me know how to synchronize the information taken from ASp.NET calendar control with out look calendar control, please reply ASAP,thankx in advance for ur replies.
regards.
|
|
|
|
|
Hi Friends,
I have a very strange problem. In my asp.net form, I have one text box and two buttons. through javascript, I am setting focus on textbox. What I am seeing that cursor is blinking in the text box, and my first button also have focus. I want this focus should be on the second button but I am not able to do that. can somebody please help me on this. My code is as below:
<asp:textbox id="txt" runat="server">
<asp:button id="btn1" runat="server" text="Button1">
<asp:button id="btn2" runat="server" text="Button2">
document.getElementById('txt').focus();
Please help.
Thanks,
Amit
-- modified at 10:00 Friday 19th January, 2007
|
|
|
|
|
Edit the question and check the "Ignore HTML..." checkbox, so we can see it.
|
|
|
|
|
you can put the set focus snippet of code in the onload event...
<< >>
|
|
|
|
|
Dear friends,
I recently know about the Link-exchange. I make the Project of Link Exchange.
Just I want to know how we can send the mail automatically after some time duration to other, using Asp.net.
If anybody has the information about to send mail automatically through asp.net please help me by replying.
thank you.
Ravi Khimani
|
|
|
|
|
I want to know about the Hit-Counter. That is helpfull to user to know how many times the website is visited.
I get the Ready Hit Counters from the different Sites.
But I want the code related to hit counter.
If anybody knows about that please send me the code
or information related to code.
Please...
Thanks
nothing to say.
|
|
|
|
|
The premise is simple:
1. Read the counter value from DB/file/etc.
2. Optionally show graphics based on this number.
3. When a new session is created, increment the counter (optionally check the ip against existing ip addresses before increment).
4 .If incremented, save the updated value to said DB/file/etc.
|
|
|
|
|
I would like to add e-gold.com button that users could buy some items. code:
Enter Amount You'd like to Donate:
USD worth of e-gold
Then you click and complete transaction. But how do i write code, that ill be shure than item is paid. cause if they pay and close site, then my payment url is not going to be shown, databese will not be written and item will not be sold? how can i make sure that transaction is complete i ill have no problems?
|
|
|
|
|
You need to contact e-gold.com, whoever they may be and ask them about this.
|
|
|
|
|
Ok i found out how to resolve this.
I hava another question: in code you see variable PAYMENT_AMOUNT
It is posted to my site when you pay- but it is posted from another site- how can i fetch it and put it on screen?
|
|
|
|
|
dear friends,
Recently i know about new technology, which is only provided by a company (name don't know) of Banglore.
In that, when any one user open your site, the service (say program) will inform you and open your messanger to live chat with that user. You can do the live chat with that user.
if anybody knows about that service please reply on my mail id.
my mail id is : "frsravi.38@gmail.com"
Thank you.
Ravi Khimani.
Ravi Khimani
|
|
|
|
|
Hi,
I want to save the html page created by my ASP.net application on the client side, Is there any method or way to do it.
Can anyone help me out in this regard.
Ashok
|
|
|
|
|
hi all,
i have a problem in comparing date along with time Description as follows:
in my application i am working with Live auction so here i am storing time as string in database and retriving as string and converting into date and time it is working fine . but the problem is for example , the admin given timeof auction to day is At 4:00 clock to 5:00 clock for today is working fine but if admin did not given same time for the next auction because that auction date is going to change so the problem is tommarow at same time that auction is going to live so i need help in this how to compare date along with time . help me pls...
|
|
|
|
|
|
thanks and i will check tomarrow if any problem i wll send quries
Thanks and Regads,
Gurukiran
|
|
|
|
|
hi,
how ASP.NET file upload and download to FTP. please send the code.
hi, can you please help me to clarify this doubt.
|
|
|
|
|
FTP support is either via System.Net assembly or third party.
|
|
|
|