|
Hi
I have created image controls dynamically. when i click that image control someother page should be displayed as a popup window how to do this??
my code is :
ImageButton imga;
Panel pana;
LiteralControl LL1;
private void Page_Load(object sender, System.EventArgs e)
{
string idvalue;
idvalue= Request.QueryString["id"];
int cnt;
cnt=Convert.ToInt32(Request.QueryString["count"]);
Session["impath"]="audio_release/"+ idvalue +"";
int cnt1;
if (cnt % 3==0)
{
cnt1=cnt/3;
}
else
{
cnt1=((cnt/3)+1);
}
for (int i=1;i<=cnt1;i++)
{
imga = new ImageButton();
pana=new Panel();
imga.ID = "img" +i.ToString();
imga.Width=200;
imga.Height=150;
imga.ImageUrl="audio_release/" + idvalue + "/"+ i +".jpg";
pana.ID="pl1"+i.ToString();
LL1= new LiteralControl(" ");
pana.Controls.Add(LL1);
pana.Controls.Add(imga);
mainpan.Controls.Add(pana);
imga.Click +=new ImageClickEventHandler(Imagea_Click);
}
}
protected void Imagea_Click ( object sender, ImageClickEventArgs e )
{
ImageButton imga = ( ImageButton )sender;
string s=imga.ImageUrl;
popup('s');
Response.Redirect("audioimage.aspx");
}
here i want to display audioimage.aspx as popup window.
plz let me know if u know the ans
Thanks in advance.
Haritha
|
|
|
|
|
in Imagea_Click event you call javascript function .
in that function you can define window.open method i.e.
open (URL, windowName[, windowFeatures])
protected void Imagea_Click ( object sender, ImageClickEventArgs e )
{
ImageButton imga = ( ImageButton )sender;
imga.ImageUrl="javascript:load()"
//popup('s');
Response.Redirect("audioimage.aspx");
}
in html page you can write:
function load()
{
window.open("audioimage.aspx","mywindow","menubar=1,resizable=1,width=350,height=250");
}
Thanks
Raghvendra Kumar Roy
|
|
|
|
|
Hi
what is complete URL TRACKER. whats is its purpose
any idea how can we implement the complete URL- TRACKER.
Regards,
Srinandan
|
|
|
|
|
how to implement remember me next time feature in asp.net 1.1. plz provide help
|
|
|
|
|
If user wasnts to be remembered, write a cookie to their machine when they log in with their userID, (or whatever..) - and test for this cookie in page_load and if it exists log the user in automatically (or just fill in thier username, whichever you want to do.)
Research reading and writing cookies in ASP.NET
Fred
|
|
|
|
|
:(where i put the "Macintosh is at 9.8m/sec² ",plz give me detail plz
|
|
|
|
|
One post is enough.In BTW why are you creating the new thread.
Regards,
Satips.
|
|
|
|
|
What are you asking ? The quote means the only way to speed up a Mac is to throw it out the window.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The text you are referring to is a signature used by ExpertComing. When you setup a profile on CodeProject.com you can create a signature that gets appended to every message you post in the forums. So if his signature had been "Thanks Have a Nice Day" it would have said that at the end of the message - it has nothing to do with his actual response. So when you see "The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo" that is just his signature. You can ignore that part of his response.
|
|
|
|
|
Wow, that is funny. I never thought I could find someone that (fill in the blank). I got a hell of a laugh out of that.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi Friends,
I have developed a web application on my computer and it runs successfully on my localsystem.
Now I want to run it on other computer in my office which is coonectced via LAN to my computer.
To achieve this I have done some modifications to that computer's hosts file which is located at
C:\WINDOWS\system32\drivers\etc.
I have append following.
216.25.0.33 http://216.25.0.33/MyApplication
Here 216.25.0.33 is the IPAddress of my computer.
But this thing doesnt work means I am not able to visit my application from there.
Can you please tell me where exactly i am making mistake or the approach I have takes is wrong?
Thanks a lot in advance.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
your hostfile is like a dns-server. That means it can store names so you don't have to remember IP-addresses.
An example:
216.25.0.33 myserver
This will not work:
216.25.0.33 http://216.25.0.33/MyApplication
(the hostfile is not a web-forwarder)
If i write "myserver" in the addressbar it would be the same as i write the IP-address. So the address for your application would then be "http://myserver/MyApplication/"
|
|
|
|
|
Hi,
Thank you very much for your reply.
I got the point. But can u tell me what should i write in place of "myserver" in
216.25.0.33 myserver?
should it be my computer name or something else?
Thank you again.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
How does it run on your PC, using IIS or the web server built in to VS2005 ? If the former, people should be able to see it by typing your PC's name or IP address into their browser. If the latter, it needs to be hosted somewhere.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Thank you very much for your reply.
My application runs using IIS and I have tried by writting
http://216.25.0.33/MyApplication in other computers addressbar but it didnt work.
Is there any settings to do?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
HELLO CHETAN YAR,
U have done a mistake...
to run your website properly do the following things
- create one virtual diretory on IIS.
- Copy your all project files to that virtual directory
- now on other computer write following address to the
addressbar of the IEBrowser
- http://IP Name of Computer where Virtual dir store/Virtual dir name/Page name
eg. http://192.158.1.54/DemoVirtualDir/Default.aspx
Hope it helps....
best regards,
koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
where i put the "Macintosh is at 9.8m/sec² ",plz give me detail plz
|
|
|
|
|
Hi,
In your signature.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
w u mean i cant understand
|
|
|
|
|
We don't understand why you needed to ask this twice, or what it is that you're asking.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi to all
There is on dropdown i write code to populate it is get populate now i want to write certain code in seelctedindexchange event .
but it is not going to that event What may be the reason
Please help me in this direction
thanks.
|
|
|
|
|
Set The autopostback property of dropdown true
thanks
Raghvendra Kumar Roy
|
|
|
|
|
hi,
i hope above solutions helps. but if u already have set autopostback true and still its not going into the selectedindexchanged event. then my friend wht u've to do is copy all the code from the selectedindexchanged event and delete the code for selected index changed event the the selectedindexchanged method as well. now double click dropdown list and pase ur code. it would definitely work if u've already set autopostback true.
hope it works for u. thnku
|
|
|
|
|
Hi all you guys.
I have been trying to use tab as spriter in text file.
I declared the variable like this...
char[] spriter = new Char[] { ' ', ',', ';', '"', '\\', '|'};
In the order i can sprit text with ' '(space) ,(comma) : (semicolon) and others as in the array.
but I don't how to declare the TAB.
Anybody who knows this please help me.
Thank you very much.
-- modified at 5:29 Monday 4th June, 2007
junior boy
|
|
|
|
|