|
Hello,
I am working with VS 2.0. i written code for dropdownlist filling using icallback event. when i use this event is working for dropdownlist. and in that page i had one button control when i click on button i am getting below error.
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
What may be the reason.
Please Help me...
Thanks
Pinna
|
|
|
|
|
y..no answers for this questions...Is question wrong or anything....!
Pinna
|
|
|
|
|
Hi all,
I don't want login in a system when another person
logged in another system with the same user name.
How can i do this
I need your help,
Thank You,
Hoda
|
|
|
|
|
You can use some common database for the all loggedin users and check every time when one is going to login whther someone has loggedin with a same userid or not.
Cheers!!
Brij
|
|
|
|
|
You can suggest as brij said, or try to find one article on codeproject, there was a great soluation for that problem.
I am not able to find that link right now. I will send you if i got that same link .
|
|
|
|
|
The obvious way is in your database have a field that tells you a person is logged in, and if they are, don't allow another login. The issue with this is, you cannot be sure to catch any event that tells you a person has logged out, so you should also store a timestamp every time that user requests a page and when you check if they are logged in, also check that to see if it's been long enough to assume it has expired.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi all
I have a form that updates the image for a user, when i update the image, the old image still appear, the update does not take effect from the first page load
I need your help
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
nour123 wrote: he update does not take effect from the first page load
Its means after post back image is not coming ?
Are you using Caching ?
|
|
|
|
|
No
i don' use caching
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
Does your image control getting reloaded after the update. for instance try updating the user image as <username>_<version no="">.jpg etc. so when you try change the image. Check weather the image control loads the next version (<username>_<version_number+1>)
Venky
|
|
|
|
|
Hi
I have been working on VS2008 and i am using System.Data.OracleClient to connect with Oracle 9i DB.
I am getting the following error when i run the application.
"System.Data.OracleClient requires Oracle client software version 8.1.7 or greater."
Do i need to install oracleclient software on my machine to access oracle db or what should i do?...
How to resolve this please help me..its very urgent..
Thanks in advance.
Regards
Arun
|
|
|
|
|
arunvtyc wrote: How to resolve this please help me..its very urgent
Not urgent enough to use paid support, obviously.
arunvtyc wrote: "System.Data.OracleClient requires Oracle client software version 8.1.7 or greater."
Kind of gives it away I would have thought.
arunvtyc wrote: Do i need to install oracleclient software
No, it just works psychically
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi All,
i am posting data to url like this:
http://thisissomeurl.com/psm/msd?data=RequestData&action=send
where RequestData is the variable contains very huge data,so i am getting an exception like 'URI too long 414 Error'
if i try to change the URL the Remote server is giving an error like the URL specified is not in the correct format..
if i give less data in RequestData Variable it is working fine..
but my data is very huge so i am getting the Above 414 Exception
can anybody please help in this regard....
thanks in advance...
Regards,
RK
|
|
|
|
|
download problem from Secure Sockets Layer enabled site(https)
I got error message this
"
internet explorer was not able to open this internet site.this requested site is either unavailable or cannot be found .please try later"
i ca't download file
i am using following code
to download the file
string outputFile = "test 1";
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "inline; filename=test.xls" );
Response.AddHeader("Pragma", "public");
Response.AddHeader("Cache-Control", "max-age=0");
Response.Charset = "";
EnableViewState = false;
Response.Write(outputFile);
Response.End();
it's working normal http site,
in https site it's not working ,means i deployed as Secure Sockets Layer enabled site, error happen
mohamad rafi
|
|
|
|
|
I have a dropdownlist. In dropdownlist there is name of colours, which colour is selected that colour show in the page background. how is it possible in c# in asp.net.
|
|
|
|
|
You can create seperate themes for that. Add value in Dropdown list based on themes color. Then you can change theme on dropdownlist selectd index change.
|
|
|
|
|
You can also make HTTPHandler for the theme change
Cheers!!
Brij
|
|
|
|
|
i m using a datetime picker dll which provides me facility to get and set date programmaticallly now my problem is i cannot assign value to it using javascript.
it gets and sets value in code behind perfectly but not from javascript
i am using
document.getelementbyid('<%id.clientid%>').value=value;
please guide what to do???
umerumerumer
|
|
|
|
|
mr_muskurahat wrote: i am using
document.getelementbyid('<%id.clientid%>').value=value;
<br />
document.getelementbyid('<%=id.clientid%>').value=value
|
|
|
|
|
After putting the value,are you submitting the page?
Cheers!!
Brij
|
|
|
|
|
hiii i want to add a menu control in my web site menu list is coming dynamically from sql database but navigation url is not coming properly ... how to code for navigation ..
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
HyperLink1.Visible = False
Dim ds As New DataSet()
Dim connStr As String = "Data Source=192.168.0.2;Initial Catalog=forum_data;Persist Security Info=True;User ID=sa;Password=sa"
Using conn As New SqlConnection(connStr)
Dim sql As String = "Select MenuID, Text, Description, ParentID from Menu"
Dim da As New SqlDataAdapter(sql, conn)
da.Fill(ds)
da.Dispose()
End Using
ds.DataSetName = "Menus"
ds.Tables(0).TableName = "Menu"
Dim relation As New DataRelation("ParentChild", ds.Tables("Menu").Columns("MenuID"), ds.Tables("Menu").Columns("ParentID"), True)
relation.Nested = True
ds.Relations.Add(relation)
xmlDataSource.Data = ds.GetXml()
If Request.Params("Sel") IsNot Nothing Then
Page.Controls.Add(New System.Web.UI.LiteralControl("You selected " & Request.Params("Sel")))
End If
End Sub plx tell mee////
|
|
|
|
|
I am displaying text and image data through repeater on home page of a website in asp.net but i want to check first if any image data is attached with text data then image should display on left site and the text should display on right site
I have also image class.
how can i write this code in HTML?
how i should write IF statements in HTML?
Kindly do replay
Sajjad
|
|
|
|
|
sajjadlashari wrote: how i should write IF statements in HTML?
You don't need to write IF conditions in HTML. Work with the events provided by repeater control. You can handle the template and it's contents from those events. Check your condition there.
|
|
|
|
|
Dear I am asking how to writ code in repeater item tag for check the image if image is with the txt data
can u send me some code matching of this problem
|
|
|
|
|
hi all,
in my project, i want to save a particular part(say a panel) as an image. is it possible to save a div or panel as image. please help me.
|
|
|
|