|
Select image means what ? Can you post the code for it ? Again ytpe of image you are selecting ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
how can i display a popup window when i click a link on a datagrid?
thks
yesu
|
|
|
|
|
Page.RegisterStartupScript("scriptPopup","var nWin = window.open('map.aspx?Id=" + ID + "')");
ID is the identification number if you want to pass to the particular page.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
call Javascript fuction on link button event.
Best Regard
Pathan
GOD HELP THOSE WHO HELP THEMSELF
|
|
|
|
|
just add target = "_blank" to the hyperlink html property
Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
i am making web application using C# , asp.net ,sql2000 ( visual studio 2005).
i am using following code on button_click
protected void Button1_Click(object sender, EventArgs e)
{
ReportViewer1.Visible = true;
setting = ConfigurationManager.ConnectionStrings["NorthwindConnectionString"];
if (setting != null)
{
conn = new SqlConnection(setting.ConnectionString);
cmd = new SqlCommand("ShowProductByCategory", conn);
cmd.CommandType = CommandType.StoredProcedure ;
cmd.Parameters.Add("@CategoryName", SqlDbType.VarChar);
cmd.Parameters["@CategoryName"].Value = DropDownList1.SelectedItem.Text;
da = new SqlDataAdapter(cmd);
ds = new DataSet();
da.Fill(ds, "datas" );
ReportDataSource datasourse = new ReportDataSource("datasetprodiuct",ds.Tables["datas"]) ;
//datasourse.Value = ds;
//ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(datasourse) ;
if (ds.Tables["datas"].Rows.Count == 0)
{
lblmessage.Text = "sorry";
}
//ReportViewer1.LocalReport.Refresh();
}
}
i am trying to generate report using reportviewer but getting following error
An error has occurred during report processing. ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'GetData' that has no parameters.
Please help.
thanks
regards
imran khan
|
|
|
|
|
i want to pass an arraylist from my client to the web service but it is giving a serialization error...
|
|
|
|
|
What objects does the arraylist contain?
|
|
|
|
|
it contains string values
|
|
|
|
|
Can you post some code? If the arraylist is part of another object you have to mark the object and the arraylist properties as Serializable
|
|
|
|
|
I think for passing objects to webservice you need to searialize the objects
|
|
|
|
|
Hi i have doubt how to use vb codes in asp.net,
Magi
|
|
|
|
|
My friend Google is best friend for you Please take help from it
VB is language you can use it by adding language=VB or something like that
But definatly you will get more problems while devloping thats why i am suggesting you refer Google
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Thanks
Magi
|
|
|
|
|
Magh_M wrote: ow to use vb codes in asp.net,
Convert your vbcode into dll and refer that here
|
|
|
|
|
Morning
am a beginner in (programming)asp.net(vb).Please help me with the code,After the user selected the value from the dropdownbox,and enter some in the textboxes,when the user click add entry(button),the values to be anded to the database and be displayed in the datagrid,for modification.
Thank you in Advance.
oga m
|
|
|
|
|
Explaining the entire thing through forums is space consuming. so try to get some article explaining
1. SQLConnection class
2. SQLCommand
3. Executing query to SQL DB
Oga M wrote: displayed in the datagrid,for modification.
Getting value to some dataset and use datagrids datasource property to display it on grid
|
|
|
|
|
In sqlcmd write insert query,
after that using dataadapter get the table,
then fill it in to dataset,
then datasource put it in to datagrid,
then bind the data in datagrid using databind,
Magi
|
|
|
|
|
Hi. Oga.
This is very simple thing.U need to learn about asp.net.
Take it and try to do urself
Link[^]
Best of Luck
Best Regard
Pathan
|
|
|
|
|
Hi friends,
I am facing a PROBLEM WHILE I send mails with the SMTP class of System.Net.Mail.
The code shows below.
MailMessage mail = new MailMessage();
//set the addresses
mail.From = new MailAddress("from@domain.com");
mail.To.Add("to@domain.com");
//set the content
mail.Subject = "This is an email";
mail.Body = "this is the body content of the email.";
//send the message
SmtpClient smtp = new SmtpClient("mysmtpserver.net");
//to authenticate we set the username and password properites on the SmtpClient
smtp.Credentials = new System.Net.NetworkCredential("user@domain.com", "password");
smtp.Send(mail);
I have a valid smtp server name, username and password. I configured it to outlook and working fine. And wen I test it using telnet port 25 then also its working.
I upload the file to my hosting space. I have two hosting account with godaddy.
The mailing script is working fine in one hosting account. That hosting account have SSL and dedicated IP address.
But the mailing code is not working in the other hosting account. That hosting account is Windows hosting + ASP.NET 2.0 supported.
The error I am getting is as shown as below.
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at _Default.Button1_Click(Object sender, EventArgs e)
Please help me on this issue....
Thanks in advance....
JIJO BABY - Lets Play C#
|
|
|
|
|
how can i add attribute for a control in datagrid for javascript valiation?
i gave Dim hl As New HyperLink
hl = e.Item.FindControl("HyperLink1")
but showing error "Object reference not set to an instance of an object"
thks
yesu
|
|
|
|
|
when a grid is rendered on to the page ..ID of the control changes as DataGrid_ct1_... so use find control for this ID ...then it will work
Koushik
|
|
|
|
|
i find the control with this id..but it didt work.what is will be the full id for that?
i find by:
Dim hl As New HyperLink
hl = e.Item.FindControl("DataGrid_ct1_")
pleas make me correct..
thks
|
|
|
|
|
The id will be ataGrid_ct1_ + yourcontrolname
|
|
|
|
|
Hi
When grid is binded, it will raise ItemDataBound Event. You will get the current row in parameter e. Use that parameter and find the control. After that add attribute. It could be something like
HyperLink hyp = (HyperLink) e.Item.Cells[YourCellIndex].FindControl("HyperLink1");
|
|
|
|