|
when user click on imagebutton8 show true and after click on imagebutton8 again show true but I want show False.
<br />
Protected Sub Page_PreLoad(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreLoad<br />
If Page.IsPostBack Then Response.Write(Session("null"))<br />
<br />
End Sub<br />
<br />
Protected Sub ImageButton9_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton9.Click<br />
Session.Contents("null") = False<br />
End Sub<br />
<br />
Protected Sub ImageButton8_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton8.Click<br />
Session.Contents("null") = True<br />
End Sub
Thank You
Mehdi Bahrami
|
|
|
|
|
Mehdi Bahrami wrote: Session.Contents("null") = False
Mehdi Bahrami wrote: Session.Contents("null") = True
Seesion("null") = True
Session("null") = False
I don't think "null" is good name. I would do
Session("ShowImage") = True
Session("ShowImage") = False
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
But my problem not for name.
I use every name but this problem occure again.
Mehdi Bahrami
|
|
|
|
|
Hi,
I have a serious problem as use web service in .net,
the problem is described in the following link to microsoft http://support.microsoft.com/kb/815131
I have to work with three Web services, each of which I shall return complex objects such
is array containing an array of complex objects
eg
Elem ele = new Elem();
class Elem{
Arrayd[] arr = new Arrayd[x];
...
}
class Arrayd{
dettagliopre[] dett = new dettagliopre[x];
}
class dettagliopre{
string uno;
string due;
string tre;
string quattro;
....
}
...Classes are too long, but if necessary to send the following....
when using web service I get the data the utility of visual studio does not recognize the objects serialized in the proxy class and associates the type of return to type System.Data.DataSet or System.Data.DataSet []
...Furthermore, the data returned from the three web service must be compatible with each other...
I apologize if I was not clear whether or not I have respected the rules of the forum ...
Regards Aldo
|
|
|
|
|
I have 4 drop down lists that are added dynamically to a page. Each ddl is in its own ajax update panel along with triggers pointing to the ddls above it. my problem is when i change the value of a ddl, the listitems of that ddl are removed, and then if i change another ddl i get the following message. "Invalid postback or Callback argument."
|
|
|
|
|
hi
i want to join the string in url.
for eg.
when i redirect to the page in url its shown like
"http://localhost:3506/CMS/About%20Us.htm"
i want to remove such "%20" from about%20.htm.(i need url like
"http://localhost:3506/CMS/About+Us.htm")
how its possible.
regards
keyur satyadev
|
|
|
|
|
try this ...
string.Replace("%20","");
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
keyur satyadev wrote: when i redirect to the page in url its shown like
"http://localhost:3506/CMS/About%20Us.htm"
i want to remove such "%20" from about%20.htm.(i need url like
"http://localhost:3506/CMS/About+Us.htm")
what do you think %20 means? why do your want to remove it? What do you think will happen if you remove it? Just think about it.
%20 reperensts the space in "About Us.htm". Now what happens when you remove it, you get "AboutUs.htm". Is that what you want to get. I don't think so.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Yusuf.A wrote: what do you think %20 means? why do your want to remove it? What do you think will happen if you remove it? Just think about it.
%20 reperensts the space in "About Us.htm". Now what happens when you remove it, you get "AboutUs.htm". Is that what you want to get. I don't think so.
u r rite ...
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
I am getting this following error while trying to send a mail in asp.net.
"Failure sending mail. ----> System.FormatException: Smtp server returned an invalid response"
Please help me out....its urgent.
my Host name: localhost
|
|
|
|
|
you see, sending an email is unpredictable. It takes its own time. Don't rush it with urgent or the system will throw all sorts of exception as a protest. Pretend it is not urgent and it will go zoom. Another thing I find it very useful is bribing the loclhost , chocolate chip cookies are the best bribes.
Try to debug your code. It is telling you, your message is not properly formatted. what else can I say?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Arnab1987 wrote:
"Failure sending mail. ----> System.FormatException: Smtp server returned an invalid response"
Please check your SMTP Server and configure it properly.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Can you tell me how to configure SMTP server??r u tlking about configuring in IIS???
|
|
|
|
|
use name space
system.web.mail;
and
use smtpmail(msg);
and make sure iis has been installed.
|
|
|
|
|
Thanx....but i am getting an another error saying "SendUsing" configuration value is invalid while using System.web.mail namespace.
And IIS also has been properly installed into my pc.
|
|
|
|
|
Hi all,
I have this client who knows nothing about web in general and now wants to open and edit images in web.
Is it possible that i display an image in a aspx page (some images are really huge > 100 Mb) and let the client edit it (add some text areas like in mspaint) and then save these changes to that image replacing the old one. thinking out loud is it possible to open the image with mspaint in the aspx page then the user submit changes and save over the old path maybe
Any ideas and thanks in advance
|
|
|
|
|
samerh wrote: I have this client who knows nothing about web in general and now wants to open and edit images in web.
what kind of editing are we talking about here.
samerh wrote: Is it possible that i display an image in a aspx page (some images are really huge > 100 Mb) and let the client edit it (add some text areas like in mspaint) and then save these changes to that image replacing the old one.
You can use third party asp.net image editing [^] controls or look at this one[^]
samerh wrote: thinking out loud is it possible to open the image with mspaint in the aspx page then the user submit changes and save over the old path maybe
I don't think so. Imagine if someone can open your local applications from an aspx page.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
i have created a master page login.master
now i use this master page in login.aspx
is there a way to put html tags in asp:content???
if not then how to put title of the current page??
|
|
|
|
|
You can use more then one Content Place Holder. So just place 2nd Place Holder at the top in Login.Master , and in the Login.aspx type the title of the Login Page.
Or in the Master Page at the Page_Load()
you can get the name of the current page
some_variable = System.Web.HttpContext. Current.Request.Url.AbsolutePath
and then type a switch statement to set a Label at the Top.
Like
If (some_variable.Contains("Login.aspx"))
lblTitle = "Login Page";
|
|
|
|
|
Hi,
I've an application developed in ASP.Net to convert any file to pdf file using PDF Printer.
In the .aspx page I've kept one button control and in the click event I've written :
protected void Button1_Click(object sender, EventArgs e)
{
try
{
System.Diagnostics.Process printProcess = new System.Diagnostics.Process();
printProcess.StartInfo.FileName = "E:\\Krushna.doc";
printProcess.StartInfo.Verb = "printto";
printProcess.StartInfo.Arguments = "\"Adobe PDF\"";
printProcess.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
printProcess.StartInfo.CreateNoWindow = true;
printProcess.Start();
printProcess.Dispose();
}
catch (Exception ex)
{
throw ex;
}
}
I've set the PDF Printer to my default printer.
In the properties of the PDF Printer, in the Port tab, I've set the port to "My Document\*.pdf " . It will save the .pdf file to My Document.
I'm using ASP.Net 2.0 with IIS 5.1 installed.
The issue is :
This is working fine while running the application directly(i.e. the Krushna.doc file is converting to Krushna.pdf and save to My Document Folder) .
But when the application running from IIS, it is asking to save the pdf file i.e. one save dialog window is opened. But I need to directly save the pdf file to the My Document Folder.
Please reply...It is urgent requirment.
Thank you.
--Krushna Chandra Sahu
prfkrushna@gmail.com
|
|
|
|
|
you joking, are you?
if you are serious about converting files to pdf using a free tool look at Ghostscript [^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi Yusuf,
Thank you for your reply.
I'm not joking.
Have you checked the code given? If not, then please check and reply me.
--Krushna Chandra Sahu
prfkrushna@gmail.com
|
|
|
|
|
Hi,
There are two update panels in my page ,
i want to compare value between two textboxes which are placed in two update panels using compare validator.
but it shows error that it cannot find text box on another update panel.
please help me.
regards.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
show us a piece of your code.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Is it possible to stop page refresh by including updatepanel for a server button.
If so, can anyone provide sample code.
beula.
CMOTS Infotech
|
|
|
|