|
You should go with the .net3.5 bcoz there is inbuilt ajax n linq topics which provide u a great help.
this is my personal exp.
|
|
|
|
|
Hi,
We are building an ASP.NET application and in that we need to display Student’s information in a Grid.
Now our requirement is that we need to do Add, Delete, Edit and also Rows REORDER (by Dragging and Dropping rows) student’s records through that Grid.
Is it possible (All 4 functionalities mentioned above)? If so would you please let me know any reference link/tutorial?
Many Thanks,
Regards.
modified on Friday, October 23, 2009 2:41 AM
|
|
|
|
|
Yes, it's pretty easy. There's events for adding, deleting, editing and sorting. It's all in the documentation. The GridView is the class you need to use.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Hi all the lovely people out there,
I am just a beginner in Asp.net.
I have a page which has a login link.
When i click the login link it pops up a small window where he can login.
But after successful login I do not know how to refresh the original page and change the login label to logout.
Can you guys help me out?
|
|
|
|
|
You can write javascript in a popup page to refer to the original page and call methods in it. I used google and quickly found this[^]
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks Man for your time.
Also, can AJAX capable of doing such stuffs.
|
|
|
|
|
xbiplav wrote: Also, can AJAX capable of doing such stuffs.
No, of course not. Not without doing it in a convoluted and wasteful way. AJAX lets a page ask the server for data without doing a full refresh. You'd have to have both pages polling with AJAX to find out if the event had occured. That would be a total waste of time.
Just because something is sexy for the moment in the dev world, does not mean you should invent ways to use it when it's the wrong tool for the job. The ASP.NET AJAX library DOES do some stuff that has NOTHING to do with AJAX, so it may have something that will help you, but only because it's become the home of any sort of javascript coolness that MS can come up with.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thank you once again.
Also i want to ask you one last thing and I am sorry for my ignorance.
My question is that, like in windows programming we can change the state of Form1 from Form2 by creating objects and passing messages.
Similarly like in web, is it possible like we create an object of WebForm1, then pass this instance to WebForm2 and if we want to change an object's state of WebForm1(lets say a label text in WebForm1 to something) can we use that instance of Webform1 (from Webform2) and do that?
|
|
|
|
|
No, you can't. The web is stateless. Every postback creates a new instance of that page class, which is then destroyed when the page is sent. webform1 does NOT exist if it's not visible. There's nothing to interact with. You pass values between pages by putting them on the URL or storing them in the session. The URL way is far better, it creates pages that rebuild themselves and can be bookmarked, and does not use server resources. Sometimes, you do need to use the session tho.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thank u man. U seem to have good knowledge of web technology. I appreciate your time.
|
|
|
|
|
Glad to help It's customary if the answers helped to mark them with the 'good answer' button or the '5'.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Here you go..I gave you 5...Yayyy....
|
|
|
|
|
When ever you open a pop window , you can get the reference of the parent.
Once the login is successful, you cna pass a success indicator to the parent.
In the function where you might have called the pop up window, check for this indicator and then check the Text to Log Out at the client side using javascript.
|
|
|
|
|
Hi anumole,
I am sorry but I did not get it.
Even a pseudocode will help if you could demonstrate a bit.
Thank You!
|
|
|
|
|
Hi
I have an iframe which displays inside a pdf document, but when I display the page in a different screen resolution, say 800 x 600, the pdf document expands and overlays itself over other controls.
Is there away, to control the size of the iframe so it stays the same size?
Here is my markup
<asp:button id="btnAccept" runat="server" onclick="accept">
<asp:button id="btnReject" runat="server" onclick="reject">
|
|
|
|
|
You need to wrap your code in a pre block for us to see it
only two letters away from being an asset
|
|
|
|
|
How can I create a templatefield in the code behind?
|
|
|
|
|
Hi all,
I am using windows authentication in my web application.
I use SqlRoleProvider for implementing role management.
After the authentication is done the navigation menu is generated based on the SqlRoleProvider.
The above Role management works fine if the user has a single role assigned to him.
How to handle the role management if the user is mapped against multiple roles.
for example : the role clerk has access to create screen and the role admin has access to approve screen
If a user is assigned role as clerk and admin he should be able to view both the screens. how can I achieve this.
Is there any way I can dynamically generate the navigation menu.
hi hi hi hi
|
|
|
|
|
I've done this in the past, but I never use the MS generated drivel, it always seems to end with hitting a brick wall unless you start by deciding your app will look and feel the way they decided it should. Perhaps you need to write your own permissions system ? It's not difficult.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi I have a problem here, i was try to deploy ASP application, every thing is fine in ASP buy only database connection sql server. How to connect sql database during deployments settings because i was trying using prerequisites but it don't work. Please help.
|
|
|
|
|
You mean you need to know proper connectionstring to connect to the database ??
For connectionstring you can refer to
here[^]
|
|
|
|
|
Mix Wheels wrote: i was try to deploy ASP application, every thing is fine in ASP buy only database connection sql server.
I guess you are talking about ASP.NET not Classic ASP.
If you are not able to connect database, please check the ConnectionString. Make sure Server Name given properly.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
I have some code in javascript, which i dont want to execute on page refresh.
How can i check that page is refresh using javascript
Thanks in advance
Yrishi
|
|
|
|
|
Page refresh means the page will be again retrieved from the server.
If one presses ctrl +f5 it will even remove browser cache and then load everything.
so if you want to restrict running a function on page refresh, it will automatically blocked on first run, as it would be unable to check if it is run first or refreshed.
One thing that you can do, is set a cookie in the browser after the page is loaded for first time, then from serverside remove the script when cookie is present.
|
|
|
|