|
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
|
|
|
|
|
Yes , You can stop page refresh by update panel,
Simple google search can help you better.
|
|
|
|
|
Hi all,
I am finding a tough time solving this problem, but i am not able to understand this weird functionality.
I have a grid view in my aspx as:
<asp:GridView ID="Grv_Loc_wise_stk" runat="server" AutoGenerateColumns="false" Width="946px" AllowSorting="True">
<AlternatingRowStyle CssClass="datagrid_row" />
<RowStyle CssClass="datagrid_row1" />
<HeaderStyle CssClass="datagrid_heading" />
<Columns>
<asp:CommandField ShowSelectButton="True" />
<asp:BoundField DataField="code" HeaderText="Code" />
<asp:BoundField DataField="item" HeaderText="Material Name" />
<asp:BoundField DataField="unit" HeaderText="Units" />
<asp:BoundField DataField="qty" HeaderText="Qty." />
</Columns>
<EmptyDataTemplate>
<asp:Label ID="Label1" runat="server" Font-Size="Small" ForeColor="DarkOrange" Text="<b>Sorry!!! No Records Available.</b>"></asp:Label>
</EmptyDataTemplate>
</asp:GridView>
After binding to gridview and in case no data is fetched, the grid doesn`t show up the empty data template. When i checked the html generated , the grid view is generated as
<table cellspacing="0" rules="all" border="1" id="Grv_Loc_wise_stk" style="width:946px;border-collapse:collapse;">
<tr>
</tr>
</table>
There are no td tags generated.Where it should have been
<table cellspacing="0" rules="all" border="1" id="Grv_Loc_wise_stk" style="width:946px;border-collapse:collapse;">
<tr>
<td>
<span>Sorry!!! No Records Available.</span></td>
</tr>
</table>
what could be the problem
When you fail to plan, you are planning to fail.
|
|
|
|
|
Are you sure you are binding the grid, if not bind the gridview with empty datatable and you can see the row.
Dim dt As DataTable = Nothing
Grv_Loc_wise_stk.DataSource = dt
Grv_Loc_wise_stk.DataBind()
|
|
|
|
|
samerh wrote: Are you sure you are binding the grid,
Yes, of course.
If my filter criteria satisfies with the data being fetched, i can see it in my gridview.I am binding to a datatable which is filled from my sql database.
ie something like this
Grv_Loc_wise_stk.DataSource=sales.Get_Stock_data(item,frmdate,todate)
Grv_Loc_wise_stk.DataBind()
where Get_Stock_data returns a datatable.
When you fail to plan, you are planning to fail.
|
|
|
|
|
Your code is correct when i copied that code into my editor and ran it on an empty dataset it produced the desired results. My only theory is that sales.Get_Stock_data(item,frmdate,todate) is somehow is not empty or populated with null values giving the impression that its not empty. I would check that portion of your code because what you've posted is correct and works on my end.
Hope that helps.
|
|
|
|
|
tech603 wrote: My only theory is that sales.Get_Stock_data(item,frmdate,todate) is somehow is not empty or populated with null values giving the impression that its not empty
well i executed the procedure in my sql with the filter parameters and it returned me no rows. That suggests that my datatable is empty. Here`s what i have done in my function...
<code> cmd = New SqlCommand
cmd.Connection = con
cmd.CommandText = "MyProc"
Adding Parameters....
cmd.Parameters.Add(.......
cmd.CommandType = CommandType.StoredProcedure
adp = New SqlDataAdapter
adp.SelectCommand = cmd
ds = New DataSet
adp.Fill(ds)
return ds.Tables(0)</code>
I cant figure it out, where the problem is!!!!!!
When you fail to plan, you are planning to fail.
|
|
|
|