|
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.
|
|
|
|
|
Hi,
Why do you want to know the page is refresh, or what do you want to do?
If you just want to check the page is refresh, I suggest you creat a variable and change its value when the page is postback,
and use js to check it.
April
Comm100 - Leading Live Chat Software Provider
|
|
|
|
|
Thanks for your reply.
Actually I am using window.open method in my application.It is working perfect if i close my browser.But if page will get refreshed or if i navigate in my application then also window.open is executing.
Please help me on this
|
|
|
|
|
hi sir
i want to display the image in gridview column.and path i have from database.so iam using following.
<asp:imagefield headertext="Product" dataimageurlfield="Product_Image" controlstyle-width="100" controlstyle-height="100">
product_image is a column of database which conatin the path of images.but it does not display the image .
please help me.
|
|
|
|
|
I think the path in the database doesnt maps with your virtual directory.
You must specify a path which the client can directly point, means path relative to virtual directory.
check view-source to see what is the path rendered in the client side.
|
|
|
|
|
Can you look at the page source and see if the image urls are being read correctly from the DB.
Also check if the server has access to the locatin of the images.
|
|
|
|
|