|
The CSS is being cached by your browser. Refresh it (F5 in IE) after a change (and save the CSS file) and you should see the changes.
|
|
|
|
|
Gentlemen;
I am working with an ajax control and i am facing a problem with Sys.Application.notifyScriptLoaded() that the line
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
is duplicated twice in the resource file downloded on the client although it isn't in the orginal one.
on the page the control is in an update panel added dynamically within an asynchonouos post-back.
what should i do to prevent duplication, and why this happend with me.
Regards;
Help people,so poeple can help you.
|
|
|
|
|
I have an interview for an ASP.Net position in a couple of weeks. I feel comfortable writing the code, but have had troubles with interviews in the past. Can you guys give me some insight on the common interview questions? Every time I walk into one of these it ends up like a Microsoft test, you get asked questions that are pointless when it comes to writing code, but they want to know that you know them. Those are the questions I want to see.
Cheers, --EA
P.S. I already looked up ASP.Net interview questions in Google and have looked those over, looking for things you personally have experienced
|
|
|
|
|
look;
in an interview they could ask you about the tecniques to used like
asynchronous postback/callback techniques.
javascript libraries.
chaching.
configuration.
and also you should know some Css style.
for me i was employd before I knew one of these but I knew some friends who helped me to get the job.
100
Help people,so poeple can help you.
|
|
|
|
|
|
They may want to know your experience with various technologies and techniques, such as AJAX, LINQ, Entity Framework. They may also want to know things related to (but not exactly the same as) ASP.NET, such as your JavaScript abilities (e.g., jQuery), CSS, and (this is a big one) SQL.
Though, the toughest interview questions for me to answer are usually not about skills, but about experience and personal opinions. For example, "what would you say your greatest weakness is?" One that I completely fumbled once was "why should I hire you?" I responded with something like "because I have all the skills necessary to do the job." Evidently, that was not the answer the interviewer was looking for (they probably wanted me to ramble on about how I'm passionate about technology while still being mindful of business needs, and so on). Another is, "what is a mistake you made at your previous position?" They may follow that up with something like, "if that happened to you today, what would you do differently."
While it is good to contemplate that stuff before the interview, trying to remember it all and recall it during the interview may be a mistake. It may be easier just to focus on what they are saying and put your thinking cap on rather than try to have every answer going into the interview. And when you don't know something, that's not the end of the world. No reasonable interviewer expects an applicant to know everything... feel free to miss a few things. If you don't make a big deal out of things, they may not either. For example, if you don't know an answer, maybe say "honestly I haven't had a chance to work with that yet, so I'm not sure." That shows that you have integrity and allows you to move quickly past the stuff that you don't know. That helps ensure those parts of the interview don't stick out in the interviewer's memory.
And let's not forget that there are all kinds of other parts to the .Net Framework (not to mention VB.NET and C#) which may be made use of while making websites and which they may ask about. Some examples include threading, resource management, collections, binding, built-in controls, custom and user controls, handling XML, web services, interop, encryption, caching, and file management.
They may also ask you about various patterns, lifecycles, and other aspects of ASP.NET programming. For example, they may ask you about MVC, MVVM, view state, session, cookies, ASP.NET page lifecycle events, ways to persist data across postbacks, URL components, and so on.
|
|
|
|
|
|
When I've conducted interviews its not always about what you know, its also about what you don't know and how you respond to it. If the interviewee starts stumbling or tries to make something up when they clearly don't know the answer that says a lot about their character and how they will respond to pressures of the job. If they respond with "I don't know" I'm reasonably confident they will not overstate their ability and put a project at risk in the future.
Sometimes questions are asked that don't seem to relate to the job at hand because there are other projects in the works and the interviewer is trying to see if you have some skills that could be of use later.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I liked your answer. +5
Help people,so poeple can help you.
|
|
|
|
|
|
Just learn the basics and do not hesitate to ask questions about basics. For example
- what is the difference between web server vs application server ?
You may know it but the point is: they usually ask the basic questions.
|
|
|
|
|
gus;
I am creating an ajax control called 'AsyncScedular ' that has a HashTable property. so, I decided to add the key-value pairs in a startup script block. this would be renderd as:
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(AjaxServerControl1.AsyncScedular, {"LogMethod":"WriteLog"}, null, null, $get("ctl00_AsyncScedular1"));
});
$find('ctl00_AsyncScedular1').prioritytable['ctl00$ContentPlaceHolder1$Button2'] = AjaxServerControl1.Priority.AboveNormal;
$find('ctl00_AsyncScedular1').prioritytable['ctl00$ContentPlaceHolder1$Button3'] = AjaxServerControl1.Priority.Normal;
$find('ctl00_AsyncScedular1').prioritytable['ctl00$ContentPlaceHolder1$Button1'] = AjaxServerControl1.Priority.High;
$find('ctl00_AsyncScedular1').prioritytable['ctl00$ContentPlaceHolder1$Button6'] = AjaxServerControl1.Priority.RealTime;
$find('ctl00_AsyncScedular1').prioritytable['ctl00$ContentPlaceHolder1$Button4'] = AjaxServerControl1.Priority.Low;
$find('ctl00_AsyncScedular1').prioritytable['ctl00$ContentPlaceHolder1$Button5'] = AjaxServerControl1.Priority.BelowNormal;
But when I execute the page I get a null refertence retuned from $find() function. but after the page get loaded $find('ctl00_AsyncScedular1') returns a reference of type object .
I am wondering if you could help me with this.
Help people,so poeple can help you.
|
|
|
|
|
Wait for the page to be ready before you try this. You can use the
$(document).ready method to hook into this here.
|
|
|
|
|
Sir;
do you mean JQuery?!!
Look at this[^]
Help people,so poeple can help you.
|
|
|
|
|
I do, and did it really need 2 exclamations as well?
|
|
|
|
|
Not in the ordenary cases, but i was surprised.
Actually, i hate JQuery, you should understand this.
100
Help people,so poeple can help you.
|
|
|
|
|
Ali Al Omairi(Abu AlHassan) wrote: Actually, i hate JQuery, you should understand this.
Why should I understand this? It's your life and your preferences. It has zero impact on me.
|
|
|
|
|
do you really think so?!!
I am sorry.. Iam not crying, it's just the rain;
Help people,so poeple can help you.
|
|
|
|
|
Suppose I have following table in my database:
Tbl_Persons:
Id Country Name
1 Australia Ben
2 Japan John
3 Korea Libby
4 Australia Raymond
I use following Query and bind the result using `DataTable` to a `Gridview`.
select id,Country,Name
from tbl_persons
where country='Australia'
In `gridview` I have two `Bound Columns` and 1 `template column`.
In template column I typically put an `ImageButton` and assign the `ID field` to `image button` using `Command Argumnet property`. And when user clicks on the `imagebutton` in the browser I'll get the `command argument value` in sever an do some operations with it.
<asp:GridView ID="GridView1" runat="server">
<Columns>
<asp:BoundField DataField="ountry" HeaderText="Country" />
<asp:BoundField DataField="Name" HeaderText="Name" />
<asp:TemplateField>
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server"
CommandArgument='<%# Eval("Id") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
As you know in runtime mode when user views the source of code in browser the values of `command argument` are not observable because they create in server. and user can't change the values using the browser and send the changed values to the server.
But `gridview` is server side an has post back. So I use `jquery` and fill `My gridview` with appending `tr` and `td` tags in client side.
For `ID field of my database` because I don't have `command argument` in client side I assign the `Id` of each `TD` tag equals to the `Id field`.
But the user can change the `Id values` in the browser and send invalid data to the server and this is a disaster.
This is piece of my code:
script type="text/javascript">
function BindGridView() {
$.ajax({
type: "POST",
url: "Default.aspx/GetNames",
data: "{}",
contentType: "application/json",
dataType: "json",
success: function (data) {
for (var i = 0; i < data.d.length; i++) {
$("#NamesGridView").append("<tr><td id="+data.d[i].Id+">" + data.d[i].Country +
"</td><td>" + data.d[i].Name + "</td></tr>");
}
}
})
}
</script>
So what can I do to prevent user to changes the values?
Are there any ways something like Command Argument in client side?
|
|
|
|
|
Sir;
I don't know why did you use jquery; you can do it easier using update panels[^]
Help people,so poeple can help you.
|
|
|
|
|
I don't use update panel because of it's speed. it's slow specially when I upload it in internet and the speed is slow.
|
|
|
|
|
i just want to refresh datalist in asp:panel. not want refresh whole page.....????
|
|
|
|
|
Hi,
You can use Update Panel Control. It is 1 of the ajax control already included in your ajax controls no other ajax kit is required for that
|
|
|
|
|
i m using update panel. but problem is that i have auto refresh on page after every 5sec. so i just want that only datalist refresh not whole page
|
|
|
|
|
I guess this link[^] will help you.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|