|
If you have something to contribute, write an article instead of posting a bunch of undocumented code in the forum.
I looked a bit at your code, though, and I have some comments:
:: Your variable names are not very descriptive.
:: Your code should be indented: It's quite hard to follow as it is.
:: Why do you duplicate the code in Page_Load and btnLogin_Click?
:: Request.Browser.Cookies doesn't tell if the browser accepts cookies, it only tells if the browser is capable of accepting cookies.
:: Why on earth do you store the connection string in a session variable?
:: Your code is wide open for an SQL injection attack.
:: Why are you assigning string values to boolean variables, and why are you comparing boolean variables to strings?
:: You have Else If statements that checks the exact inverse of the If statement. That adds only confusion over a plain Else statement.
---
b { font-weight: normal; }
|
|
|
|
|
DJGuo wrote: It was by chance I found it in MSDN that says indirectly: "The file mscorlib.dll must be passed to #using in any program that uses Managed Extensions for C++."
This time I realized the file "mscorlib.dll" serves for the purpose of the Managed Extensions for C++
You have drawn an incorrect conclusion from what you read. The fact that the library has to be included when using a specific feature doesn't mean that the sole purpose of that library is to provide that feature.
The mscorlib library contains the base functionality of the .NET framework, like basic data types, arrays, IO, encodings, globalization, delegates, exceptions, Math, Type, etc.
A few days ago, I was mad trying to "escape from the trap of framesets", but nobody on Internet care to talk about it.
I think that you just failed to find the ones who do. It's a well known fact that the _top target will get you to the main window.
---
b { font-weight: normal; }
|
|
|
|
|
Do I have to prove my point?
On my first attempt to google[^] for a way to get out of frames, I found an abundence of sites that offered a solution. Eight out of the ten hits on the first page are right on the spot, and I think that there are quite some more in the following 17 million pages.
I wonder if you looked in a different internet than I, when you say that noone on the internet speaks about it...
---
b { font-weight: normal; }
|
|
|
|
|
Ok
Then I try it your way.
Is it much better writing this way?
Is this the way to talk?
I don't understand what it is that you are trying to say.
If you don't want me to read your posts, why do you reply?
If you want to share useful information, why don't you use the methods that I suggested?
You may very well share information with whomever you want.
When you share information that is wrong, though, I will inform you, and everyone reading it, of the incorrectness.
I don't understand what you mean about owning the website.
If I don't own the website, I can not do what I want?
Do I have to do what you want?
I'm not unhappy.
Mostly confused about your ways.
---
b { font-weight: normal; }
|
|
|
|
|
I agree with Guffa's suggestion that you take this code and write an article with it. In addition to providing the code, an article gives you a chance to explain what is going on with the code - why you wrote it the way you did, to solve which problems, and so on. It looks like you have a good start here.
|
|
|
|
|
I’m new to web development and asp.net and I have been having trouble developing some of the client-side script. I have created an aps.net project with two webforms that are in two frames in a window. The first webform has a datagrid and the second (main webform) has javascript that will updates it’s contents based on the selected value in the datagrid. I would like to execute specific script on the main webform when the user makes a selection in the datagrid. I would also need to send the datagrid’s selected value to the main webform. I can't figure out how to accomplish this and I can’t find any references about this process. Any input on this would be appreciated.
|
|
|
|
|
Is is possible to access an ftp server via ssl programatically especially when I'm uploading?
I know about the enableSsl property of FTPWebRequest but it doesn't seem to be working because it tells me that the Certificate given it was invalid even though I put it in the ftp server.
Still learning...
|
|
|
|
|
I am using asp. I will like my code to generate next button if my pageitem is more than 5.
it each each row it will only display 5 items. once the row ismore than 5 items, it iwll have next button which user can click onnext button. now my code is like this
<%
i=1
do until prodSet.EOF
if not i mod 4 = 0 then
%>
<% else %>
<%
ii=1
do until prodSet1.EOF
if not ii mod 4 = 0 then
%>
<%else%>
<%
end if
ii=ii+1
prodSet1.MoveNext
Loop
%>
<%
end if
i=i+1
prodSet.MoveNext
Loop
%>
|
|
|
|
|
Look for examples of paging. What you want is a limited form of paging, e.g. without buttons for first, last, previous and all the pages, only having the next button.
---
b { font-weight: normal; }
|
|
|
|
|
|
Hi,
I have a div element on one HTML page and I want to take the inner html of that div and insert it into an element on another page (the calling page).
This would be pretty easy to do w/ javascript if it all were on the same page, but I need to get the html from a different page.
How can I do this client side?
/\ |_ E X E GG
|
|
|
|
|
Hi,
Use Hidden field Ex., " place it between the tags . You can get it using Request.form("test")
Regards,
Manowj
-- modified at 2:35 Saturday 12th August, 2006
|
|
|
|
|
Manowj, your answer seems to assume the question author has access to the server of the page he wants to retrieve information from. This is explicitly contradicted by the author's original post.
|
|
|
|
|
hi everyone
may help me?
plz say me:
how can to print from form or page by crystal report in javascript or vb.net?
i want print my data in form with special format
plz mail for me
id: elias_sarband@yahoo.com
thanks
bye
|
|
|
|
|
elias sarband wrote: plz help me
This is a useless subject line. Your subject line should indicate in brief the problem you are having. e.g. "Printing crystal report from web page"
elias sarband wrote: plz mail for me
id: elias_sarband@yahoo.com
Do not ask for the answer to be mailed to you. It shows disrespect for the people who spend their time on the forum. They spend their free time helping out and they would most likely want everyone to benefit. Do not be so arrogant to think you are the only person in the world with your problems, other people may have the same problem and if you get an email rather than a response to the forum then that information is hidden from others who may come searching for it.
|
|
|
|
|
Hi, I can't make spaces at the beginning of a line in HTML using "writer" in visual .NET. I just want to write some text with a margin, is there a special way to do this?
ex:
1)Question
a)Answer1 <-- supposed to be more at the right side of the page
b)Answer2 <-- supposed to be more at the right side of the page
Thanks,
Oren,
-- modified at 9:44 Sunday 6th August, 2006
Oren
|
|
|
|
|
You can use CSS to add a margin:
In your CSS file:
.Answer { margin-left: 20px; }
In your html:
<p class="Answer">Answer1</p>
<p class="Answer">Answer2</p>
---
b { font-weight: normal; }
|
|
|
|
|
Hi all
I am new to this and found it by accident but was hoping that someone might be able to help me.
I am currently putting together a web page for a driving school that I am setting up. I want to include a page that has a calendar function very similar to that of microsoft outlook in the sence that the NEW customer would be able to click on a date and then a time and a new page opens allowing them to put in their details, credit card, address, name etc, thus booking the lesson.
In order to achieve all this I need the basic code which people keep telling me is simple but doesn't know how to do it.
Is there a calendar that is available that I can customise, my skills are very basic so it would have to be very close,or is it easier to start from scratch. A task that I know I could not do.
Hope someone can help
Paul
A Good Instructor Will Lead You To Places You Are Too Afraid To Go Alone
|
|
|
|
|
hi all,
how can i call a javascript function using an onClick event like this:
<input type="submit" value="Hi" onClick="alert('Hi')" />
and still keep my page valid xhtml transitional? w3c's validator says its not a valid attribute, and i want to keep my page valid xhtml transitional.
thanks in advance.
edit: it changes on Click to "removed", but it should read on Click, 1 word
-- modified at 8:40 Saturday 5th August, 2006
|
|
|
|
|
Change onClick to onclick.
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
How can i send data from local machine to my webserver on the internet using PHP?
I want to access data in the Local save to online webserver using PHP.
(Web service).
Do you have any link for tutorial?
thank you,
Hy Chanhan
|
|
|
|
|
Hi, I am not really sure how to implement this, but I need to do it, and it has to be performant.
What is the most performant way to access the cache from a classlibrary ?
Can you give me some links ?
I have to do it for monday and I have not a clear idea on how to make it
Anyway, thanks in advance!
PS: I don't know if it might help, but it's a class library that receives calls and sessions from a web app and has to manage them and do things with the cache.
-- modified at 20:13 Friday 4th August, 2006
|
|
|
|
|
i am trying to upload a file to an https server. when i use iexplorer (ms internet explorer) it works. when i try my app its not working, who would of guessed right. i have an http packet analyzer and everything appears the same as iexplorer. it looks like i am sending the exact same data as iexplorer is sending.
|
|
|
|
|
Hello everyone,
I am a complete noob at web programming. I have a text interface application written in Python which I would like to web-"interface". The application produces mostly graphs ... the text interface is object oriented, the user can define the curves that he wants to put on the graph, how the graph looks like and how the page looks like ( curve, plot and document object ). The configuration files are in xml.
So, what my web application should do, is:
to present the user with the posibility to edit different options
the language i will be using should be powerfull enough to allow me to group options in objects and be able to create new objects easily ( ex. you can have more curves on the plot ), should be able to easily work with xml files.
send the request to the application on the server ( and maybe be able to save request )
display the resulting image that resulted from the call.
Soooo, all I would need is some guidelines, because, since I am a noob, I don't even know where to start from and what to use.
Plase help and sorry for the noobness.
Cristian
|
|
|
|
|
Hi there,
I am trying to implement the autocomplete example from the link bellow:
http://www.codeproject.com/jscript/jsactb.asp#__comments
But although it works fine for a aspx (od htmp page), I have a problem implementing it in a ascx file (a user control I am using).
Since I am new in ASP.NEt, I could be missing something ,so please help...
|
|
|
|