|
Sorry I have not got one, but all you need to do is look at that link I gave you and code yourself some threads. You can also find lots of samples via Google, or in the CodeProject articles section..
Use the best guess
|
|
|
|
|
Quote: string connStr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
SqlConnection conn = new SqlConnection(connStr);
string strddl;
SqlCommand cmdddl;
Quote: try
{
conn.Open();
strddl = "INSERT INTO Users (Username,Name,UserID,Password,UserRoles,SecurityAns) VALUES(@user,@name,@id,@pass,@roles,@Sec)";
cmdddl = new SqlCommand(strddl, conn);
cmdddl.Parameters.AddWithValue("@user", TextBox1.Text);
cmdddl.Parameters.AddWithValue("@name", TextBox2.Text);
cmdddl.Parameters.AddWithValue("@id", CID);
cmdddl.Parameters.AddWithValue("@pass", Password.Text);
cmdddl.Parameters.AddWithValue("@roles", Role);
cmdddl.Parameters.AddWithValue("@Sec", TextBox6.Text);
cmdddl.ExecuteNonQuery();
conn.Close();
}
catch (Exception ex)
{
Response.Redirect("~/ErrorPage.aspx");
}
Dun't know this code may help on u or not, for the parallel processing is mean wht? i just a newbie
|
|
|
|
|
i am working with discussion forum , i need the complete source code of forum module in asp/net 3.5 and VS2008
|
|
|
|
|
|
|
Can anyone tell me how to pass a data to another,
Eg the textbox1 in page1.aspx data(such as hello) when i click on button save, the save button will redirect to page2.aspx and at the textbox2 at page2.aspx will show the data(such as hello) i'm key in previous page page1.aspx.
can anyone help me plszzzzzz, did u all understand what i mean T_T , what function/technology i nid to use?
|
|
|
|
|
|
thank you , that is what i found ^_^
i dun't know what is this function ~
|
|
|
|
|
JammoD87 after cross page at second page, i press the back button the data at first page nid to remain, how to do this ?
|
|
|
|
|
In which case you will need to use either "Session" or "Cookies" to store the value from the text box and check the value on page load.
Thanks
|
|
|
|
|
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.
|
|
|
|