|
Most excellent, I am not quite there yet, but considering all of the annoying viewstate errors I am now getting (I appear to need the same machine key for both test sites) I am definitely getting farther than I was. I will update as soon as I get it figured out. Thank you again! This has been a huge help.
______________________
Oh Hamburgers!
|
|
|
|
|
The plot thickens. The page I will eventually have to call is written in JSP, which is of no immediate concern since the basic idea behind this requirement doesn't change, but here's where it gets interesting; the page I am calling uses JavaScript to set the cookies, and the page login immediately fails unless it's executed.
So I'm not only not back to square one, it's not even on the horizon right now. Gotta love legacy products...
______________________
Oh Hamburgers!
|
|
|
|
|
Hi,
Please suggest me the links for the best books or videos for ASP.Net MVC 4.
Thanks
|
|
|
|
|
|
|
I am starting to make my first steps in the asp.net world.
I run into something that wasn' t new to me, though its use in asp.net is something that to me seems totally different from what i knew before.
I'm talking about the "runat=server" clause. Remembering classic asp, vbscript, I learned that "runat=server" was used to instruct the web server to elaborate the vbscript code subject to the clause itself, rather than send it to the client.
In asp.net, it seems to be different. I read that it's used for "server side control" , that is, controls which are "run" on the server side. This is nonsense to me . How can a control be run on the server side, given that the server side obviously doesn't have a Gui (and if it has, probably it has nothing to do with the user session) ....? my suspicion is that a "server side" control, means a control which can be dealt with by a server side script or code behind snippet. But ... is this the right idea ?
I read tons of documentation and articles but it seems none of them wants to be clear about this subject. I wonder how the documentation can be so fuzzy ... don't these guys ever ask themselves such simple questions ? Do they always take things for granted ?
|
|
|
|
|
You are right, runat=server means the control is executed on server. Each control with such attribute is processed before page is ready to send to user and as a result only output html is visible for user, not the source code.
To be honest, I never thought about it in your way. It was always like that - if you want your code executed use runat=server. So it may be the reason why it isn't explained much.
--
"My software never has bugs. It just develops random features."
|
|
|
|
|
By using runat="server", controls are enhanced to enable server side processing.
It means, you will be able to access the control and its properties on server side too. Without runat="server", you won't be able to access the control on server side (code behind file).
It's not about GUI. It's about accessibility to the object and it's properties.
|
|
|
|
|
To elaborate on Sandeeps explanation a little more,
ASP.Net objects can be used on a web form, that uses combinations of just plain old HTML and ASP.Net Objects such as the panel control.
So you can do it 2 ways, 1 in straight HTML or 1 as an asp.net object
<div style="float: left;"></div>
or
<asp:panel id="panel1" runat="Server" ></asp:panel>
Now you can also create that object in code behind, or pure code
Dim panel_Container as Panel = new panel
with panel_container
.style.add(HtmlTextWriterStyle.float, "left")
end with
controls.add(panel_container)
I don't know what the exact description is of using runat="Server" is, but I know you need it when using system.web objects on the web form, which is a .aspx page. The server will convert that object to HTML, and send the HTML back to the browser.
So a Panel object is a set of div tags, a label is a span tag.
I came from vb and asp classic and went to asp.net, and thought that all the elements on a webform has to be a asp.net object, but over the years, I learned how to better manage my time and produce consistent looking products by keeping asp.net objects to a minimum now.
I just use straight HTML now, and only use asp.net object for things like master pages, or anything I need to interact with in code behind on the server side. I never us the object font attributes or colors anymore, and use CSS for that.
In my opinion, don't get too crazy using the asp.net objects in the beginning, and just use html and CSS. As you start writing more code, then you can go back and convert some HTML to objects when needed.
|
|
|
|
|
we know that default session timeout is 20 minutes. so i just like to know if some one stay idle for 20 minute then session will be timeout?
if some one works for 20 minutes then session will not expire ? if will expire then when expire.
i hard that session has sliding expiration nature. can anyone tell me how sliding expiration works. is it default behaviour or developer has to set anything for club up this sliding expiration with session.
please discuss the internal of session nature & expiration. thanks
tbhattacharjee
|
|
|
|
|
Tridip Bhattacharjee wrote: i hard that session has sliding expiration nature. can anyone tell me how sliding expiration works
Pretty simple really. If the user doesn't re-access the application before the timeout, their session will expire. Theoretically as long as the user keeps accessing the app before the timeout, the "clock restarts" and the session would never expire, as soon as they wait until after the timeout their session will expire. It is also possible for the application to close the session if needed.
Tridip Bhattacharjee wrote: Is it default behaviour or developer has to set anything for club up this sliding expiration with session.
This is the default, you don't have to do anything extra.
|
|
|
|
|
suppose if user interact with my site for 20 minute does it mean that session will expire also after 20 minute if user interact?
if session will not expire then what will be the new session expire time?
tbhattacharjee
|
|
|
|
|
If the user interacts within 20 mins, the session will not expire immediately. The session will last "forever" as long as they continue to interact less than every 20 minutes.
The session ends when:
1) The user fails to interact within the rolling 20 mins - it expires. (e.g. say the user logs in at 12:00, does something a 12:19, again at 12:38 and doesn't then interacts until 12:59 (21 minutes later).
2) The application closes the session programatically (e.g. logout).
3) Something crashes.
|
|
|
|
|
i try to know if user access any page just before session time out then what will happen...session will expire or not. if session will not expire then when session will expire in this situation. also tell me what will be session time out then?
due to sliding expiration nature the session time out increase....i like to know how much increase. 2 minute increase or 5 minute increase?
tbhattacharjee
|
|
|
|
|
Tridip Bhattacharjee wrote: i try to know if user access any page just before session time out then what will happen...session will expire or not.
I've just said at lease twice, it won't.
Tridip Bhattacharjee wrote: if session will not expire then when session will expire in this situation. also tell me what will be session time out then?
Sorry, I cannot explain myself any more clearly. It will expire the next time the user fails to interact before the timeout limit, this could be the first 20 mins, the next 20 mins, the 20 mins after or so on.
Tridip Bhattacharjee wrote: due to sliding expiration nature the session time out increase....i like to know how much increase. 2 minute increase or 5 minute increase
I cannot know, it depends what you are doing and why. 20 minutes is just Microsoft's best guess. My bank expires the session after 10 to reduce the risk of CSRF attacks, but this would be unacceptably annoying for most other sites.
|
|
|
|
|
0down votefavorite
Hi I have url "https://login.live.com/login.srf?wa=wsignin1.0&wtrealm=http%3a%2f%2fcorp.sts.microsoft.com&wctx=7b4cd04b-7dc2-4880-9f77-20c8c6ef64c4&wct=2013-03-11T06%3a54%3a42Z&whr=uri%3aWindowsLiveID". I want to get htmlcotent of this webpage as string. My Code Looks like this...
<pre lang="c#">WebClient wc = new WebClient(); string html = wc.DownloadString("url");
but when i see the html content in above string i get error Message "Microsoft account requires JavaScript to sign in. This web browser either does not support JavaScript, or scripts are being blocked. To find out whether your browser supports JavaScript, or to allow scripts, see the browser's online help."
|
|
|
|
|
Dear friend.,
I have three textboxes and one button. In that first text box for find the text and second for replace text and third for multiline text box contain one paragraph. When i click the button the multiline textbox para change according that two textboxes. plz help me to do.. thank you..,,
|
|
|
|
|
What have you tried so far? You have to be specific on what is troubling you.
To start with, follow the steps (for client side implementation - my preference):
1. Define a onclick button method A
2. In the method A, get textbox1 & textbox2 text. Now you know what needs to be replaced with what.
3. In the method A, get textbox3 text. You plan to replace textbox1 text to textbox2 text in this.
4. Define another method B, pass 3 parameters to it - fromText, toText, paraText
5. In method B, define a regex to replace in paraText - you got all the things you need
6. Once done, set the new text in the textbox3.
Try out!
|
|
|
|
|
Thanks for replying frnd., for example multiline textbox contain one para and the first textbox for find so i enter "is" and the second textbox for replace so i enter "are". when i click button, in the multiline textbox para has to change "are" wherever the word placed "is". i need coding for this using C#.
|
|
|
|
|
karthisomu wrote: r find so i enter "is" and the second textbox for replace so i enter "are". when i click button, in the multiline textbox para has to change "are" wherever the word placed "is".
And I explained and shared the steps for exactly this.
karthisomu wrote: i need coding for this using C#.
It does not work like that here. You need to make some effort, try out and post specific issue if you face any. Please try the steps I shared.
|
|
|
|
|
Hey guys,
I have a web application , and I want to make a space in it where visitors can leave me a comment on my articles , but I don't know how to do that , any idea ?
Thanks
modified 10-Mar-13 6:52am.
|
|
|
|
|
|
Hello
how the convert asp.net ( Written in English ) to different other language.
|
|
|
|
|
|
I am personally not a developer. However, I am leading an application project from the business user design perspective. As a result, I am not sure which forum or forums this would best to post a question to, and guidance on that is certainly appreciated, but I selected this forum because I know the developer we are considering working with is using ASP.NET along with jQuery and ADO.Net.
Anyway, my question is, we were hoping to developing an input screen for financial statement line items (such as monthly revenue, monthly cash balances, etc.) that would appear as rows, with an input box for the current months data, and then alongside those input boxes would be one or more columns (i.e. by "columns" I mean visually on a grid/matrix chart like a column in an Excel spreadsheet) containing the same monthly data for prior months (and or sums of multiple months) drawn from fields previously input (or calculated) and saved in the database.
The developer we are talking with has come up with a tools that allows a next best solution in which the months appear as rows and the line items like revenue are columns. However, he is not aware of any tools allowing the webpage layout the original way I described which is simply inverted. I believe this developer is highly knowledgeable and experienced, but even people like that do not always know of everything out there, and given that plus my curiosity to learn knew things, enjoyment of research, the challenge, and ultimately the preference for having it set up the way we like, I figured that I would take a shot in the dark and ask if anyone either knows of a potentially suitable tool or solution, or if anyone might be able to point me in the right direction of someone else who might know where I can look.
Thanks in advance for any help and guidance and I appreciate your time in looking over my novice question.
Best regards
|
|
|
|