|
Sounds like you need to set up a profiler and watch web.config...see whats touching it. It shouldn't change very frequently in normal situations.
|
|
|
|
|
Hi all,
I am researching for third party components suite for Asp.net Ajax and I would like very much to hear your opinions about your exeperiences. I tried some like ComponentArt or Telerik and both are nice, but I would like to hear the opinion from someone that already used a set of components like this.
Thanks,
lotuzwine
|
|
|
|
|
Telerik FTW!
They are awesome. I have been using them for 2 years now and they get better with every update. And they update them every quarter. Their support is fantastic. The RadComboBox, RadGrid and RadWindow are my favorites.
I didn't get any requirements for the signature
|
|
|
|
|
Dear Todd,
Thanks for your opinion, it is really important for me. According to the diverse opinions I got so far, Telerik really seems to be the best to choose. Thanks for your help =)
Best Regards,
Felipe
|
|
|
|
|
Hi everyone,
I have a problem in getting values from dropdown lists in a placeholder control.
I would really appreciate your help.
I first programatically create the controls in placeholder
,I also allow the user to add a new row of the same controls.
I am able to track the precice number of rows and controls at page load and everytime a new row is added.
But when i want to insert the data the placeholder.controls is set to zero.
Can u please examine my code and advice me why is this.
Protected Sub btnQuotation_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnQuotation.Click
Dim insertCommand As SqlCommand
Dim strConnection As String = "Data Source=xxxxx;Initial Catalog=xxxxx;Integrated Security=True"
Dim objConnection As New SqlConnection(strConnection)
objConnection.Open()
Dim strRoom As String
Dim PRTId As Integer
Dim RateType, Smoking As String
Dim NoRooms, Nopeople, NoChildren As Integer
For Each con As Control In phBooking.Controls ''!!!This is the error Line
strRoom = "INSERT INTO tblRoomTrans(FkPRTId,RateType)
VALUES (@PRTId, @RateType)"
insertCommand = New SqlCommand(strRoom, objConnection)
If TypeOf con Is DropDownList And con.ID = "DDLRooms" & (txtRows.Text) Then
PRTId = CType(con, DropDownList).SelectedValue
insertCommand.Parameters.AddWithValue("@PRTId", PRTId)
End If
If TypeOf con Is DropDownList And con.ID = "DDLRateType" & (txtRows.Text) Then
RateType = CType(con, DropDownList).SelectedValue
insertCommand.Parameters.AddWithValue("@RateType", RateType)
End If
insertCommand.ExecuteNonQuery()
Next
Response.Redirect("NextPage.aspx")
End Sub
allphpro
modified on Thursday, January 8, 2009 11:01 AM
|
|
|
|
|
Other than using inline SQL and beging VB there is nothing wrong with your code. It depends on how you are adding the controls to the placeholder. On the postback the placeholder is being reconstituted from viewdata, if the controls were not saved in viewdata they won't be available.
only two letters away from being an asset
|
|
|
|
|
At least he is using parameters.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks Guys,
Now i know what i have to do. Indeed not saving the viewstate was the cause of the error.
I really appreciate it.
Best regards.
allphpro
|
|
|
|
|
Hi,
In my application i am using ActiveX control(creted by .net2.0) to capture PrintScreen image.
when i am using it through http://localhost it gives error
Request for the permission of type ‘System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed
But when i run same page by using computer name its work i.e.
http://computername/Applicationname/xyz.aspx
How to give permission for activeX.
Thanks in advance.
|
|
|
|
|
Hi hemant.kaushal,
Go to Control Pannel --> Administrative Tools --> Microsoft .NET Framework 2.0 Configuration.
Open My Computer-->Runtime security policy-->Machine-->Code Groups-->All codes.
Go to All_Code-->Right click and select New-->Check new code group and give some name in it. Hit Next
button. Choose Condition type to SITE and give site name to localhost/system name.Hit Next and Choose Full Trust and hit Next button and then run ur site.
Regards,
Dilip.
Dilip
|
|
|
|
|
Hi
i want to use update progress bar in my web application. On the page load event it will be shown and when my whole page appears on the client machine or transfer has been stopped at that time it progress bar disappears but how i can????
like this url...
http://www.sydneyshowboats.com.au/home.aspx
after that when u click on "Book Now>>"
after that we can see the progress bar effects and i want also this same to same
can u help me
Thanks
GA
|
|
|
|
|
What you could do is put two div tags on your page. Put your loading image in one div tag. Put the page content in another.
<div id="loading">
put image here
</div>
<div id="pageContent" style="display:none">
Put content here
</div>
Don't put any code in the page load but rather display the page with the first div visible. Then do an ajax request to execute all your sever code. When the request is done hide div with the image using javascript and then display the rest of the page.
I didn't get any requirements for the signature
|
|
|
|
|
What you need to understand is, your whole initial page needs to load in order for the progress bar to show. So, that bar is best used to show that some AJAX driven request is taking place.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hai,
currently i m using vb.net 2005 (framework 2.0) and sql server 2000.
here i have two query where i bind those values to gridview. i need the values in column wise.
for example...
sql1=select studentname from tab_student
sql2=select employeename from tab_employee
The result of the above queries should be combined in a single gridview COLUMN WISE (note : no relationship between two tables)
waiting for the reply - KARAN
|
|
|
|
|
Hi karan,
I dont know why you want to show it like that, but you can loop through two tables, i mean having two loops one inside the other (Note: Outer for loop should be for max row count table) and add the data in to a new table. Then bind the new table to the grid.
I have not implemented this, but i am sure this should work.
Try.
Cheers,
Sudhanva.
|
|
|
|
|
Why not use a union?
select studentname as [Name] from tab_student
union all
select employeename as [Name] from tab_employee
then you only have 1 lot of data to bind, and you can put an order by on the query too.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hey Bob, Congrats
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
And you also. Its a good feeling to get that diamond
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
will this result display in two different COLUMNS?
|
|
|
|
|
No, you will get 1 column called Name which contains all the studentname values plus all the employeename values - thats what unions are about!
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
You could combine your results in SQL.
or
You could add a template column to your gridview and set the values in the OnRowDatabound.
I didn't get any requirements for the signature
|
|
|
|
|
DataTable dt1 = new DataTable("student");
dt1.Columns.Add("Name", typeof(string));
dt1.Rows.Add("a"); dt1.Rows.Add("b"); dt1.Rows.Add("c");
DataTable dt2 = new DataTable("employee");
dt2.Columns.Add("Name", typeof(string));
dt2.Rows.Add("x"); dt2.Rows.Add("y"); dt2.Rows.Add("z");
DataTable dt3 = new DataTable("student_employee");
dt3.Columns.Add("StudentName", typeof(string));
dt3.Columns.Add("EmployeeName", typeof(string));
for (int i = 0; i < dt1.Rows.Count; i++ )
{
for (int j = 0; j < dt2.Rows.Count; j++)
{
dt3.Rows.Add(dt1.Rows[i]["Name"].ToString(), dt2.Rows[i]["Name"].ToString());
break;
}
}
Cheers,
Sudhanva
|
|
|
|
|
hi all
I am trying to write a code wherein when user click on the row the particular checkbox will be checked/unchecked.
My code for this is
CheckBox cb = (CheckBox)GridView1.Rows[selectedindex].FindControl("checked");
which returns -1;
Please suggest soln to it.
Tejesh
|
|
|
|
|
it should be help u or u pass incorrect control name chkSelect
# foreach (GridViewRow row in uxgridAllActivities.Rows) {
# //' Access the CheckBox
# CheckBox cb = (CheckBox)row.FindControl("chkSelect");
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Hi Thx for the Reply
protected void grid_row_command(object sender, GridViewCommandEventArgs e)
{
GridView g = (GridView)sender;
int selectedindex = g.SelectedIndex;
string commandname = e.CommandName;
switch (commandname)
{
case ("singleclick"):
// Response.Write("Single Click");
CheckBox cb = (CheckBox)g.Rows[selectedindex].FindControl("checked");
if (cb.Checked)
cb.Checked = false;
else
cb.Checked = true;
break;
case ("doubleclick") :
Response.Write("DoubleClcik");
break;
}
}
i am trying to write the set the selected index on OnRowCommand="grid_row_command" for my gridview
I dont know where i am going wrong..
Waiting for reply
<div class="ForumMod">modified on Friday, January 9, 2009 12:10 AM</div>
|
|
|
|