|
this.ClientScript.RegisterStartupScript(this.GetType(), "OnLoad", "confirm('really');", true);
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi,
How do i add an action if the dialog is confirmed?
Thanks
munklefish
|
|
|
|
|
Instead of writing confirm call a function there in that function write the logic
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Sorry, i dont know what is required.
|
|
|
|
|
this.ClientScript.RegisterStartupScript(this.GetType(), "OnLoad", "functionName();", true);
now write a javascript function
functionName()
{
if(confirm('really do you want...'))
{
write the code when yes is selected
}
else
{
writet the logic when no is seleced
}
}
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
i want to display videos in browser in a website.
any suggestions.........
Do good and have good.
|
|
|
|
|
The easiest way is to use youtube Saves bandwidth
|
|
|
|
|
This all depends on the format of the video as to the exact method.
However it basically intails embedding the appropriate vide player into the html code. This code is available readily on the web, and can be done automatically (i think) via tools such as dreamweaver.
This is assuming you have an pre-encoding video file? If not you will need to encode it to your chosen format using the appropriate encoding tool for the format you wish to use.
However this is essentially quite a basic process, so id be a little concerned that you are asking this in a .Net forum.
munklefish
|
|
|
|
|
hi all
i am buiding page Print image but i dont know how many pixel image if size is A4 or A1, 2,3,4 convert to with and height image
|
|
|
|
|
That's not how it works. You should be able to tell the size of the image the printer can accept, from the printer, and then size your image accordingly. Most printers have huge resolutions, as they are far more than 72 DPI.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
that mean
i am developing module print for map
in the page print u can choose type page so: A4, A3, A2...
when u chose A4 i have set size (width and height) for this image so it accord with type
but i dont know if this A4 or A3 this size of image how much ??
|
|
|
|
|
hi friends
i bind the image in codebehind like this:
but the image is not display
any syntax problem
string bodyHTML = "" +"" + "";
regards
saravan
|
|
|
|
|
Try putting the path in quotes, but it should not matter. Where is the images directory ? Where is this html, relative to that directory ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
This is just a simple case of tinkering with your file paths.
Try:string bodyHTML = "<html><head></head><body>" +"<img src='/images/h.gif'>" + "</body></html>";
Use single quotes around the source location, also try simply putting a '/' before the image location. Some servers are set-up such that they may or not require the prefix of a forward slash.
You could also try using some sort of mappath code to find the true location of your images folder.
munklefish
|
|
|
|
|
Putting an image tag in a string doesn't automatically display the image on the page. What do you do with the string after creating it?
---
single minded; short sighted; long gone;
|
|
|
|
|
It seemed to work okay for me. Make sure your image is in the correct location in the file structure and the name is correct. Otherwise, not sure. Maybe try adding ...what browser are you using?
|
|
|
|
|
I when run the program it shows the date I DD/MM/YYYY
But when I publish it in the IIS server date it shows in the MM/DD/YYYY.
Note : Regional setting in the control panel is set to DD/MM./YYYY.
How to retrieve the date in DD/MM/YYYY after publishing?
thank you
vijaya
|
|
|
|
|
Hi,
I am dynamically creating linkbuttons in asp.net c#. After creating the button i have to assign button click event for which i have written the below code.
btn.Click += new EventHandler(btn_Click);
The same works find when i am writing the code in codebehind but since this code is repeated in all the pages i have to use a class, but the problem is that the btn_Click method is in the codebehind page so how can i assign the eventhandler btn_Click event of the parent page while hooking up the event in the class.
Can someone please help me out.
Please see below the code:
protected void CreatePageCounter()
{
int pagesCount = (int)GetPagesCount();
int linkCount = 0;
for (int i = 1; i <= pagesCount; i++)
{
LinkButton btn = new LinkButton();
btn.Text = i.ToString();
btn.EnableViewState = true;
btn.Click += new EventHandler(btn_Click);
plcHldrPageNo.Controls.Add(btn);
plcHldrPageNo.Controls.Add(new LiteralControl(" "));
linkCount++;
}
}
Regards,
Anees
|
|
|
|
|
By defining a delegate in this class, hooking it to the parent class, and then calling that delegate when your event fires ( which you can do inline with an anonymous method if you want ).
Also, make sure you create these before page load, or they will not fire, as they will lose their viewstate.
Christian Graus - Microsoft MVP - C++
"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,
Thanks for the reply.
I understood what u have said but i need to call the method (btn_Click) in the page itself and just hookup the event in the class. Is it possible.
Regards,
Anees
|
|
|
|
|
I don't see why it's necessary ( it almost certainly isn't ), but unless you put an instance of your page inside the class, and then make the methods that are called public, I don't think it's possible. A delegate that you fire when creating the buttons may do it, also, if it passes the button out, so that it can be hooked up in the outer class.
Christian Graus - Microsoft MVP - C++
"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 all,
I have a GridView control with edit functionality. When a user edits any of the fields and clicks the update button, I need to copy both the old values and the new values entered by the user into a log table. Can someone please advise on how I can achieve the following using VB code? :
1. Get the original values before the edit operation
2. Get the new values entered in by the user (about to be updated)
3. Save the old and new values into a log table
Thanks!
|
|
|
|
|
kumswa wrote: I need to copy both the old values and the new values entered by the user into a log table. Can someone please advise on how I can achieve the following using VB code? :
1. Get the original values before the edit operation
2. Get the new values entered in by the user (about to be updated)
3. Save the old and new values into a log table
Write a Update Trigger on the database side. The value that you are looking for(old values and New values) will be available in the pseudo tables(logical tables). Doing this in the front-end is a wrong coding approach.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Thanks J O N!
I'm looking for examples of how to do this. There's one in Books online but still a little over my head.
Would still like to know how to do it the ASP.NET way though...
|
|
|
|
|
Before Updating the New values get the old values from the DB by passing the ID as parameter and New values you have. Have these two in DataRow() and then do the Update followed by Insert Into logtable(old vaules and New Values from the DataRow Collection) .
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|