|
|
I'm having difficulty adding dynamically loading one control GridViewControl.ascx to another (ControlOnPage.ascx).
Adding a placeHolder to Default.aspx and dynamically loading GridViewControl.ascx works fine. Click Edit, modify a field, click update - everything's in order.
Problem:
Add ControlOnPage.ascx to Default.aspx.
Add the placeHolder to ControlOnPage.ascx.
Dynamically add GridViewControl.ascx to the placeHolder.
This time the Edit link behaves like an empty PostBack button. RowEditing does not fire.
Any ideas?
Thanks,
B
|
|
|
|
|
Hi! All
I m trying to generating crystal reports with push mehtod but it gives error at:
report.FileName = Server.MapPath("report1.rpt");
report.Load(Server.MapPath("report1.rpt"));
as:" Load report Failed."
so how do i tackle this.
any suggestion will be anticipated.
Thanks in advance.
modified on Saturday, December 08, 2007 8:51:53 AM
|
|
|
|
|
Raza Bro (bhai)
its simple it can't find the file in the specified path
debug the code in which its is looking for the file report1.rpt
|
|
|
|
|
Dear Gamzun (Bro)
yes it does,
but it accepts right path instead of that prompt exception that's why
posted to here; to share with like u people.
Thanks for reply.
|
|
|
|
|
can anybody help me. I have to execute my event by pressing function keys in asp.net(1.1). Is it possible. Please help me.
|
|
|
|
|
<input type="text" name="txtPostalCode" onkeypress="if(!isNS4){if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;}else{if(event.which < 45 || event.which > 57) returnfalse;}" />
use this and call that javascript function from this so it will call that function when ever u click mouse or when ever use tab, its client too...
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
try event.keyCode in i.e.
for mozilla it's event.which
P.S.
|
|
|
|
|
thanks, i will check it and inform to all..
|
|
|
|
|
iam getting data from a database and iam storing that data in a datatable ..now i want this data to retain its values for every event calling how and if any updation is made to the table in any event then it should got effected to that data table..and also even the page is post back also it should retains its value untill the application closed.
|
|
|
|
|
Jagdeesh since you are on ASP.NET you will have to expicitly "maintain the state" of the DataTable.
heck out topic for state maintainance in ASP.NET
P.S.
|
|
|
|
|
The three session state options for ASP.NET are:
In-Process
Out-Of-Process with a Windows Service
Out-Of-Process with SQL Server
Use this to maintain the state sesion. More more details Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi! All
I m trying to creating crystal reports with push method (via Dataset);
but when it runs it displays a form that "The reprot you requested requires further information.
then has four textboxes Server name & Database name are uneditable,and other two are userID & password. ";
it never displays report.
But all works when i use to create crystal reprots with pull method (except dataset); it pop up same form over there but all fields are editable.
I set Crystaldecisions.share.connectionInfo at pageload event but it all in vain.
so how i solve this. any suggestion regarding this will be anticipated.
Thanks in advance.
|
|
|
|
|
How i check if a cloumn value is null when already a search condition is avilable.I want to put a cloumn value from the database.Getting the value on a serch condition,also if the returned value is null thn an error occurs in sql.I want to chk if the value is null or not ,if the value is not null return the value..How the query is wriiten for that.
sqlstatement = "SELECT UnitId FROM user_UnitRoles WHERE UserId='"+UserId+"' ";
object s=dbtObj.GetColumnValue(sqlstatement, "UnitId");
return s.GetType().ToString();
I attach the query with this mail .Plz tell what changes i want to do
|
|
|
|
|
I am not sure what you asking but i feel you should try to compare returned value to
System.DBNull in .NET CLR.
P.S.
|
|
|
|
|
change your logic, if your GetUnitId method doesn't have any record then it should return something which shows that it's null.
Push your brain and it will work out for you
|
|
|
|
|
what is the difference between Server.HtmlDecode and Server.HtmlEncode
Regards,
LEE
|
|
|
|
|
I'd have thought that was obvious. What does MSDN say ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Server.HtmlEncode encodes data and should be performed anytime that you are allowing for free text in an input field. Server.HtmlDecode decodes data that have been encoded with Server.HtmlEncode.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi iam using session("varname");now i want to clear this session how it wiil be possible plz
|
|
|
|
|
You can use session("varname")=null; to clear the session
Regards,
LEE
|
|
|
|
|
Hi
Session object in ASP.NET implements ICollection interface
So Session has a method
Session.Remove("entityName") ;
to remove all the items in Session collection one may use
Session.RemoveAll();
Session.Clear();
P.S.
|
|
|
|
|
By using Session("varname").Remove
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
how to develop spam filter application using asp.net with c#.net
plz help me
|
|
|
|
|
You probably need to have the list of spammer ip addresses in your database or need to use the third-party service for that..
|
|
|
|