|
how can i change the url of the content page in contentPlaceholder. Currently it is now allowing to specify the url of content page.
I have a page in another folder. How can i achive this
|
|
|
|
|
In the content page's source view there should be a page directive at the top. With in the directive there should be a masterpagefile="yourmasterpage.master". If you don't have one you will need to add it and intellisense should take care of the rest. Since your content page can be in any folder with in the application, it should the be the masterpagefile tag's responsibility to point to the correct masterpagefile.
e.g. if the masterpage.master file in is the root directory, all of the contenct pages that use this master file should have the masterpagefile tag equaling "~/masterpage.master", regardless of their physical folder location.
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
Can u help me to find the solution that how to read a word document using filestream,when i did it is read as a binary file,but i wanted it to be read as a text file..
KRISHNA
|
|
|
|
|
The Word native format is a binary file. What specifically are you trying to accomplish?
|
|
|
|
|
Hello to all,
I want a dialog window on button click and dialog window has datagrid.
Datagrid has hidden column as employee number and second column is employee name which is template column(Linkbutton).
When I click on templete column I want that the selected employee name should be displayed in a listbox which is on parent form.
Please help me.
|
|
|
|
|
|
Hi
Can any one tell me how to merge the repeated values in a column? At present we are using bound column to display the records.
Code we are using
------------------
<asp:datagrid id="LocationsGrid" runat="server" onselectedindexchanged="LocationsGrid_SelectedIndexChanged" useaccessibleheader="True" autogeneratecolumns="False" gridlines="None" tooltip="Click location to edit" allowsorting="true" bordercolor="black" borderwidth="1" cellpadding="3" headerstyle-backcolor="#00aaaa">
<alternatingitemstyle>
<columns>
<asp:boundcolumn datafield="Location" headertext="Location" footertext="Hello" readonly="False" sortexpression="StringValue">
<asp:boundcolumn datafield="reference_id" headertext="Item No" sortexpression="IntegerValue">
<asp:hyperlinkcolumn text="Heading" datanavigateurlfield="reference_id" datanavigateurlformatstring="call_detail.aspx?action=View&callId={0}" datatextfield="Heading" headertext="Call" navigateurl="call_detail.aspx?action=View&callId={0}" sortexpression="StringValue">
Present Output
--------------
Girls Technology 484 hoover in workshop
Girls Technology 490 Fault on lights
Tillitson Pavillion 427 Please fit new locks to cupboards
Tillitson Pavillion 58 rendering
Tillitson Pavillion 309 Please attend to washer
Tillitson Pavillion 420 Please re-fit old handrail
Tillitson Pavillion 300 REPAIR WASHING Mc DOORDOOR HINGE BROKEN
Required output
----------------
Girls Technology 484 hoover in workshop
490 Fault on lights
Tillitson Pavillion 427 Please fit new locks to cupboards
58 rendering
309 Please attend to washer
420 Please re-fit old handrail
300 REPAIR WASHING Mc DOORDOOR HINGE BROKEN
Here the value at Location column gets repeated and we want to merge it one cell.
Thanks in advance,
Arunagiri
|
|
|
|
|
chk this
http://aspnet.4guysfromrolla.com/articles/072603-1.aspx
|
|
|
|
|
hi!
can you please tell me how i can locate a directory and read its contents(All the file e-g .doc,.txt,bmp...etc what ever it contain) in a data grid and if some one click on the link the file will then downloaded and the second link will delete the file
i am using asp.net using vb.net
plz provide the code if possible
thanks in advance
shezi
|
|
|
|
|
|
I try to Send e-mail from local machine (local Host) to remot mail at yahoo
the program fail to send this mail
please help me with full steps
and needed steps for configure SMTP
and SmtpMail.SmtpServer
thanks for all
|
|
|
|
|
.NET 2.0 includes much richer Email API support within the System.Net.Mail code namespace. I've seen a few questions from folks wondering about how to get started with it. Here is a simple snippet of how to send an email message from “sender@foo.bar.com” to multiple email recipients (note that the To a CC properties are collections and so can handle multiple address targets):
MailMessage message = new MailMessage();
message.From = new MailAddress("sender@foo.bar.com");
message.To.Add(new MailAddress("recipient1@foo.bar.com"));
message.To.Add(new MailAddress("recipient2@foo.bar.com"));
message.To.Add(new MailAddress("recipient3@foo.bar.com"));
message.CC.Add(new MailAddress("carboncopy@foo.bar.com"));
message.Subject = "This is my subject";
message.Body = "This is the content";
SmtpClient client = new SmtpClient();
client.Send(message);
System.Net.Mail reads SMTP configuration data out of the standard .NET configuration system (so for ASP.NET applications you’d configure this in your application’s web.config file). Here is an example of how to configure it:
from tis inside html tag
system.net
mailSettings
smtp from="test@foo.com"
network host="smtpserver1" port="25" userName="username" password="secret" defaultCredentials="true"
smtp
mailSettings
system.net
upto tis inside html tag
or
http://www.codeproject.com/useritems/EmailApplication.asp
hope tis will help u, to configure smtp http://www.aspit.net/tutorials/specific/configuring_smtp_server_under_iis_step_by_step.asp
coolsweety
-- modified at 7:27 Thursday 20th April, 2006
|
|
|
|
|
Salam,
First, do you have an SMTP server installed on one of your machines?? Or do you have an email with SMTP support (free webmails like yahoo, hotmail..etc do not allow to send emails programmatically through their SMTP servers...)
Once you have a valid SMTP server, here's some code to do so :
MailMessage mail = new MailMessage();<br />
mail.To = "xxxx@yahoo.com";<br />
mail.Bcc = "yyyy@yahoo.com; sersif@mce.gov.ma";<br />
mail.From = "your email or name";<br />
mail.Subject = "your subject";<br />
mail.Body = "your subject";<br />
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "YOUR EMAIL USERNAME");
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "YOUR EMAIL PASSWORD");
<br />
SmtpMail.SmtpServer = "10.4.1.2";
<br />
SmtpMail.Send(mail);
|
|
|
|
|
Im glad you got some decent responses...those people are very patient.
1) Please use descriptive subject titles - Everyone wants "Help", but thanks for at leastusing please
2) telling us "it fails" does not help us solve your problem. Please remember to post the code you are using and the exception message that is given.
|
|
|
|
|
i have a rediobutton and a dropdownlist and when the form loaded rediobutton.checked = false and dropdownlist be disable(means dropdownlist.enable = false) and i want after load when i select rediobutton (means rediobutton.checked = true) dropdownlist be enable
how can i do this work
|
|
|
|
|
just set the autopostback property of radio button true, then on RadioButton1_CheckedChanged event write dropdown.enabled=true;
coolsweety
-- modified at 9:05 Thursday 20th April, 2006
|
|
|
|
|
Hey,
You need to set the radionbutton AutoPostback property to 'true'..
Then by double clicking the radiobutton, VS creates a method radiobutton_checkedchanger(..) where you write the code to enable the dropdownlist..
I'd rather suggest you use a checkbox instead of a radiobutton.
Good luck.
|
|
|
|
|
thanks for your help thats right i forgeted the atuopostbak.
that be work now thank
|
|
|
|
|
hi all,
am using a third party control called infragistics webgrid for study purpose.
and am having one problem when using it, the problem is
i have one web grid. it has a column with date value. when edititng this column(date column) with an invalid date, the column is replaced with some valid date. how can i get rid from this
plz help me
coolsweety
-- modified at 6:30 Thursday 20th April, 2006
|
|
|
|
|
Does Infragistics provide support?
|
|
|
|
|
Hiya all.
I'm about to do a new website where I need to use "friendly urls" (which I think the term is), but as I've read more about the topic, I've gotten to say the least, a bit confused about which avenue to explore most.
What I'd like to end up with is that when the user enters for instance: www.domain.com/products/productnumber.aspx that I'll then subtract the productnumber and handle it internally as if the user had typed: www.domain.com/default.aspx?pageid=xxx&productid=yyy.
(Naturally can be other types of urls, but the situation is the same)
As I understand it there seems to currently be two ways of creating these friendly urls.
1) Use HttpContext.RewriteUrl("new url") in the application.beginrequest in global.asax
2) Use/trap 404 errors on a custom page
I am unsure which of these two methods are the best and what the pros and cons on each of them are.
I haven't found many ressources which mentions both and when I do it is often in comments and not an comparison of these.
Any advice on which of the two methods to use, or possible ressources pointing to a comparison, or perhaps even a third way?
With regards, and thanks in advance.
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
Its generally a bad idea to use error conditions in the flow of normal logic, so handling 404's will be the bad way to go about it.
Rewriting URL's using the BeginRequest method would be my prefered option.
|
|
|
|
|
if i am using forms authentication and the user has disabled cookies
what will happen ? Will he be able to browse the pages through url
without going through login page ie without validation ?
is forms validation a useful way to validate the user
|
|
|
|
|
Have you tested it? What happens when you try it?
|
|
|
|
|
why this error occurs when i
write Server.Trasfer(page.aspx) in a try/catch block
|
|
|
|