|
please send me the HTML and the behind code you tried on.
Help people,so poeple can help you.
|
|
|
|
|
in .aspx page...
<asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal"
RepeatColumns="4" RepeatLayout="Table"
CellPadding="5" CellSpacing="10" onitemcommand="DataList1_ItemCommand"
>
<ItemTemplate>
<div>
<%--<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='<%#Eval("image_name") %>' height="200" width="120" BorderColor = "#FFCC01" BorderStyle = "outset" BorderWidth = "8" CommandName="img" CommandArgument = '<%#Eval("image_id") %>'/>--%>
<p><img id="image1" runat="server" border="0" src='<%#Eval("image_name") %>' style="border-color:#FFCC01;border-style:outset;border-width:8px;" height="200" width="120" /><p>
<br />
</div>
</ItemTemplate>
</asp:DataList>
in this page i want jquery on img tag...and in that it takes src value of img tag and zoom it
bt in case of eval function its not working.....
is simple word if i use simple img tag and give value of any image then jquery is working fine bt wen i give eval function bcaz images are in database then jquery is not working.....
|
|
|
|
|
I think that there is no differences between both case, because image src would be rendered in the same way.
What I think is you used image ids in the jquery selector. try this:
<asp:DataList ID="DataList1" runat="server"
RepeatDirection="Horizontal"
RepeatColumns="4"
CellPadding="5"
CellSpacing="10"
>
<ItemTemplate>
<div>
<p><img id="image1" runat="server" border="0" src='<%#Eval("image_name") %>' style="border-color:#FFCC01;border-style:outset;border-width:8px;" height="200" width="120" /><p>
<br />
</div>
</ItemTemplate>
</asp:DataList>
<script type="text/javascript">
$(document).ready( function() {
$("#<%= DataList1.ClientID %> img").animate();
});
</script>
We used the selector $("#<%= DataList1.ClientID %> img") beacase the markups would be renderer as
<table id="DataList1.ClientID">
<tr><td>
<img id="DataList1.ClientID_ctr100_Image1" ... />
</td> ... </tr>
...
</table>
Good luck
Help people,so poeple can help you.
|
|
|
|
|
hello sir,
yuppppiiiiii it worked....thanxxx a lot
m so happy..thanku so much for ur reply........
u really helped me
thankss to all
|
|
|
|
|
Sir;
Dose m@dhu's answer solve your problem?
Help people,so poeple can help you.
|
|
|
|
|
have replied sir .....
|
|
|
|
|
In asp.net website , Videos are palying well on that system on which website hosted,but these are not palying on others ,I have tried more than 3 hours,But I am Unable to undersatand the problem please help me.
embed1.Attributes.Add("src", @"http://~/Uploads4/" + e.CommandArgument.ToString() + "");
embed1.Attributes.Add("filename", Server.MapPath(e.CommandArgument.ToString()));
embed1.Attributes.Add("ShowControls", "1");
<embed runat="Server" id="embed1" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"
width="424" height="379"
autostart="1" showcontrols="1" showstatusbar="1" videoborder3d='1' designtimesp='5311' loop='true' >
</embed>
|
|
|
|
|
Hi everybody
How Can I Bind List<t> to datagridview?IS it possible in asp.net
Thanks
|
|
|
|
|
|
Dears,
I need from you to share thoughts and experiences with me about the following case:
I have a project it's business logic serves 3 entities, each entity should view some pages according to the business needs and may share some pages with the others entities.
Also inside the entity we have different types from users so some controls on the page should be accessed by some users and other not according to the role of user.
What I need exactly is to get the best architecture module for privileges and permissions and how to deal with menus, controls, files accessing, session issues and etc,.
Note: I use MS Membership and Role Provider. "You could suggest any other solution if it is better"
Best Regards
|
|
|
|
|
i don't think there is better solution than asp.net membership provider for you !!
you need to use some asp.net controls to solve your problem :
<asp:LoginView ID="LoginView1" runat="server">
<RoleGroups>
<asp:RoleGroup Roles="admin,fileadmin,contentadmin">
<ContentTemplate>
hello group 1 !
</ContentTemplate>
</asp:RoleGroup>
<asp:RoleGroup Roles="admin">
<ContentTemplate>
hello admin !
</ContentTemplate>
</asp:RoleGroup>
</RoleGroups>
</asp:LoginView>
for controlling file access you can use global.asax file to deny some users accessing to some files ...
|
|
|
|
|
hiiiii i am manpreet
i m doing asp.net with c# web base applications
plz tell me about custom controls
and session objects and data with an example
, also tell me how to kill user session in asp.net
|
|
|
|
|
Professional manpreet wrote: how to kill user session in asp.net
user session can be kill using Session.Abandon()
Rating always..... WELCOME
The only reason people get lost in thought is because it's unfamiliar territory.
|
|
|
|
|
iam working in rdlc vs 2010
i have table in db tht have ntext column
that i stored text formatted in it something like that
'<p><strong>SAGJSHAGJAS</strong></p> <p><strong>GHDGJSAD SAFDHGFDHGD</strong></p> <p><strong>SDGDGDSFDHFD</strong></p>'
when i try to add this column in rdlc report it dir it not formatted
it dir it like
'<p><strong>SAGJSHAGJAS</strong></p> <p><strong>GHDGJSAD SAFDHGFDHGD</strong></p> <p><strong>SDGDGDSFDHFD</strong></p>'
so how i dir it formatted
md_refay
|
|
|
|
|
double clickon the filed value for example say we want to dir address filed formated after we drag address filed into our report double click on it not in the textbox we 'll find markup type chnage to html
md_refay
|
|
|
|
|
this is my first use for rdlc in 20vs 2010
i used to work on it on vs2008
but it's differnet on vs2010
i have some problems
first i have note that when yiu drag table to rdlc it's create default group with header & no footer
i create group in my tabe
but i need reoprt page header & footer that repeat each page
but i can't do it
md_refay
|
|
|
|
|
Hi
my code in asp is as follow
<%@ Page Language="C#" MasterPageFile="~/loginmater.master" Title="Content Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Button1_Click(object sender, EventArgs e)
{
if (uid.ToString() == "munna" && pwd.ToString() == "monu12345")
Response.Redirect("loggedin.aspx");
else
Console.Write("invalid user or password");
}
</script>
my aim is when we click on the button the script should execute by accepting the values and validate there itself.
but i'm getting an error " Invalid postback or callback argument". wat sholud be done to run the script and get the result
thanks & regards
pradeep.
|
|
|
|
|
hai all,
I am using visual studio .net 2008,the dialog box are font dialog,color dialog are disabled in toolbox.How to enabled this?
Regards
D.Sathyanarayanan
|
|
|
|
|
I am receiving a HTTP 400 error when trying to upload an Excel spreadsheet with macros.
I am using an asp FileUpload control with the following server side script on the page:
<asp:FileUpload ID="myFile" runat="server" Width="600"/>
<script runat="server" type="text/C#">
protected void UploadFile(object src, EventArgs e)
{
Session["FileName"] = "";
if (myFile.HasFile)
{
String strFileName = myFile.FileName;
myFile.PostedFile.SaveAs(Server.MapPath("~/_systemname_uploads") + "/" + strFileName);
Session["FileName"] = strFileName;
}
}
<script>
Spreadsheets with macros are a requirement for this application.
I am able to upload Excel spreadsheets without macros, but when the spreadsheet contains a macro the operation results in a HTTP 400 error.
Does anyone know how I can resolve this problem?
|
|
|
|
|
I have favicon on my website on the root.
I add this code to master page.
I change the favicon file, but it still shows the old icon. What is the problem?
this code in master page
iam working now on local host i didn't upload site yet
md_refay
|
|
|
|
|
It could be the browser caching issue. Just close the browser and try it on new one. Or use Ctrl + F5.
|
|
|
|
|
And, if not the browser itself, maybe a caching proxy server.
|
|
|
|
|
Hi
Can anyone recommend a custom search engine control which allows you to specify the indexing. Namely has the ability to search through entire documents, just titles and possibly just authors. But must have the ability to search by all (like a standard search aswell). Some of the tools I've already been trying are the Keyoti Search for ASP.net which is great for general search btw. Also Karamasoft and findinsite but none have the options I require. Namely search just by title and then also be able to optionally search through content aswell. Also cannot be hosted!
I'm on the brink of building it from scratch but I want to exhaust all other options first.
Cheers
|
|
|
|
|
If you feel adventurous you can implement search with lucene or my own hOOt project found here, the sample application is self explanatory and it is easy to get it up and running for a web site.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
|
|
|
|
|
I have a aspx page with a number of DotNetCharting charts on it, some of these have controls to allow the source data on the chart to be changed causing a PostBack.
As only some of the Charts have this functionality they are in UpdatePanels so I don't have to re-create all the charts each time a PostBack occurs.
All the Charts are initialised by a common sub that sets their "TempDirectory" property to a directory under my app's root.
When the Page_Loads all the Charts are created correctly with their assoicated images in the TempDirectory I have specified.
Whenever a PostBack occurs to update the data in a Chart that Chart's Image is re-created in the TempDirectory as one would expect and the Chart is updated in its UpdatePanel - perfect.
However, empty "No Data" chart images are created at the app root for all the other charts each time an UpdatePanel is refreshed and DotNetCharting's housekeeping is not deleting them, as such a large number of "No Data" image files are accumulating in my app's root.
Any ideas anyone????
|
|
|
|