|
Yup you can do so...just like asp...
<< >>
|
|
|
|
|
You can put it in your Web.config file in connectionStrings section , if .net 1.1 does not contain it, you can put it in appSetting part. You can see in MSDN how to read these settings from web.config .
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
I am using a C# custom dll in my biztalk project, that dll is deployed in Global assembly. This dll reading some value from App.Config file using ConfigurationManager class.
But after deploying the dll to Global assembly, how will this assembly get the value from app.config file or anything needs to do to deploy this app.config file into somewhere....?
Regards
R.Arockiapathinathan
|
|
|
|
|
i want to handle image using kodak image edit for a data entry screen
sathish
|
|
|
|
|
What is kodak image edit?? can you give the link of it?
<< >>
|
|
|
|
|
kodak image edit is active x control it is most using in vb
sathish
|
|
|
|
|
Hi,
I am using a custom Membership provider, and when a user is registered I want to send him/her an e-mail to complete the registration process. On codeplex, after you have regsitered they send the following email with a link in it:
https://www.codeplex.com/UserAccount/ConfirmRegistration.aspx?UserName=myusername&ConfirmationCode=rdJCzEfKcRvshBqa1YBYQr
Normally just after you have registered the system signs you in automatically. How do prevent this? I want the user to sign in manually.
Please can someone advise me?
Regards
ma se
|
|
|
|
|
ma se wrote: Normally just after you have registered the system signs you in automatically. How do prevent this?
It depends the programmer who did it. If you don't want the system to be logged in automatically, don't create the sessions automatically after the registration process. Redirect user to login page to login manually. If you want to send a confirmation link then make a page for confirmation. Generate a link with a unique id to identify the customer. When the page is loaded change active flag in the DB which allows them to login.
|
|
|
|
|
Thanks.
But the membership registration does everything for you, right?? Isn't it a property that I must set somewhere to not have the user signed in automatically??
|
|
|
|
|
Hi there,
I am also learning about membership...just set LoginCreatedUser property to false (default it's true)
<< >>
|
|
|
|
|
Hi
Plz help me,i want to match textbox value to table'a value like in below code E_CODE.when i write ds.Tables["EMPLOYEE"]["E_CODE"] it gives error like
Can not apply indexing with [] to an expression of type System.Data.DataTable.
I m using asp.net with C#
conn.Open();
strSelect = "Select E_CODE from EMPLOYEE";
da.SelectCommand = new SqlCommand(strSelect, conn);
da.Fill(ds, "EMPLOYEE");
for (int i = 0; i < ds.Tables["EMPLOYEE"].Rows.Count; i++)
{
if (txtECODE.Text == ds.Tables["EMPLOYEE"]["E_CODE"])
{
ds.Clear();
string strSelectall = "Select * from Employee";
da.SelectCommand = new SqlCommand(strSelectall, conn);
da.Fill(ds, "Employee");
GrdEmpInfo.DataSource = ds.Tables["EMPLOYEE"];
GrdEmpInfo.DataBind();
}
Thanks
Care Career
|
|
|
|
|
Care Career wrote: if (txtECODE.Text == ds.Tables["EMPLOYEE"]["E_CODE"])
It should be ds.Tables["EMPLOYEE"].Rows[i]["E_CODE"].ToString();
Best Regards,
Apurva Kaushal
|
|
|
|
|
handling image as a different layer in asp.net
sathish
|
|
|
|
|
babusat wrote: handling image as a different layer in asp.net
What do you mean by a different layer ?
|
|
|
|
|
Hi there.
Can anyone help me. I need to convert System.Drawing.Image to System.web.UI.Webcontrol.Image so that i can display an foto in a imagebox.
Thanks
|
|
|
|
|
I don't think there is anyway to implement.
Although their names looks very similar.
I think you should change a method to do this.
Because one use Image Stream,another(WebControl.Image) use a ImageUrl.
You've already got a System.Drawing.Image object,you can save it for a temporary file,then give the WebControl.Image instance correct path.
Overload the Page's Render,after base.Render() then delete the temporary file.
Good luck!
|
|
|
|
|
Hai to all,
Here i am using javascript for adding two different values(txt1,txt2) and the sum shd come when we click on the third txt3.
Here i am able to give onle integer values.If i want the same for decimal values,how i have to give the code???
Here i am giving my code for integer values
function getBal(obj)
{
int v1 = document.getElementById('txtinspected_f').value
int v2 = document.getElementById('txtinspected_m').value
if ( !isNaN(v1) && !isNaN(v2) && !isEmpty(v1) && !isEmpty(v2) )
{
int baln = parseint(v1) + parseint(v2)
obj.value = baln
}
else
{
alert("Please fill the fields with valid numbers")
}
}
function isEmpty(txt)
{
if (txt == "")
{
return true
}
else
{
return false
}}
</end script>
and on the pageload,txt3.attributes.add("onclick","getBal(this)")
I have tried with float isstead of Int,but the result is not coming.
Is there any other way to get sum of two different txt's into third textbox.
please give me some idea.
also how to get morethan two zeroes(for decimal part) in a textbox while we enter a value.
THanks in advance
Regards
<div class="ForumSig">kissy</div>
|
|
|
|
|
hullo,
new to asp.net,just reading a couple of e-books,but wondering why i would i would turn on autopostback for a control,an example would be good on my part?
cheers
waskira
The nature of your experience depends on the nature of your view
|
|
|
|
|
you can use it when you are using a drop down, and you want to change some data on your page when value in drop down is changed. you can it like this with radio button and check box too.
Regards
Shajeel
|
|
|
|
|
thanks,makes pretty much sense now,What you are saying is that,if i want to change the values in all the other fields related to those in dropdown,i set the dropdown to autopostback?
Is this what you mean?
|
|
|
|
|
yes. for example when you have two drop downs for country, and cities in that country, you can populate city drop down on the change of country drop down etc. I personally do not use it because it can be a bit annoying as user can mistakenly chose wrong option and then have to wait for reload, a better option will be to give addition button for post back.
Regards
Shajeel
|
|
|
|
|
Thanks mate,any tips on how fast i can grasp asp.net?
will be greatful for any other assistance offered.
cheers
Waskira
|
|
|
|
|
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
' Dim GridView1 As New GridView
Dim Login As Businesslayer.Users = New Businesslayer.Users
'Check for empty date fields and give usera message
Dim str As String = " SELECT Rejected, Total_Hours, Category, Bill, Description, Hours, Date, Occupation, Project_Manager, Project_Member, Client_Site, Project_Name, Id_Number FROM Timesheet " & _
"WHERE (Date >= CONVERT(DATETIME, " & txtSDate.Text & " ))" & _
" AND (Date <= CONVERT(DATETIME," & txtEDate.Text & ")) ORDER BY Date "
Dim bLayer As New Businesslayer.GlobalFunctions
Dim reader As Data.SqlClient.SqlDataReader = bLayer.returnRecords(str)
'Test for record count > 0, give message to user for 0 records.
If reader.HasRows Then
Session("Client_site") = reader("ClientSite")
Session("Project_Name") = reader("ProjectName")
Session("Date1") = reader("SDate")
Session("Date1") = reader("EDate")
Response.Redirect("ViewTimesheet.aspx")
Response.End()
Else
UserMsgBox("Please select the Start Date and End Date")
End If
End Sub
*************
I want this button to display the gridview on the other page after the user select the starting date and Ending on to different calenders(according to the selected dates).
oga m
|
|
|
|
|
The same manner you are assigning the value to session object, you can read the value from the session object and you can populate the grid.
But in your question you are asking, "I want this button to display the gridview on the other page".
What do you mean here?
Regards
R.Arockiapathinathan
|
|
|
|
|
I have disabled my session statement,but it still giving me the same problem.
And when I say select all it diplay all the information inside the table in the gridview on the nextpage
oga m
|
|
|
|