|
Guys,
I'm very naive to .Net. I am using SQL EXpress database as my backend. I want to retrieve data from DataBase and display it in the Crystal REport ... Can any me regarding this ...
I googled a lot but with SQLEXpress iam unable to do it... Please help me rearding this...
Thanks in advance.... Smile
|
|
|
|
|
|
Please don't post the same question in multiple forums. Pick one and stick to it.
Posting at multiple forums is considered rude.
|
|
|
|
|
Currently I have a web application that is in use. It uses the default asp.net membership provider for all the users and roles. I really want to convert this to something I have made myself so I can understand more of how it works and the code that makes it work. It will just make it easier I think in case some things go wrong and for me to customize stuff.
Anyways I am capable of storing a entered password in SHA256. I understand that I can store the encrypted password in the database and just compare the username and password to it when entered (first of course you must converted entered information into SHA256 and then compare).
Now what I don't know how to do or understand is the Salt methods that is currently used. I understand that this generates a random code for each user. I have also read some places where it combines the salt and encrypted password for verification??
So let me ask if it works like this...
User creates a new user which generates a SHA256 password (encrypted in 'Password' field), then a random 'Salt' encryption is generated and saved in a 'PasswordSalt' field... also the username and other informaiton is saved as well.
So when the user logs in it takes their username and password and looks up in the database for those fields (Searching by USERNAME)... Once it gets the Password column and PAsswordSalt column what does it do? I'm assuming at this point the password is just encrypted to SHA256? If that is the case what is the need for the PasswordSalt? Sorry if I sound dumb, im just trying to understand this.
|
|
|
|
|
|
Hi All,
I have rad window in which there is a ASP.Net Save Button and Rad Tabstrip control. I have Rad tool kit installed on my machine.
When I run the application in machine the save button is working fine. But when I moved it to the QA Server, its not working at all. Can anybody pls help me in resolving this issue to work everything in every machine.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
But we need more details about error so that we can help you & also Telerik is 3rd party component so that we can guess only limited.
|
|
|
|
|
i use Telerik and Infragistics all the Time. what is the Error that you are getting ? why do you say its not working ?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hello,
I'm working on a project that I'm trying to export data from textboxes in asp.net website project to a powerpoint file. I writing ofcourse in C#.
The whole concept is to use the data the a user inserts to the text boxes and they are sent after clicking a OK button directly to a powerpoint file. I'm using OFFICE 2007 so I'm using powerpoint 2007 for this.
A similar concept that I'm already using in the website project is doing the same thing but exporting to a WORD format file. I bumped against this following site a software to perform this and it's called: SoftArtisans. There website is http://www.softartisans.com/ .
Now, if somebody has a clue or a tutorial how I can do this, Export to a powerpoint file I'll be very thankful.
I am also using Microsoft SQL Server 2008 R2 to save the data in the database, so if maybe someone knows how to export the data from the textboxes from the website TO the database and then TO the powerpoint file that could help to.
Thank you very much for your help and support.
modified on Friday, June 25, 2010 11:24 AM
|
|
|
|
|
|
I'm trying to export the data from textboxes in my website. I don't want to export the whole website or the whole page to a file. I have an templete file that in it I have some merge field that I want the data from the textboxes in the website to get exported to the merged fields.
that's it, thanks
|
|
|
|
|
You are going to have to write code to do that.
Office 2007 / 2010 uses the OpenXML format, so in order to
watchdogger wrote: export the data from textboxes in my website
You are going to need to manipulate the actual document yourself. You are going to have to read up on the OpenXML format and then write some code to accomplish your task.
If you don`t want to
watchdogger wrote: export the whole website or the whole page to a file
Then don`t code it that way.
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
Hello All,
I need to search recursive control inside gridview
i have written below code but i can not able to find the control in which are define in <asp:templatefield> I have taken on linkbutton inside templated field but when i try to search control but i didn't get.
Code :
public static Control FindControlRecursive(Control Root, string Id)
{
if (Root.ID == Id)
return Root;
foreach (Control Ctl in Root.Controls)
{
Control FoundCtl = FindControlRecursive(Ctl, Id);
if (FoundCtl != null)
return FoundCtl;
}
return null;
}
but it return null while i am try to find out control like
LinkButton B = FindControlRecursive(GridView1, "lnk") as LinkButton;
can you please help how to resolved above issue?
Thanks in advance,
Anish Patel
|
|
|
|
|
Hi! in future post, try using the code block just for better understanding of the code
Well, the Control, must be a GridView, so you can add
public static Control FindControlRecursive(Control Root, string Id)
{
if (Root.ID == Id)
return ((GridView)Root);
if (Root is GridView)
{
GridView gv = ((GridView)Root);
Int32 num = 3;
Int32 row = 1;
Control FoundCtl = ((Control)gv.Rows[row].Cells[num].FindControl(Id));
if (FoundCtl != null)
return FoundCtl;
}
return null;
}
Remember that in ASP.NET the dinamically controls added like in grid view Template field, have the same name, except in Client-Side. if you want a especific row, you only need to change the row parameter
|
|
|
|
|
I am new to web applications.
I wish to do an e-commerce site.
I wish to use ASP.NET , C#.Net and SQL Server.
What is front end and back end?
for a two tier application I think we say VB.NET as a front end and SQL Server as a back end
I think an e-commerce site is a three tier application
I preferred ASP.NET, C#.Net & SQl Server.
Which one of these are called as a front end and the backend?
|
|
|
|
|
|
When I click Button1, Button2 gets enabled and the label's text is set to "bye". This is done with a bit of javascript. When Button2 is clicked, it's text should be set to "bye" - the new text value of the label, but is set to "hello" instead - the original text value of the label. How can I fix this?
Aspx:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test</title>
<script type="text/javascript">
function Hello() {
document.getElementById('Button2').disabled = false;
document.getElementById('Label1').innerText = "bye";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="Button1" onclick="Hello()" />
<br />
<asp:Button ID="Button2" runat="server" Enabled="False" Text="Button2"
onclick="Button2_Click" />
<br />
<asp:Label runat="server" ID="Label1" Text="hello"></asp:Label>
</div>
</form>
</body>
</html>
Cs:
protected void Button2_Click(object sender, EventArgs e)
{
this.Button2.Text = this.Label1.Text;
}
|
|
|
|
|
Markup - HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test</title>
<script type="text/javascript">
function Hello()
{
document.getElementById('Button2').disabled = false;
document.getElementById('Label1').innerText = "bye";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="Button1" onclick="Hello()" /><br />
<asp:Button ID="Button2" runat="server" Enabled="False" Text="Button2" /><br />
<asp:Label runat="server" ID="Label1" Text="hello" />
</div>
</form>
</body>
</html>
Code-behind
void Page_Init(object sender, EventArgs e)
{
Button2.Click += new EventHandler(Button2_Click);
}
protected void Page_Load(object sender, EventArgs e)
{
}
void Button2_Click(object sender, EventArgs e)
{
Button button = (Button)sender;
button.Text = "Something new";
}
|
|
|
|
|
I need to use the label's new text value in the code behind for further processing. Using 'this.label1.text' doesn't work as it gives the original text value not the new one.
|
|
|
|
|
Oops sorry. Can you not simply use the code-behind to solve this issue?
Because your clicking on a server control the page is reloaded back to its orginal state. If you want to change the text of the button after changing the label control using JavaScript then you will need to change the second button using JavaScript also.
|
|
|
|
|
No. I am working on an application that utilizes a scheduling control. This control has a client-side click event that I must use. When I click on the control it must set a property wich in turn must be used when a button on the page is clicked. My solution to this was to set a label's text property but that doesn't seem to work, as you have seen in my code. Maybe you can help me out. Thanks anyways.
|
|
|
|
|
Only other way I can think of is to use a hidden field.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test</title>
<script type="text/javascript">
function Hello() {
var value = "bye";
document.getElementById("<%=Button2.ClientID %>").disabled = false;
document.getElementById("<%=Label1.ClientID %>").innerText = value;
document.getElementById("<%=hdnValue.ClientID %>").value = value;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="Button1" onclick="Hello()" /><br />
<asp:Button ID="Button2" runat="server" Enabled="False" Text="Button2" />
<br />
<asp:Label runat="server" ID="Label1" Text="hello" />
<asp:HiddenField ID="hdnValue" runat="server" />
</div>
</form>
</body>
</html>
void Page_Init(object sender, EventArgs e)
{
Button2.Click += new EventHandler(Button2_Click);
}
protected void Page_Load(object sender, EventArgs e)
{
}
void Button2_Click(object sender, EventArgs e)
{
Button button = (Button)sender;
button.Text = hdnValue.Value;
}
|
|
|
|
|
Thank you very much! It works!
|
|
|
|
|
When I click button 1, button 2 must be enabled and the label's text must change from "hello" to "bye". This must be done clientside through Javascript. How must I change the following code to get this to work? When I click button 1 the label's text changes but immediately reverts back to it's original value.
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test</title>
<script type="text/javascript">
function Hello() {
document.getElementById('Button2').disabled = false;
document.getElementById('Label1').innerText = "bye";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="Hello()"/>
<br />
<asp:Button ID="Button2" runat="server" Enabled="False" Text="Button" />
<br />
<asp:Label runat="server" ID="Label1" Text="hello"></asp:Label>
</div>
</form>
</body>
</html>
|
|
|
|
|
When you click the button the client-side script is being executed properly, however, it also causes a post-back which resets the page. If all you need to do execute client-side script with no post-back then change the asp:button controls to simple html elements <input type=button>
I know the language. I've read a book. - _Madmatt
|
|
|
|