15,670,852 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Python questions
View Javascript questions
View C++ questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Ash29 (Top 31 by date)
Ash29
8-Dec-12 3:16am
View
well is there any way to solve my problem
as in i hav to arrange/position the items with decimal values
is there any other alternative to achieve the same?
Ash29
1-Dec-12 3:40am
View
Thanks for the reply.
This solution is efficient enough.
Ash29
1-Dec-12 3:24am
View
yes exactly
Ash29
1-Dec-12 3:21am
View
Deleted
Hey Krunal thanks for the reply
I have resolved that by adding more variables
like this
string time1 = T.TimeOfDay.ToString().Split(':')[0].ToString();
string time2 = T.TimeOfDay.ToString().Split(':')[1].ToString();
string time3 = T.TimeOfDay.ToString().Split(':')[2].ToString();
n that works!!!
Ash29
1-Dec-12 3:19am
View
A quick n prompt reply
CodeProject simply rockz
Ash29
1-Dec-12 3:18am
View
Thanks.
that works!
Ash29
27-Nov-12 6:49am
View
thanks for the reply,
on setting AutoPostBack to false in dropdownlist the text box items doesnt fetch the database items. I guess page refresh is necessary to fetch the database stored items.
Ash29
26-Nov-12 7:01am
View
thanks for the reply,
on setting AutoPostBack to false in dropdownlist the text box items doesnt fetch the database items. I guess page refresh is necessary to fetch the database stored items.
is it?
Ash29
26-Nov-12 6:59am
View
ohk
thanks
wil give it a try n update with the latest
Ash29
25-Nov-12 15:05pm
View
Sir,
this part of code really helped me in my project.
Is it possible to create more than one such div based on user entered height and width?
i mean the next time user will change the image height and width so how do i create another image div next to the earlier created div following the same code.
kindly help
thanks!!
Ash29
25-Nov-12 8:57am
View
I will give it a try, although my project deals with retrieving images from database and placing them in a div or table(whichever convinient), on button click.
As in on every next button click the immediate next image should appear on the area from the database table.
Ash29
25-Nov-12 8:55am
View
thanks for the reply!
Ash29
23-Nov-12 21:34pm
View
Hi,
How do I create multiple such divs based on a single button click?
Considering an example of a box having height, width and depth; we have to show each side of that box in which case only two values will be needed everywhere.
That is height and width for front view, then for top it wil be width and depth and so on...
Can you please help me to accomplish the same?
thanks!
Ash29
20-Nov-12 11:46am
View
well the client is UK based
n we being in India, want to deploy it on the server.
Ash29
20-Nov-12 11:38am
View
ok thanks for the reply
well can u provide me the steps on accomplishing the same
or a link for the setup?
thanks
Ash29
20-Nov-12 11:34am
View
I have configured IIS
but that is for localhost
I want to get remote access
Ash29
16-Nov-12 8:44am
View
and generating page at runtime on button click.
so that image gets generated based on height and width
now alongside if i have to place another image div then how do i do that
with the same button click
Ash29
16-Nov-12 8:43am
View
Hi,
I am taking user entered CSS values for height and width.
Ash29
9-Oct-12 0:47am
View
Well changing the jquery latest version did help.
Thanks alot for the support...
:-)
Ash29
8-Oct-12 23:01pm
View
Hi, Good Morning Sir,
well I had tried the same code given by u and by removing xmlns:asp="#unknown" too
so here is what i had worked upon.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
</head>
<script language="javascript" src="Scripts/jquery-1.2.6.js" type="text/javascript"></script>
<script language ="javascript" type="text/javascript">
$(document).ready(function () {
$("#btnFU").click(function (e) {
var w = $("#txtW").val();
var h = $("#txtH").val();
$("#actualimg").css("width", w);
$("#actualimg").css("height", h);
e.preventDefault();
});
});
</script>
<body>
<form id="form1" runat="server">
<div>
<img id="actualimg" src="images/abc.jpg" alt="some image" style="width:200px" />
<asp:label text="height" id="lblht" runat="server">
<asp:textbox id="txtH" runat="server" clientidmode="Static">
<asp:label text="width" id="Label1" runat="server">
<asp:textbox id="txtW" runat="server" clientidmode="Static">
<asp:button id="btnFU" runat="server" text="Resize" clientidmode="Static" />
</div>
</form>
</body>
</html>
I do feel that the jquery1.2.6.js that i m using might b the reason for not taking effect.
As the solution provided by you uses jquery1.7.js
Ash29
8-Oct-12 15:01pm
View
Well sir, some text here above i guess has not got displayed like closing tags of asp:.....
well on having a look at the formatted code, i do feel that something iz going missing...
:-\
Ash29
8-Oct-12 14:41pm
View
<%@ Page Language="c#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<script language="javascript" src="Scripts/jquery-1.2.6.js" type="text/javascript"></script>
<script language ="javascript" type="text/javascript">
$(document).ready(function () {
$("#btnFU").click(function (e) {
var w = $("#txtW").val();
var h = $("#txtH").val();
$("#actualimg").css("width", w);
$("#actualimg").css("height", h);
e.preventDefault();
});
});
</script>
<body>
<form id="form1" runat="server">
<div>
<img id="actualimg" src="images/abc.jpg" alt="some image" />
<asp:label text="height" ID="lblht" runat="server">
<asp:textbox id="txtH" runat="server">
<asp:label text="width" id="Label1" runat="server">
<asp:textbox id="txtW" runat="server">
<asp:button id="btnFU" runat="server" text="Resize" />
</div>
</form>
</body>
</html>
Ash29
8-Oct-12 14:38pm
View
Deleted
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="SiteMaster" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<script language="javascript" src="Scripts/jquery-1.2.6.js" type="text/javascript"></script>
<script language ="javascript" type="text/javascript">
$(document).ready(function () {
$("#btnFU").click(function (e) {
var w = $("#txtW").val();
var h = $("#txtH").val();
$("#actualimg").css("width", w);
$("#actualimg").css("height", h);
e.preventDefault();
});
});
</script>
<body>
<form id="form1" runat="server">
<div>
<img id="actualimg" src="images/abc.jpg" alt="some image" />
<asp:label text="height" ID="lblht" runat="server">
<asp:textbox id="txtH" runat="server">
<asp:label text="width" id="Label1" runat="server">
<asp:textbox id="txtW" runat="server">
<asp:button id="btnFU" runat="server" text="Resize" />
</div>
</form>
</body>
</html>
Ash29
8-Oct-12 14:36pm
View
Yes sure..
Ash29
8-Oct-12 14:18pm
View
Sir,
is the code getting executed on your machine sir?
as i m constantly observing the text n wondering y is it not taking effect.
wish there was a debugger in visual studio :-D
Ash29
8-Oct-12 13:50pm
View
well surprising to notice that if i click on resize button without providing any values hen it automatically increases up
but on entering values nothing happens.
Ash29
8-Oct-12 13:44pm
View
Well the main aim behind this exercise is that i need to create a test room for a furniture website.
Sounds interesting isnt it :-)
well on first choosing a room, then appears the number of walls that will actually be present in that room, n finally consider that wall which i am working on, as different people will be having different wall sizes.
So we wanna provide flexibility to the user to choose size as per his desire.
Ash29
8-Oct-12 13:41pm
View
Hie,
Its quite relaxing for me as this being my first project since i completed my Masters, was struggling in putting forth the thoughts processed by the peer.
Well with the example provided by you it helped me to atleast assure them that it can be worked out as the way they thought to solve this problem.
And yea i have remove that xmlns
still hard luck :-(
Ash29
8-Oct-12 13:07pm
View
Thanks alot for that....
infact thanks a million
well i did place the .js file and the image in the necessary location
but on click of the button it is not enlarging or changing.
So, just trying the N probabilities of trial and error :-)
Ash29
8-Oct-12 8:59am
View
Thanks mann.. a sight of relief now :-)
well certainly i wil give a try to the same...
seems like a challenging task though :-\
Ash29
8-Oct-12 8:49am
View
thanks for that wonderful suggestion,
i hav already placed a image based on the css style with specific height and width.
how can that be changed at runtime?
Show More