|
You should also look at Microsoft Virtual Earth API's for .NET. You get a complete .NET framework for integrating Microsoft Live maps without all the hassle of wrapping Google's API's for use with .NET first.
|
|
|
|
|
In crystal report it works fine with parameters. How can I link my report to ASP.NET
|
|
|
|
|
|
I am trying to upload files in my application using ASP.NET.
I need to restrict the file size to 11 MB. But i am unable to restrict the size
|
|
|
|
|
|
Hello everyone
ASP.net uses Business Object Crystal Report which will give you a PDF file output when you click "print"...
how can i use/invoke/run "Adobe PDF Reader" inside the web browser without installing it in the client station?
thank you in advance...
xxx
|
|
|
|
|
hello,
when i put a hidden field in a form and run it i look at the page source and see the following :
<input type="hidden" name="ctl00$ContentPlaceHolder1$UserName" id="ctl00_ContentPlaceHolder1_UserName" value="sasa" />
<input type="hidden" name="ctl00$ContentPlaceHolder1$PassWord" id="ctl00_ContentPlaceHolder1_PassWord" value="tttyyy" />
.
i want the names to be UserName and PassWord and not with
the 'ctl00$ContentPlaceHolder1$' before them
how do i change it ?
those fields will not be posted back to the page but will go to
another url which is not related to my project. i added the 'postbackurl=' to the button click
btw , i dont use simple html hidden tags because their values are set from a database
tnx,
avi
modified on Saturday, May 16, 2009 4:18 AM
|
|
|
|
|
you can just user html input ,not asp.net input ,if you change the name the server will can not find this input.
|
|
|
|
|
yes , but i need to add dynamic values to those fields which are read from a database.
if i use simple html tags i cant change their values easily can i ?
|
|
|
|
|
Hi all,
I have created a class library for my application. I have some typed datasets in this class library. While creating the datasets , VS asked me whether to save the connection string in the config file and it created a seperate app.config file in the class library. What i need is that while calling the class library, i should be able to pass in the connection parameters from my applications web.config file and it should not create ant app.config file.
How can i do this??? Any help would be kindly apperciated...
When you fail to plan, you are planning to fail.
|
|
|
|
|
Add reference System.Configuration namespace to your class libarary.
Use ConfigurationManager.ConnectionStrings["YourConnectionStringNameFromWeb.Config"] in your in the class library.
Therefore when this class libarary is called in the asp.net web application, it automatically get the connection string from web.config.
|
|
|
|
|
How r u ladies & gentelmen ?
The problem is:
I have asp page (P1.asp) and inside it I call a function (.draw) in another asp page (P2.asp)which hold all data about the graph I wanted to draw it in P1.asp inside BUT after compilation P1.asp, the graph (the result of P2.asp) will show first then P1.asp will show.
I need to show the result of P2.asp after compilation in the same in a specific area I means not in the top of the page then loads P1.asp
I need--->P1.asp to load everything: same contents of P1.asp contain and here display the graph or the result of P2.asp after clicking buttonsthe wrong---> load the graph of P2.asp here in the top of page then load P1.asp down of the graph.
I appreciates ur effort and thank you all in advanced.
Diya Qudaih.
|
|
|
|
|
There is no way to do that exept one way that:
use window.open("ur asp page?ur parameters all what u want","name","properties")
thnx all.
|
|
|
|
|
Hi,
In my website I hv written JavaScript in c#.net code behind page using this.RegisterStratupScript in which i want to assign one variable's value to session .
Please, give me solution .
Thank you.
|
|
|
|
|
Do you know Session is maintained at Server and javascript executes at client. So why in the world, you want to assign a variable to session through JS.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i want to design file uploader button
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Yeah, go ahead
|
|
|
|
|
Hi all, I have used some html checkboxes in one webpage. Using client side script I am putting some values in the Value property of those checkboxes.
But I am not being able to recognize those values from my server side code. I have tried the following techniques, but invain.
string str=CheckBox1.Attributes["value"].ToString();
string str=Checkbox1.Value;
But none worked.Can any one help me out???
Thanks and Regards
ARINDAM
|
|
|
|
|
Hi
My requirement is i have an application form which has entries like name,dob,qualification,exp and upload resume(file field). when somebody fill this form, upload his resume and press submit ,i want these details and resume to get in my yahoomails inbox. but when i try this with local host it doesn't work i hve given the ip address in default smptservers relay button. i am using asp.net 2003 can anybody pls help me why i am not getting this correctly.Below i am giving the code i hve used
Imports System
Imports System.Data.OleDb
Imports System.web
Imports System.IO
Imports System.Web.Mail
Imports System.Web.SessionState
Imports System.Collections
Imports System.ComponentModel
Imports System.Drawing
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Function FncSubmit()
Dim szSQL As String
Dim objdr As OleDbDataReader
Dim icnt As Integer
Dim sapplnno As String
Dim szFileBiodata As String
Dim szfile As String
Dim iapplnno As Integer
Dim attach1 As String
Dim objEmail As New MailMessage
objEmail.To = "abc@yahoo.co.in"
objEmail.From = txtEmail.Text
objEmail.Subject = txtName.Text & "," & txtQualif.Text & ", " & txtExp.Text
objEmail.Body = "hi"
If Not file1.PostedFile Is Nothing Then
Dim attFile As HttpPostedFile = file1.PostedFile
Dim attachFileLength As Integer = attFile.ContentLength
If attachFileLength > 0 Then
szfile = Path.GetFileName(file1.PostedFile.FileName)
file1.PostedFile.SaveAs(Server.MapPath(szfile))
Dim attach As MailAttachment = New MailAttachment(Server.MapPath(szfile)) ' Attach the Newly created email attachment */
attach1 = szfile
objEmail.Attachments.Add(attach)
End If
End If
objEmail.Priority = MailPriority.High
SmtpMail.SmtpServer ="localhost"
Try
SmtpMail.Send(objEmail)
'MessageBox.Show("Your feedback has been submitted.")
MessageBox.Show("Your application is submitted")
Catch exc As Exception
MessageBox.Show("Failed to submit your feedback: ")
'MessageBox.Show(exc.ToString())
Response.Write(exc.ToString())
End Try
If attach1 <> "" Then
File.Delete(Server.MapPath(attach1))
End If
anybody pls help me this is urgent
thanks in advance
with regards
anitha
modified on Friday, May 15, 2009 11:25 PM
|
|
|
|
|
Why did you assign both IP and localhost to SmtpMail.SmtpServer in the line SmtpMail.SmtpServer ="localhost"' "127.0.0.1"?. Use either one.
Also post the error message, if this is not working.
|
|
|
|
|
i hve gven only local host. there is no error message shown but iam not getting email in my inbox
|
|
|
|
|
use smtp.net.mail
make object of
SmtpClient smtp1 = new SmtpClient();
smtp1.Send(objMail);
objMail containt the details of Mailt TO, Mail From, Body etc .
use this u can easily send the mail.
Regards
Keyur
|
|
|
|
|
Can u please send me a sample for Grid view where I have a column where I can edit, delete and insert data in Gridview.
|
|
|
|
|
|