|
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.
|
|
|
|
|
|
thank u very much sir you are great .you have solved my problem.
|
|
|
|
|
hi sir,
i have a problem please give me your suggestion
sir i have a gridview and it have a column product image.this column display the image of product.and from database i can fetch the address of images in dataset.sir now i want to display the image from that path .i mean i want to fetch the image on that path.
in source what should i do for image field image url='<%%>'
i mean as we bind our columns to dataset column same what should i do for fetch the image
please help
|
|
|
|
|
Hi Vikas,
I think you want to set the image url, so try this....
(Based on the idea that you have told the gridview to have a Template Field)
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Product_Image") %>' />
So you would place it inside a template field like below.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="ObjectDataSource1">
<Columns>
<asp:TemplateField HeaderText="Product_Image" SortExpression="Product_Image">
<ItemTemplate>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Product_Image") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="ProductTitle" HeaderText="ProductTitle" SortExpression="ProductTitle" />
<asp:BoundField DataField="ProductDesc" HeaderText="ProductDesc" SortExpression="ProductDesc" />
</Columns>
</asp:GridView>
I think this is what you might mean.
Hope it helps
Rob
|
|
|
|
|
Hi,
You should make sure the path stored in database is right.
Then you can bind the image source, and set the img's src as the page-path: src="<%=eval('path')%>"
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 21:56pm.
|
|
|
|
|
We have a aspx website written in VS 2008 and have been asked if it will run on 2008 Server, Enterprise, 64 bit. Will it work? Does the website need to be compiled into 64 bit?
|
|
|
|
|
Check this link out: http://support.microsoft.com/kb/894435
I switched my internal sites over to x64 a few months back without any major problems. The only thing I remember that seemed a little tricky to me was the web service extensions. The 32bit dot net and 64bit dot net were actually listed seperatly, so after switching it over remember to enable the 64 bit or it will fail.
Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.
|
|
|
|