|
This sounds insane. You should factor out the action you want, to another class, or a control that can be used in two places.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I dont think it is possible to invoke another page within wizard control.
But if u want to navigate from one page to another and back to same page, i dont see any problem. Wizard control has nothing to do with.
And if u want values from page2 to page1, they are possible with sessions, query strings,..
modified on Wednesday, May 6, 2009 1:41 AM
|
|
|
|
|
As the title,when I do some changes in design view,the source view can not do the same changes.
We have a ASP.NET Menu control located within a Wizard control. When we change a property (e.g. Text) in a MenuItem, the change is effective in the design view, but is not sychronized to source view.
Product Language: English
Version: Visual Studio 2008 SP1
Operating System: Windows XP
Operating System Language: Chinese
Thank you.
|
|
|
|
|
Save your project, close Visual Studio 2008 IDE, reopen it, reopen the project. This sequence may solve this problem.
Either you love IT or leave IT...
|
|
|
|
|
Thanks for your answer.
But I do as your instruct,I can't resolove it.
Almost everytime,when I open the project,I meet with the proplem.
Our develop team all meet with the proplem.
|
|
|
|
|
hello everyone,
i'm looking for code (asp.net with c sharp) to send email on web.
many thanks,
asp.net beginner
|
|
|
|
|
I wrote an article on how to use google, it's here on Code Project. You should read it. Sending an email is both so trivial, and so widely documented, that I used it as the example in showing how to find basic information on the internet.
ASP.NET also cannot send email, your website will use .NET code that does not depend on ASP.NET
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
|
misCafe wrote:
i'm looking for code (asp.net with c sharp) to send email on web.
Before post, please go through the forums guide lines. Did you search google before post it?
Check Here
|
|
|
|
|
Hi,
Here is a short example:
var smtp = new SmtpClient { Host = ConfigurationManager.AppSettings["smtpserver"]};
var mail = new MailMessage { From = new MailAddress("me@me.com") };
mail.To.Add(new MailAddress("some@email.com"));
mail.Bcc.Add(mail.From);
mail.Body = "Testing";
mail.IsBodyHtml = true;
mail.Subject = "Subject";
try
{
smtp.Send(mail);
}
catch (SmtpException)
{
//Error handling here
}
Hope that this helps.
|
|
|
|
|
Thanks for your code.
Anyways, how to code if we set validation for email if it doesn't contain "@"?
Visoth
|
|
|
|
|
Hi,
If you collects the e-mail adress from a web form you can use a RegularExpressionValidator like this:
<asp:textbox id="tbEmail" runat="server">
<asp:regularexpressionvalidator id="RegularExpressionValidator1" controltovalidate="tbEmail" runat="server"
="" errormessage="Not a valid email" validationexpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
If you would like to check at the server level you can use a simple
emailstring.Contains("@") to check before you try to send it.
|
|
|
|
|
I understand your explain!
Would you mind to give me your personal email address?
Many thanks,
Visoth
|
|
|
|
|
Hi,
That I can do, don't want to post it here though. Could you reply to this with a private message with your adress?
|
|
|
|
|
Thanks for your afford!
Hope that you'll always answer my questions.
Many thanks,
Visoth
|
|
|
|
|
Matrix style vs Table style
For grid/table display, DataGrid is the obvious choice, what about Matrix style display like this http://paperwhistle.com/shop?p=2[^]
What control should I use?
Thanks
dev
|
|
|
|
|
When all else fails, use a repeater, it gives you the most control.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
whew our famous Christian Graus actually talked to me! I am honored!
dev
|
|
|
|
|
I'm working on some code that I am doing for a site. What I need it to do is the user can fill out 3 parts, Name, Phone, Email, and then it will redirect you to the full form page with Name, Phone, Email filled in with the values they have given.
This site does what I am looking for although it is in PHP: http://www.moveit.ca/[^]
I am very new to ASP and don't have a full grasp on it, so I apologize in advance for that. So if someone could point me in the direction that I would need to go to figure this one out that would be great, thanks.
|
|
|
|
|
The obvious way would be to pass those values on the URL and get them from the query string.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I sort of have that part figured out, my only problem is how to set text boxes and drop down menus to the values when loaded.
|
|
|
|
|
myTextBox.Text = Request.QueryString["Name"] ?? string.Empty;
This will grab the name from myURL.aspx?Name=Fred and if there is no value, the querystring returns null, so the ?? operator will see it's null and replace null with an empty string.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Awesome, I figured it out. Thanks for the quick responses =]
|
|
|
|
|
Hi,
You can also pass the value from one page to another using hidden form fields which will be better for security purposes.
Either you love IT or leave IT...
|
|
|
|
|
I have a checkboxlist that has values populated from a sql table's column. When i apply the selected values to a report within a page postback is triggered and the selected value seems to be lost.
how to set the selected to remain even after postback?
Appreciate your thoughts.
Thanks.
public ReadOnlyCollection<string> ParameterValues
{
get
{
this.EnsureChildControls();
List<string> names = new List<string>();
if (!string.IsNullOrEmpty(cName))
{
for (int i = 0; i < cBList.Items.Count; i++)
{
if (cBList.Items[i].Selected)
{
names.Add(cBList.Items[i].Value);
}
}
}
for (int i = 0; i < cBList.Items.Count; i++)
{
ListItem item = cBList.Items[i];
if (item.Value == cName.ToString())
{
cBList.SelectedIndex = i;
item.Selected = true;
}
}
ReadOnlyCollection<string> result = new ReadOnlyCollection<string>(names);
return result;
}
}
[ConnectionConsumer("Input Values")]
public void GetValues(ITransformableFilterValues values)
{
foreach (string val in values.ParameterValues)
{
this.Provider_Values = val;
this.Provider_Name = values.ParameterName;
ds = new SqlDataSource();
ds.ID = "Source ID";
ds.ConnectionString = cString;
ds.SelectCommand = this.SQLSelectCommand;
cBList.DataTextField = cName;
cBList.DataValueField = cName;
cBList.DataSource = ds;
cBList.ID = "List ID";
cBList.Attributes.Add("onclick", "FindSelectedItems(this," + tB.ClientID + ");");
cBList.DataBind();
}
}
|
|
|
|