|
How to prevent multiple user logins.Plzzz Help
Thanks in advance
|
|
|
|
|
check this article out:
http://www.eggheadcafe.com/articles/20030418.asp
We are not a Code Charity
|
|
|
|
|
I am creating an IE toolbar and I need it to launch a javascript page when the toolbar button is clicked.
Below is the code that I am using and getting errors.
private void btnToolStrip_Click(object sender, EventArgs e)
{
// Launches the post window
Page.ClientScript.RegisterStartupScript(this.GetType(), "CustomButton", "<script language=JavaScript> window.open('http://hvkclncswsvr10.gign.kcl.mtec.mds.lmco.com/tachyon_proj/post/?item='" + content.document.location.href + "'&title='" + encodeURIComponent(document.title) + "','Tachyon Post','width=850,height=500,resizable=yes');</script>");
}
When i build this i get errors on the name Page, content, encodeURIComponent, and document. Is it possible to run the JS this way from a ToolStripButton clcik event or do I need to do it another way?
|
|
|
|
|
i have to make a search form which contain 1 listbox which can select multiple values and 3 dropdown, user can use any combination to select the value and hit search button. I have to generate select query for this scenario plz any1 can help?
Thank you.
|
|
|
|
|
1. Create a Listbox
2. Populate it with values
3. Write a query which selects * from a table where the criteria meets what the user has entered.
Make sure the query is a stored procedure not inline else it could be open to SQL injection attack.
let us know once you have done that
We are not a Code Charity
|
|
|
|
|
hello,
i created a code that call a stored procedure, the problem is that in windows form it's working fine, ut in web form my filled DataTable remain 0 rows count
here is the code:
DataTable dtRept=new DataTable();<br />
DataTable dtagntInfo= new DataTable();<br />
string dateTm=DateTime.Now.ToString("d/M/yyyy");<br />
SqlConnection cnDigitalk=new SqlConnection("datasource=111.111.111.111;initial catalog=NORTHWIND;USER ID=SOMEID;PASSWORD=SOMEPASSWORD");<br />
SqlCommand cmd=new SqlCommand("sp_name",cnDigitalk);<br />
cmd.CommandTimeout=0;<br />
cmd.CommandType=CommandType.StoredProcedure;<br />
cmd.Parameters.Add("@datetime_from",SqlDbType.DateTime).Value= dateTm +" 00:00:01 AM";<br />
cmd.Parameters.Add("@datetime_to",SqlDbType.DateTime).Value= dateTm +" 11:59:59 PM";<br />
SqlDataAdapter daReport=new SqlDataAdapter(cmd);<br />
daReport.Fill(dtRept);
in webform: dtRept.Rows.Count=0
pleas if someone could help
thanks in advance and best regards
|
|
|
|
|
SqlCommand cmdsql = new SqlCommand("select_all_from_table", con);
cmdsql.CommandType = CommandType.StoredProcedure;
SqlDataAdapter dataAdapteritems = new SqlDataAdapter();
dataAdapteritems.SelectCommand = cmdsql;
DataSet dataSetitems = new DataSet();
dataAdapteritems.Fill(dataSetitems);
DataTable dtitems = dataSetitems.Tables["table"];
something like that, try that
We are not a Code Charity
|
|
|
|
|
again this code worked on the windows form but not in my web form, do you think is it a mater of configuration, the code is seeing the stored procedure but it's not returning any value
thanks for helping
|
|
|
|
|
have you got this declared at the top:
using System.Data.SqlClient;
We are not a Code Charity
|
|
|
|
|
yes of course other wise it will give me an error using sqlconnection and sqlDataAdapter
|
|
|
|
|
I'm really stuck then, is your connection string formatted correctly for the web form?
Apart from that I'm not sure, Ive got the same code working on my page
We are not a Code Charity
|
|
|
|
|
i'm also that turned my head upside down, anyway thank you for your concern.
Regards
|
|
|
|
|
Where you are using 'dtRept'?
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
thank you sherine and netman,
i found the problem
regards
|
|
|
|
|
In my web page, I have two buttons for Submit (Web control) and Close (Html button). If I open my web page as maximized size, it is placed well at the bottom of the page. If I minimize the form, it is misplaced at middle of my web page. In that page, I am using 2 table contents. I used these button inside the table and outside the table both. I didn't get proper solution. What I have to do? Thanks in adv.
Balasubramanian K.
|
|
|
|
|
The reason that the button moves around the page is because you havent got its location attribute as 'fixed' instead you probably have it as 'absolute'
We are not a Code Charity
|
|
|
|
|
Hi,
Iam using telerik radgrid control in my application.
iam using the following code in my application.
// arraylist with one record
arraylist al=new arraylist();
al.add(new("fsf"));
// binding radgrid control with arraylist
radgrid1.datasource=al;
my problem is , i have one textbox and one button on the same page.if i click button the value in textbox will be inserted in radgrid1(radgrid control not gridview).
thanks in advance.
madhavi.kona
|
|
|
|
|
madhavi.kona wrote: .if i click button the value in textbox will be inserted in radgrid1(
Do you mean you want to do this or you have already done this?
We are not a Code Charity
|
|
|
|
|
i want to insert record in to the radgridcintrol
can u help me.
madhavi.kona
|
|
|
|
|
bind the control to a datatable which has been populated with field from your table.
We are not a Code Charity
|
|
|
|
|
Hi,I have created an web report using crystalreport.There is an image(for barcode) field in this report.The crystal report datasource is from an xml schema.The datatype of that image field is base64Binary.But the problem is that when I am showing that report with Crystal Report Viewer,the image field is shown empty.But when I Print the report or export the report to any format,it shows the Image(Barcode) properly.Do you have any solution to this problem guys.I am clueless.I have been with this problem for last 3days.Plz help me out.
ARINDAM
ARINDAM
|
|
|
|
|
Hi
I'm using crystalreportviewer on my page. I need to save report as word document on server.
I've written following code. but I'm getting error at highlighted line.
CrEmReport is crystalreportviewer object.
Me.CrEmReport.ParameterFieldInfo.Clear()
Me.CrEmReport.ReportSource =Server.MapPath("EmCallupReport.rpt")
Dim ParamFields As ParameterFields = Me.CrEmReport.ParameterFieldInfo
Dim emTicketId As New ParameterField
emTicketId.Name = "VTICKETID"
Dim emTicketId_Value As New ParameterDiscreteValue
emTicketId_Value.Value = objTicket.ticketId
emTicketId.CurrentValues.Add(emTicketId_Value)
ParamFields.Add(emTicketId)
For Each cnInfo As TableLogOnInfo In Me.CrEmReport.LogOnInfo
cnInfo.ConnectionInfo = ConnInfo
Next
Dim strDate As String = Convert.ToString(objTicket.emRaisedDate)
Dim objReportDoc As New ReportDocument
<big>objReportDoc = CrEmReport.ReportSource</big>
objReportDoc.ExportToDisk(ExportFormatType.PortableDocFormat, "\\app_data\\uploads\\Reports\\Emergency\\Emergency_" & objTicket.deptName & "_" & strDate)
Please someone help me with this code.
Thanks in advance,
Puneri
|
|
|
|
|
WHat does the error say?
We are not a Code Charity
|
|
|
|
|
Unable to cast object of type 'CrystalDecisions.ReportSource.NonHTTPCachedReportSource' to type 'CrystalDecisions.CrystalReports.Engine.ReportDocument'
|
|
|
|
|
hai friends
i have a page"FramePage.aspx"
in that i took two "iframes" namely "iframe1" and "iframe2"
iframe1 has src as default.aspx page and iframe2 has src as default2.aspx
default.aspx refreshes per 2min
after refrshing i raise buttonclick event of default2.aspx page thru default.aspx
for that i written javascript like this
//this function takes a value (ltext) and transmits that to the left hand frame
function tranRight(ltext)
{
//parent.frames("frame1").document.forms("form2").item("TextBox1").value = ltext;
parent.frames("frame1").document.getElementById('Button1').click();
}
and in defaultpage in page load event
i written
ClientScript.RegisterStartupScript(GetType(Capture), "close", "tranRight('upload');", True)
its working fine in localhost
but when i upload it into website it doesnt work
what would be the problem
it is working in localhost but not in website
plz help me
thanks in advance
vijay
|
|
|
|