Showing posts with label stupid. Show all posts
Showing posts with label stupid. Show all posts

Saturday, March 24, 2012

Please help a very stupid person

Okay - so I admit I have low self-esteem and I don't know what I am doing and it is taking me about 15 years to get over being flamed for being such a nit at not being able to understand anything - so be gentle with me -

I have numerous ideas and business projects - I have Visual Studio 2005 - I even have a website I am hosting which I did an awful job (me not Microsoft - using the Trial Version of Microsoft Web Expression) - so please help me...now the trial version is over - more money to lay out - so I figure I will go with purchased copy of Visual Studio 2005.

I need to get a better site - tried Godaddy's Web Site Tonight - not flexible or customizable enough for me and what I want the site to do.

How do I get started using Visual Studio ASP/or whatever to build a website?

Then how do I build a template that I can propagate through the entire site - therein simply change the content and so on. Please help this whining sniveling empty-headed "wannabe" coder? I am lost.

Thank you in advance for any morsels and tidbits of intelligible direction and knowledge which will help me succeed and make this happen.

The PokerScientist.

Damn . . . First off, lose the negativity.

2nd try using the learn link at the top of the page.

http://www.asp.net/learn/

Maybe try downloading a starter kit.

Everyone feels lost at times, but don't beat yourself down like that.

Good luck


Smile Thank you - will do -

PLease Help BAsic questions

I know The questions that I am asking are stupid.
I am new to asp.net and started learning only 4 days back.
Please help me

1. Where are page_init,page_load etc events executed?(at server or at cleint
)

2. For serverSIde Control (say Button or textbox control) how to call client side java script functions?

3. If we use Serverside validators where are they going to be executed?
When a ASPX page is requested,only HTML content is sent from server.This HTML do not have anything about validating info.So does that mean all serverside validators are going to be validated at server after the postback?
Please explian this

4. ADO.NET works with disconnected data.
So what happends or how ADO.net deals when some other application modifies the table in the database that is there as datatable in disconnected dataset.

Thanks in advance1. Everything inside <script runat="server"> will be in server. Since Page_load will be written inside <script runat="server"> then it will be executed in server.

2. You can use attribute add if you are using <asp:Button> tag
Example,

BntDelete.Attributes.Add("onclick","return confirm('Are you sure you want to delete?');")

or if u use html control then

<a id="DeleteBtn" href="http://links.10026.com/?link=#" onclick="return confirm('Are you sure you want to delete?')" onserverclick="DeleteBtn_Click" runat="server">Delete</a
3.Validation controls perform both on client side and server side. You can disable clientside by using EnableClientScript property

That's all I can anwser u
1. page_init etc. are all executed on the server. Everything is done on the server other than javascript functions you have put in the page.

2. not sure on this one, I know you can just write the javascript into the page and I think you use the attribute field of the control to associate it with the functions

3. All validators are executed on the server, I think its somewhere after the Page_Init but before the Page_Load method. You can also call Page.Validate to run all the validators and the results of these are checked with Page.IsValid (for all validators) or ValidatorName.IsValid (for specific validator). Also if the user browser is IE javascript code is also written to the page so the validators are also run at the client side. This can be turned off by setting the validators EnableClientScripting attribute to false.

4. I guess it just deals with it :-) (don't know really, never had a problem with it)
for #4:

that would be a concurrency issue, probably the best thing to do is check the contents of your disconnected table against the database and notify user if it has been changed so they have the option of overwriting the database or canceling their changes.
Hi

Thank you very much for your reply

For Q3 ,you said we have to use bdelete.Attributes.add.....
This code is going to be executed only at the server.
So its aggain going to server and comes back and executes the client script.
So is there any way that executes the client script without going to server.

thanks in advance
I guess u mean q2.

for BntDelete.Attributes.Add("onclick","return confirm('Are you sure you want to delete?');")

It actually create a client script on the <input> tag. So when user click on the button...it is actually on client side. You may change the second argument to call a javascript function name.

Hope u understand.

Friday, March 16, 2012

Please help me, and close the darn form!

Hi,
I've been here before and i'm still stuck with the same problem. I just can't close the stupid form.
I'm using microsoft's browser control on my aplication. I can open a new form when i click any link. That works great.

The BIG problem is when the javascript:window.close() is called from any page. The browser control closes, but i get stuck with the form it was on. I just can't close it.

Please help me. I've been to all kind of forums and still haven't found a solution.

Thanks.I think it has something to do with this bug. It looks like the WindowClosing event isn't beeing fired.

Can someone translate this into VB.Net.

http://www.codeproject.com/buglist/iefix.asp

Thanks.
I've never used the WebBrowser control, so I can't help there.

However, here is an onlineC# to VB.NET converter. It will convert the code provided in the article you referenced.

Hope this helps.
I got it. Thanks for your post "SomeNewKid2", but i didn't use that code. To confusing.

I was trying to use the windowclosing event and it didn't work. I found out that it work with the leave handler.
Like this:


Private Sub AxWebBrowser1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxWebBrowser1.Leave
Me.Close()
End Sub

This closes the stupid form also.
Stay well.