|
JammoD thank ^^ can ady~ thx to teach me cross page
page1.aspx
<asp:Button ID="Save" runat="server" class="styled-button-10"
PostBackUrl="~/test2.aspx" Text="Save" />
page2.aspx
<script runat="server">
void Page_Load(object sender, System.EventArgs e)
{
Label1.Text = ((TextBox)PreviousPage.FindControl("txtID")).Text;
Response.Write("" + Label1.Text );
}
</script>
modified 17-Apr-13 13:30pm.
|
|
|
|
|
|
i want to complete Email Receiving and Sending for web application complete code in asp.net using C# .....
plzzzzzzzzzzzzzzzzzzzzzzzzzzzz
|
|
|
|
|
HI this only sending..
using System;
using System.Web.Mail;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
namespace Utility
{
public class Email
{
public string sendTo = string.Empty;
public string sendFrom = string.Empty;
public string sendSubject = string.Empty;
public string onlineResLibUserName = string.Empty;
public string onlineResLibPassword = string.Empty;
public string sendBody = string.Empty;
public string MessageTemplate = string.Empty;
public string sendCC = string.Empty;
public string sendBCC = string.Empty;
public void SendMail(string mailFor)
{
Displathmail();
}
private void dispatchMail()
{
MailMessage mailMessage = null;
try
{
mailMessage = new MailMessage();
mailMessage.BodyFormat = MailFormat.Html;
mailMessage.Subject = "Local:" +sendSubject;
mailMessage.From = sendFrom;
mailMessage.Body = sendBody;
//mailMessage.To = sendTo;
mailMessage.To = "opmbugs@gmail.com";
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(mailMessage);
}
catch (Exception err)
{
throw err;
}
}
}
}
|
|
|
|
|
It does not work like this here.
Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.
Try them and tell if you face issues.
Members will be more than happy to help like this.
|
|
|
|
|
Brother whenever i search about mailing system in vs 2010 asp.net using C# i just find only sending email system but i want complete mailing system in my web application using smtp host gmail .. or any othera... please brother .....
|
|
|
|
|
Sending is easy as you see, but receiving is much more work and you need to study the SMTP RFC[^].
Use the best guess
|
|
|
|
|
|
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
RepeatLayout="flow" style="color: #FF0000" >
<asp:ListItem Selected="True" class="margin">Clothing</asp:ListItem>
<asp:ListItem class="margin">Shoes</asp:ListItem>
<asp:ListItem class="margin">Beg</asp:ListItem>
</asp:RadioButtonList>
can anyone told me how to make the font larger when i'm selected on particular radio button list ~ what is the CSS style code
modified 16-Apr-13 13:20pm.
|
|
|
|
|
The radio button seems to be a group of elements, input and span tags. You would have to use jquery to alter the assigned class or style value of the label after the input tag, using something like,
Set a Javascript event to listen for radio button value change, and when the event fires, run a function to alter the CSS of the label tag.
http://stackoverflow.com/questions/6505857/how-to-get-the-text-after-a-radio-button[^]
I can do it with drop down list, never done it with radio buttons, I might need to do some more research on this.
[edit]
you may have to run each on every radio button to set the font back to normal, and then change the font on the selected one. I think next sibbling will move from the input tag to the label for adjustment.
modified 17-Apr-13 0:20am.
|
|
|
|
|
Yes, I agree...
I think we can do this using JQuery very easy and fast....
|
|
|
|
|
ok thx ~ i try on it
|
|
|
|
|
how can i deny access to particular user?
|
|
|
|
|
|
First of all, this forum is called ASP.NET, so titling your message ASP.NET is pointless. Next time, pick a more meaningful title.
Second, you have the model the wrong way round in your mind. If you have an area of the website that you want to deny access to someone, then you start off with the idea of denying it to everyone. Okay, once you have this concept firmly in mind, then you grant access to select users. You'd normally do this via roles; add a user to the role and they get access to everything that the role allows. As we don't know what format your underlying authorisation provider takes, I suggest that you should have a read of this[^] section. At the end of it, you will have a much better understanding of what you want to achieve, and how to do it.
|
|
|
|
|
|
hi all,
I am designing a website and I'm using the select control.
I have two question:
firs:how can I undrestand that user selected one options,I think that I should "onchanged" but it doesn't work!
(onchange="salam" and it doesnt call the "salam" function)
second: the number of options depends on the person Id, so it's not constant!How can I control the number of options dynamtically?
as show below
I have used this solution but it dosen't work.
this is the piece of my code!
reader = objcommand1.ExecuteReader();
inti=reader.FieldCount;
while (reader.Read())
{
if (i == 3)
{
</Script>
<option value=""></option>
<option id="post11" value="">0001</option>
<option id="post21" value="">0002</option>
<option id="post31" value="">0003</option>
<script runat="server">
break;
}
if( i == 2)
{
</Script>
<option value=""></option>
<option id="post12" value="">0001</option>
////and this is my another question that how to put the text of option dynamatically
<option id="post22" value=""><script ">
reader.GetValue(1)</script></option>
<script runat="server">
}
|
|
|
|
|
For your first question, you can use the onselectedindexchanged event.
For your second question, if you are storing the option values in a database, you can pull the results based on the person Id and databind it to the drop down list.
|
|
|
|
|
|
Hi,
I have .NET Compact Framework 2.0 application running on a CE device, having no WCF support. I need to consume a WCF 3.5 HTTP POST RESTful service. The WSDL only generates an empty "Reerence.cs" for me. Do I treat this service as a SOAP web servce or just HTTP POS request? Thanks!
Best,
Jun
|
|
|
|
|
<script language="javascript" type="text/javascript">
function forRentClicked(sender) {
var tb1 = document.getElementById('<%= TextBox4.ClientID %>');
tb1.style.display = sender.checked ? 'inline' : 'none';
}
</script>
_____________________________________________________________
<asp:CheckBox ID="CheckBox1" runat="server"
Text=" XS" onClick="forRentClicked(this)" Checked="True" />
<asp:TextBox ID="TextBox4" runat="server" Height="19px" Width="80%" CssClass="123"
style="display:block;" ></asp:TextBox >
how to set the default checkbox uncheck and the javascript can function ~ i want to create 5 check box while i'm click the text box appear~ thx
|
|
|
|
|
Hi Michael,
sorry but i think i dont understand your question...
the Check-Status of an ASP Checkbox can be assigned within the ASP Tag (Checked="True|False")
the Actual Script seems to be hiding showing the Textbox4 independend of other textboxes or checkboxes... So maybe you can give us more details...
Martin
|
|
|
|
|
thx
|
|
|
|
|
I think you of just search for each component and just pieced it together yourself.
function forRentClicked(sender) {
var checked = document.getElementById('CheckBox1').checked;
var textbox_4 = document.getElementById('<%= TextBox4.ClientID %>');
if (checked == true) {
textbox_4.style.display = "block";
}
else {
textbox_4.style.display = "none";
}
}
|
|
|
|
|
thx ~
|
|
|
|