|
Yes, like the list displays notification options. The user selects them to be notified when an event occurs. Then later on, user can change mind and de-select one - indicating he/she doesn't want to be notified in that event. Thats why I need to delete it from the table.
Thanks.
|
|
|
|
|
Hello,
I am trying to other user controls within a single control. A couple of them reside in another assembly (AjaxToolkit), and one resides within the assembly I am trying to create. How do you link to these other control to utilize in a composite control. They are all created with the $create method. ANy ideas or documentation would be appreciated.
Thanks,
Leo T. Smith
Program/Analyst Supervisor
|
|
|
|
|
I'm using VB.net
I successfully created a node, then seconds after, in the same procedure, for reasons not needing explanation here, I want to update an attribute in that node using xmldoc.selectsingle node. But I get a runtime error. In debug mode, the node reads as nothing.
I checked the XML and the node is there and the path in the xmlnode declaration is correct.
I created a seperate page, using only the update portion of the "creation/then update" procedure mentioned above. It works fine!?!?!
The update code is idential in the two procedures. Is there something I am missing that causes the node not to be recognized seconds after created in same procedure. I know it does not make sense but I just cannot understand why I am getting a runtime error in the first procedure.
|
|
|
|
|
1 - post some code
2 - this is not an asp.net question
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I need a small help.
For the time bieng, I am designing a site.
When I select a country, the state Drop down List should display the states of that particular country only.
Well, it happens. But the problem is,the form is refreshed from the server side.
I want the form to be refreshed from the client side.
Do you know any other method or script that will refresh from the client side?
I have enabled Auto Post Back.Data populates from the database to the combo(Drop down List).
Can we solve the above question by disabling the Auto Post Back option also, and how?
Hope you will help me.
razik 9895916921
|
|
|
|
|
Use ASP.Net AJAX "UpdatePanel" Control and move all your DropDownList Controls inside it, then set the triggers of UpdatePanel to event when Selected Item Changed on DropDownList, and it will generate some client side code for you for partial page update. so no coding is required. Also set the auto postback to "false".
If you dont know what is ASP.Net AJAX Control Toolkit, then download it from ajax.asp.net. there is a video tutorial available on that site, which will describe you how to setup the toolkit with your web application and how to use the UpdatePanel Control.
|
|
|
|
|
Hi,
Probably this is not a question to ask in this forum . but I could not decide. Just putting things in abstract level. I have a primary function which insert some rows to DB0 tables and calls subFun1 and SubFUn2 who connection to different databases and insert some rows in tables in there.
Say I get error in subFun2 function I need to rollback everything what was inserted till that point from DB0 tables, DB1 tables and may from DB2 tables also. How to achive that here?
If exception occurs in subFun2, it will throw exception to primary function and only DB2 and DB0 transactions will be rolled back but not from the DB1 transactions. Any workaround for this
sub primaryfunction()
try
SqlConnection0 = Connection to DB0
SqlTransaction0
Insert/Update some table
call function SubFun1
call function subFun1
call function subFun2
SqlTransaction0.commit()
catch exception
SqlTransaction0.rollback()
end sub
sub SubFun1
try
SqlConnection1 = Connection to DB 1
SqlTransaction1
call function SubFun1
call function subFun1
call function subFun2
SqlTransaction1.commit()
catch exception
SqlTransaction1.rollback()
throw exception
end sub
sub SubFun2
try
SqlConnection2 = connection to DB2
SqlTransaction2
Insert/Update some table
SqlTransaction2.commit()
catch exception
SqlTransaction2.rollback()
throw exception
end sub
|
|
|
|
|
According to my understanding Create a Connection and Transaction object in primary function for both sub function and then pass it to the both sub function instead of creating in sub functions. Then you can easily handle transaction control in Primary function.
Parwej Ahamad
|
|
|
|
|
Hi all,
The following code snippet is written is in asp.i need to convert it as asp.net.I dont how to check and retrieve a query string variable in td(table column) in asp.net.Please help me.
<%
select case request.querystring("msg")
case "success":
strMsg = "Your message has been sent<br/>";
case "delete":
strMsg = "Your message has been deleted.<br/>";
end select
%>
<%
if strMsg <> "" then
%>
<tr>
<td><b><%=strMsg></b></td>
</tr>
<%
end if
%>
Thanks in advance.
|
|
|
|
|
Just read query string in this way .
string message=Request.QueryString["msg"]
cheers,
Abhijit
|
|
|
|
|
Thanks Abhijit.It worked.
|
|
|
|
|
U can't directly access QueryString in aspx page Put it in a hidden control (in Code behind) and then access it using JavaScript
|
|
|
|
|
Nishant Singh wrote: U can't directly access QueryString in aspx page
Yes you can.
|
|
|
|
|
Hi
Can any one let me know, How to change the color of Div based scrolls in Mozilla firs fox ?, i have just implemented it it's working fine, but it's not working in Mozilla Firefox, thanks in advance, kinly reply ASAP,
regards,
|
|
|
|
|
King Shez wrote: i have just implemented it it's working fine, but it's not working in Mozilla Firefox,
Where its working fine ? How did you change the color ? obviously using css . and its working in IE only isn't it.
But , AFAIK, FireFox does not support to change Div scroll color using CSS. If you want to implement it, try to using javascript.
Now you can take help from google.
cheers,
Abhijit
|
|
|
|
|
Hi, I'm working in Asp.Net & code behind vb.net (VS 2005). I've added Crystal Report and added 3 tables
There are 3 tables called Table1, Table2 and Table3, which are used in to the crystal reports. The field names, EmpName of Table1, EmpQualification of Table2 and EmpAddType of Table3 are dragged into my Report. "pEmpCode" is added as a parameter by using Parameter Field in Field Explorer. EmpCode is the common field of those 3 tables. But links have never given. Employee data are in Table1 But, Table2 and Table3 may have or may not his data. I have to pass EmpCode from my code behind. But How I have to link pEmpCode with EmpCode of the tables.
If I map, then only I can get the required record.
Thanks in Adv.
Balasubramanian K.
|
|
|
|
|
hi all;
my question is:
How can a server trace each machine when they request for accessing some resource(some text pages)?I want to make this system by asp.net.
Thanks in advance.
|
|
|
|
|
It sounds to me like you have no idea what ASP.NET is.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Well,I think you do not understand me.Recently i went to a cyber cafe.They use cable broad band.Means every user is in lan.For surfing internet they have to log in first.This log in page is automatically provide by local server.Log in url is like "http://192.168.183.200:8080/alliance/login.do".Other wise sign in into local server you can not surf internet.
Christian Graus wrote: It sounds to me like you have no idea what ASP.NET is.
As i know "login.do" is a servlet page.Whole system is worked in between lan computers.I think it can be possible to integrate by asp.net also.
|
|
|
|
|
Hi,
I am developing a website with russian language. I declared utf8 encoding in web.config and i have declared globalization tag in web.config. I defined charset attribute in connectionstring as utf8.It works fine in local mysql database.But if i upload the same page in server the data stored in database as question marks.Please give me an idea to solve this problem.
Thanks.
|
|
|
|
|
I would start by finding out what is different from the dev environment to the production environment.
Does your server have the same language set as the dev station?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi,
Thanks for your reply.
Our database server and developer mysql database have the same utf8 format.
Thanks
|
|
|
|
|
Ok, database servers have been checked, how about the servers on which IIS lives on?
By the way, how much Googleing have you done? If you have done any, what keywords have you used?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi,
The production IIS 6.0.
We searched a lot.i used the keywords "Charset in connectionstring using asp.net","UTF8 format"
Another important thing "when i execute a query in production database server it stored the records in russian language" But it is not working through the dotnet application
we read the below url:
http://liadprog.blogspot.com/2007/10/aspnet-20-with-mysql-412-unicode.html[^]
Thanks for your reply
|
|
|
|
|
Hi, i am reading data from text file. the data is as follows
sachin ganguly dhoni dravid
means, each word has two spaces.
my code is as follows
StreamReader sr = new StreamReader("C:\\test.txt");
while ((text_line = sr.ReadLine()) != null)
{
text_line = text_line.Replace(' ',',');
sw.WriteLine(text_line);
}
I am getting error at text_line = text_line.Replace(' ',',');
saying that "Too many characters in character literal"
How can i replace double or triple or more spaces between words with comma?
G. Satish
|
|
|
|