|
Thank you
|
|
|
|
|
I have a web page with a table with in a scroll pane that lists a selection of data from a database. They can set different parameters to filter the results shown. via a series of pop up selections like a calendar to set the date and so on. Then they can click a button to refresh the results in the table.
Obviously I want to check to make sure that the values they have selected are in the correct format so i added this code to the button that they press to do the update. The problem was that it was updating the whole page and reseting the textboxes to their default values. I then added an ajax update panel and script manager and the panel holds the table where the results are displayed so it only updates this on the screen. The problem now is that it ignores the validation.
Thank you in advance
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
|
|
|
|
|
lose the AJAX, do validation on the client side, in javascript, and use a !IsPostback block to stop your code from resetting the values on every postback.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
ditched the ajax and added the !IsPostBack but it is still resetting all the text boxes to their default values. I think i've found out why in that i'm using javscript to get a value from a popup window and everytime the button to refresh the table is pressed it goes through the javascript functions.
Thanks for the help
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
|
|
|
|
|
I could succesufully migrate from ASP.Net 1.1 web application project to ASP.Net 2.0 Wep Application Project but, I am unable to over come one error of xsd files.
for One xsd file of ASP.Net 1.1 its(2.0) creating 5 Files( .cs,.designer.cs,xsc,xss and xsx), and I'm ending up with an Error
'Namespace.task.dsTargetsForIISMetabase' already contains a definition for 'targetRowChangeEventHandler' E:\Sampleapp\dsTargetsForIISMetabase.Designer.cs
Please suggest me how should I over come XSD Problem after Migration.
Thanks,
Pashi
|
|
|
|
|
I have already added the web reference.
I get this error when I try to access a web service method from my c# windows application.
"The request failed with HTTP status 401: Unauthorized."
Any ideas please?
|
|
|
|
|
If you are able to debug to the point of seeing the exception you will see that the inner exception reads something like The server has actively rejected your connection.
In the case of the web service it is an indication that the service is not started.
If you server and client are in the same solution, try going into the Solution and marking the project as having two startup projects: your client project AND your webservice project
|
|
|
|
|
Hi,
My grid is loaded like this:
private void LoadCommunication()
{
int _ClientId = Int32.Parse(Request.QueryString["ClientId"]);
List<Communication> communications = CommunicationManager.QueryCommunicationsByClientId(_ClientId);
rgCommunications.DataSource = communications;
rgCommunications.DataBind();
}
In each Communication class there is a reference to the Title class. So if I need to access the TitleID property, then it would be something like:
Communication.Title.TitleID
The object datasource in my .aspx file to load the titles looks like:
<asp:ObjectDataSource
ID="odsTitles"
TypeName="Nedbank.Excon.Lookup.TitleManager"
SelectMethod="GetTitles"
runat="server>
</asp:ObjectDataSource>
I know that my error is here in my drop down:
SelectedValue='<%# Bind("Titles") %>'
..but I do not know how to fix it, or make it work. There is no Titles property. I'm assuming they are looking for the Title.TitleID? This does not work in Bind("Title.TitleID"). I did read the sample applications.
Please can someone advise..
Thanks
Brendan
|
|
|
|
|
either Communication.Title.TitleID or Title.TitleID should work
|
|
|
|
|
Hi,
I'm very new to crystal reports. Now I'm converting a classic ASP application to ASP.NET 2.0 and I already have the rpt files from this asp app.
I create a web content form, and my master page have different menus, which when clicked I pass the report to be opened in Query string. I check this in my report viewer web page and bind it dynamically.
Now when I click next, previous or other buttons in Toolbar, the entire viewer vanishes in to thin air! It just disappears! Do I need to do any custom coding for these navigation feature to work? But then it was working fine in ASP application, and I'm using the same rpt files here
Regards,
Blumen
|
|
|
|
|
I found the answer!
I have to Bind the report again, again and again... i.e. I had called the Bind method in !IsPostBack, but I have to call the method on both PostBack and when the page loads for the first time. Chris Love's blog helped me:
http://professionalaspnet.com/archive/2006/01/15/Crystal1.aspx[^]
But isn't fetching data on every click? Anyway, I've one more doubt:
When I accessed this ASP application and tried to view reports, it asked me with which application to open this file (rpt file). I found out that this was because I dint have viewer installed in my machine. Will the same issue happen to users when I deploy this .NET app in our web server? Or wil they be able to view reports in their browser?
Regards,
Blumen
|
|
|
|
|
Hi
include the Crystal reports Merge module in the web deployment set up file and the Reports will work well on any web server you install on
Mohammad Al Hoss
|
|
|
|
|
Mohammad Al Hoss wrote: include the Crystal reports Merge module in the web deployment set up file
How do I do that?
And normally we don't use setup file for installation, we publish the project to a folder, copy its contents and put it in the virtual directory in the production server.
Regards,
Blumen
|
|
|
|
|
I have created a flash movie file, with some animation ,but i don't know how to include it in my aspx file . Please help ?
|
|
|
|
|
use html flash object.
search google for how to use it.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Sir in HTML it is possible by <embed /> tag but not in aspx file , is it possible with any other tags that's allowed in aspx ?
|
|
|
|
|
You can use that embed tag in aspx page. Whats the issue with it? I used it once in my application without any issue.
After all aspx page contains html.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Hi
I have a link which opens a database.
When the link is clicked it shows a securtiy message checking if I want to opne the database.
Is there a way to open the database straight away without seeing this confirmation box?
cheers
|
|
|
|
|
if there was, it wouldn't be a good security message, would it ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
That is the obvious answer I suppose, I just wondered why i am able to open Word documents with no confirmation message but not databases. Is it again the obvious answer because opening a database can be more hazardous?
|
|
|
|
|
Hi all ,
iam not able to figure out where i have to add linkbutton code i tries too much time but not suceded so help me out this problem .
below is code
Dim noOfTimes As Integer = 0
Dim CurrentName As String = Nothing
Dim trow As TableRow = New TableRow
For d = 0 To 31
Dim tbcell As TableCell = New TableCell
'Iterate to see which cells have a booking against a name
If testarray(d) = Nothing Then
'No booking case
CurrentName = Nothing
tbcell.BackColor = Color.FromName("#FFFFFF")
Else
'booking exists, find noOfTimes it is booked for same employee
CurrentName = testarray(d)
'search subsequent entries for same name
Dim j As Integer
For j = d + 1 To 31
'
If testarray(j) = CurrentName Then
'same name repeated
noOfTimes = noOfTimes + 1
Else
'name is not repeated, print name and advance d counter by number of times
Response.Write(" Span of " + noOfTimes.ToString() + " " + CurrentName)
d = d + noOfTimes
'exit for loop using the statement below
Exit For
End If
Next
Dim myHyperLink1 As LinkButton = New LinkButton()
myHyperLink1.ID = "myHyperLink1"
myHyperLink1.Text = "Click Here dear "
myHyperLink1.PostBackUrl = ""
AddHandler myHyperLink1.Click, AddressOf OnClickLink
tbcell.Controls.Add(myHyperLink1)
'tbcell.BackColor = Color.FromName("#CCCCCC")
tbcell.ColumnSpan = noOfTimes
noOfTimes = 0
End If
tbcell.Text = " "
trow.Cells.Add(tbcell)
Next
Table1.Rows.Add(trow)
Next
cells sucessfuly column span but link button is not creating is there any mistake aim doing please suggest me where iam wrong ?
i have created event handler also and it works well .
Regards
Rameez
|
|
|
|
|
what is page post back and control level postback in asp.net ?
|
|
|
|
|
I would recommend buying a book on ASP.NET for these sort of base level questions. You need to understand them better than you will from a forum reply, to use ASP.NET at all.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi All,
I have an unformatted xml string text which looks as below
<Value Name="Param1" Length="0" Type="System.Double">3</VALUE>
<Value Name="Param2" Length="0" Type="System.Double">2</VALUE>
I want to read values from the above xml text. I have tried it to make it
XmlDocument object but it is giving error as illegal characters exist. Please give me advice how to read values from this text. If posible give me a small code snippet.
Thanks,
Aleem Mohammad.
NIIT technologies
abdul.aleem@niit-tech.com
|
|
|
|
|
indian143 wrote: as illegal characters exist.
then it's not valid XML. what you posted is most certainy not valid XML, in any way or form. So, if you don't have XML, you can try regex instead. XML parsing is a lot cleaner, can you request XML from your source ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|