|
oh..ok, thanks. I had 55 names I added using the Item List. I converted an Access database to SQL Server for someone, but there's no data in it. I guess later whatever she wants, it can be changed. Thanks for your time, have a good day.
|
|
|
|
|
I need help on Crystal Reports or Reporting Services.
I have some variables that I get it from the user as textbox or dropdownlist control than pass it to the Crystal Report or the Reporting services.
But, I can not do this. I don't know how to pass the variables (parameters) I get from the user and show the Crystal Report to the user.
Could someone tell me how to do this please.
Thank you so much in advance.
|
|
|
|
|
Respected Gurus
I have to export a datagrid to excel in asp.net1.1
my code is:---
Private Sub btnExport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExport.Click
Response.ContentType = "application/vnd.ms-excel"
' Remove the charset from the Content-Type header.
Response.Charset = ""
' Turn off the view state.
Me.EnableViewState = False
'Dim tw As New System.IO.StringWriter
tw = New System.IO.StringWriter
'Dim hw As New System.Web.UI.HtmlTextWriter(tw)
hw = New System.Web.UI.HtmlTextWriter(tw)
' Get the HTML for the control.
DataGrid1.RenderControl(hw)
' Write the HTML back to the browser.
Response.Write(tw.ToString())
' End the response.
Response.End()
End Sub
whenever i run this code i got the error message that control datagrid1_....
must be placed inside a form tag with runat=server.
i chack the same.
Plz suggest.
|
|
|
|
|
how can i make hot regions on an image map change colour with a change in some statement in the database
am trying
|
|
|
|
|
Hello;
I want to open a popup window, which shows details of a product, from gridview.
I used imagebutton for that aim in gridview and the code of that is;
ImageButton ID="ImageButton3" runat="server" OnClientClick ="javascript:openEkBilgi('ekBilgi.aspx?Kod=<%# Eval('Kod') %>');" Height="21px" ImageUrl="~/images/makefileappwiz.ico"
and the javascript code is:
function openIcerik(pagename)
{
window.open(pagename,'icerik','width=500,height=550');
}
and the ekBilgi.aspx.cs code is:
public partial class ekBilgi : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string Kod = Request.QueryString["Kod"].ToString();
String con_str;
object obj;
SqlCommand cmd;
con_str = WebConfigurationManager.ConnectionStrings["EgitimConnectionString"].ConnectionString;
SqlConnection conn = new SqlConnection(con_str);
cmd = new SqlCommand("Select EkBilgi from Egitim where Kod=@Kod", conn);
cmd.Parameters.AddWithValue("Kod", Kod);
conn.Open();
obj = cmd.ExecuteScalar();
conn.Close();
Label1.Text = (string)obj;
}
}
}
but it doesn't work.
Can somebody help me...
|
|
|
|
|
You javascript is not correct. You have:
openEkBilgi(
You need
window.open(
Hope that helps.
Ben
|
|
|
|
|
Thanks for your help.
But I used javascript function, in it I used window.open() like below:
function openIcerik(pagename)
{
window.open(pagename,'icerik','width=500,height=550');
}
Function is coming from the imagebutton OnClientClick event, as below:
ImageButton ID="ImageButton3" runat="server" OnClientClick ="javascript:window.open('ekBilgi.aspx?Kod=<%# Eval('Kod') %>');" Height="21px" ImageUrl="~/images/makefileappwiz.ico"
I tried also your suggestion, but again it did not work.
Could you please look again for see is there anything wrong...
So thankss.
Tahsin Ateş
|
|
|
|
|
Perhaps you should just add an anchor tag instead of the imagebutton:
<a id="hyperLink" title="icerik" target="_blank" href='<%# "ekBilgi.aspx?Kod="+DataBinder.Eval(Container.DataItem,"Kod").ToString() %>'>makefileappwiz</a>
You might want to try using DataBinder.Eval as well.
Hope that helps.
Ben
|
|
|
|
|
Thank you very much, it works. But in my project I want to show that details in a small popup window. İf I can fix the size of that explorer page, It can also help me. Do you know how to do that.
Thank you very much...
Tahsin
|
|
|
|
|
You could add some java script to the load event of that page and do these javascript functions:
window.moveTo(0,0);
window.resizeTo(500,500);
Ben
|
|
|
|
|
So thanks.
Have a nice day...
|
|
|
|
|
Sorry. my javascript knowledge is not good. Can you show how to write javascript in my page load event.
Thanks
|
|
|
|
|
What version of visual studio are you using? .net 1.1 or .net 2.0? It affects the syntax a little bit. VB.net or C#?
Ben
|
|
|
|
|
ASP.NET 2.0 and I am using C#.
Thank you.
Tahsin
|
|
|
|
|
First in the page_load event of the for in the code behind. You will want to have:
If (!IsPostBack)
{
Type t = this.Page.GetType();
this.Page.ClientScript.RegisterClientScriptBlock(t, "resizeWindow",
"window.moveTo(0,0);window.resizeTo(500,500);", true);
}
So it will run once the first time the page is loaded.
Hope that helps.
Ben
|
|
|
|
|
Thank you very much.
It is now good with your helps.
Have a nice day.
Bye...
Tahsin
|
|
|
|
|
Hi,
I am using asp.net c# in my project
i want to validate users using certificate authentication for that i want to install and issue certificate in client browser..but the problem is doing this we need "Microsoft Certificate Services " my os is windows XP professional is not support this facility what to do? please help me.i am really need your help.....waiting fo your response...
regards
alex.
|
|
|
|
|
If you are looking for test SSL certificates, you can check out SelfSSL and SSLDiagnostics .
|
|
|
|
|
i created a global.asax file in the poject.There is a page by the name of
default.aspx.at it's form load i write the following code
If (Not Page.IsPostBack) Then
Session("abc") = "abc"
Session.Timeout = "10"
End If
in the global.asax file session end function i wrote the following code
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
If (Session("abc") Is Nothing) Then
End If
End Sub
because i was thinking , if the session value expires then the global.asax file session end function will get called.
I am thinking right?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Sonia Gupta wrote: because i was thinking , if the session value expires then the global.asax file session end function will get called.
I am thinking right?
Yes
|
|
|
|
|
When the particular session values expires , then i want the control to go to the session end function , but it does not goes to the session end function.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Sonia Gupta wrote: When the particular session values expires , then i want the control to go to the session end function , but it does not goes to the session end function.
This depends on how you are ending session. If you are using Session.End() , I think event won't be fired. But if you use Session.Abandon() it will fire event. Your sites session timeout will be set to 20mins by default. If it is a normal session out, session_end event will be fired.
|
|
|
|
|
Sonia Gupta wrote: When the particular session values expires
Session values doesn't expire. Only the session itself can expire.
---
single minded; short sighted; long gone;
|
|
|
|
|
This is only true if you are storing your session "InProc" If you are using a session server or sql server to store session you will not get an end session event.
Ben
|
|
|
|
|
kubben wrote: If you are using a session server or sql server to store session you will not get an end session event.
Oops I forgot this point
|
|
|
|