|
Hi,
Try to reverse the comparissons and see what happens
|
|
|
|
|
hi,
what i want:- bind database value in .aspx page in a data control like datalist
but i want to apply jquery on it bcaz want to show effects on it
The Problem :-downloaded jquery only works with img tag but in datalist i can use image control so....jquery is not working
is there any way for
1. binding database values with img tag instead of image control
OR
2. can jquery work with img control
if anybody knows pls pls reply me
thnkxx in advance
|
|
|
|
|
your question isn't clear you want to set src of image that come from database?
|
|
|
|
|
hi, my prob is that i want to implement jquery on images bt images are in database.
i can bind them and able to show with image control but the problem is that jquery is not working in image control.
it works with img tag
|
|
|
|
|
Member 7980675 wrote: binding database values with img tag instead of image control
For asp.net Image control path is given to ImageUrl
<asp:Image ID="img1" runat="server" ImageUrl='<%# Eval("path") %>'></asp:Image>
For HTML img path is set to src
<img id="image1" src='<%# Eval("path") %>' />
|
|
|
|
|
hello, thanz for this
but my prob is that i want to implement jquery on images bt images are in database.
i have done this with image control but the problem is that jquery is not working in image control.
it works with img tag
|
|
|
|
|
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?
|
|
|
|