
kahlua001
Avatar/Signature-
Posts
509 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by kahlua001
-
What does RetrieveData do? Is the page working while this routine is running? How about a response.write as the first thing in the sub and then quit.
-
I have a problem I cant figure out. any help is appreciated! I have a datalist whose's datasource is a custom type. In this type is a public member that is a generic list. So in the ItemDataBound event I have. PostType Post = ((PostUserBookmarkType)e.Item.DataItem).Post; lnkName.Text = Post.Name; Now, the problem is that I am taking the datalist's item template and loading from a usercontrol. So now, the ItemDataBound doesnt work becuase its outside of a datalist, so I've read that I need to cast the Dataitem to a DataListItem like so.. <%# DataBinder.Eval(((DataListItem)Container).DataItem, "FirstName") %> I've tried different variations to cast my PostType to a DataListItem but get invalid casting errors. Anybody know the correct way to take my 1st line of code and cast that to a DataListItem which gets casted to my custom type?? Thanks
-
Hi, I have a datagridview with a combobox column. the gridview is bound to a datatable as a datasource. The combobox display and value members are set to another datatable so it fills on render and is auto selected based on the row's value. The problem I am having is when I add a new row and select a value from the combobox and then click away from the cell, the value of jumps to a different value, I can't really see a pattern for which value it set to, its just different. Any clues what I'm doing wrong? The list is like 40 items. I have another combobox in the same grid with about 5 values and that works fine. THanks exItem.DataSource = globals.dtInventoryItems 'This is teh comboxbox exItem.DataPropertyName = "item_id" exItem.DisplayMember = "description" exItem.ValueMember = "item_id" dgrdvRules.AutoGenerateColumns = False dgrdvRules.DataSource = globals.dtEventInventoryRules 'This is the datagridview Its pretty simple, not sure what I'm doing wrong.
-
Try adding this attribute to the input field... Autocomplete="Off" This is for IE, not sure for other browsers.
-
Loop thru your dataset and build a tab delilimted string, then write it to your stream with the .xls file extension. I have never figured out how to write a xls from a datagrid without all the formatting junk that gets carried over from the html.
-
JS has isNaN() function, Is Not a Number, you can use this on a blur of the textbox or keydown. if (isNaN('test')) { alert('This is not a number!'); }
-
Lets see some code.
-
the Stored Procedure needs to be modified so it takes int a @Quarterly parameter and the insert statment needs to insert this value. Then you need to add this paramter into your command object. Also, your if statment should look something like this.. If Quartherly.Checked Then cmd.Parameters.Add("@Quarterly", 1) Else cmd.Parameters.Add("@Quarterly", 0) Enf If
-
Not sure what the previos page listing is. But, where are you doing your validation? Client or server? If client, you can integrate the input's focus function into the validation.
-
Internal 500 Server Error Soap Message
kahlua001 replied to kahlua001's topic in Database / XML / Reporting
What I'm doing is trying to use a wsdl from a web service on a Tibco server. The company who owns that Tibco server sent me a wsdl which .Net does not like, all sorts of name space errors and datatype missing errors which I tried to adapt to .Net friendly stuff, but in the end, wasted too much time and not getting it just right. So we dumped the idea and I went straight to constructing the soap message and sending them the data via a HttpWebRequest. On a side note, does anybody know of any differences between Java world wsdl and Microsoft world wsdl? You would think this should be universal... -
Write your js on postback <script language="javascript"> window.location = '#Test'; </script> <p><a name="Test"></a>testasdf</p>
-
Internal 500 Server Error Soap Message
kahlua001 replied to kahlua001's topic in Database / XML / Reporting
You mean in IE? I am using vb.net to send a request, the error that gets returned is a 500 server error, not using IE -
Hi, I have a webservice that has one method and takes in a string as a paramter, pretty simple. On my client app, I build the soap envelop and post it using HttpWebRequest but I'm getting a Internal Server 500 Error, any clue to what i'm doing wrong? WSDL is not an option for me here. Dim strSoap As String strSoap = "<?xml version=""1.0"" encoding=""utf-8""?>" & vbCrLf & _ "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & vbCrLf & _ " <soap:Body>" & vbCrLf & _ " <submitCarriersStatus xmlns=""http://beta.webservices.netcour.com/fedex"">" & vbCrLf & _ " <strXML>" & str214 & "</strXML>" & vbCrLf & _ " </submitCarriersStatus>" & vbCrLf & _ " </soap:Body>" & vbCrLf & _ "</soap:Envelope>" Dim req As HttpWebRequest = WebRequest.Create("http://tempuri/fedex/FedExStatusTest.asmx") req.Headers.Add("SOAPAction", "http://tempuri/fedex/submitCarriersStatus") req.Method = "POST" req.Accept = "text/xml" req.ContentLength = strSoap.Length req.ContentType = "text/xml" Dim sw As New StreamWriter(req.GetRequestStream) sw.Write(strSoap) sw.Close() Dim resp As HttpWebResponse = req.GetResponse Dim strResp As String = "" Dim sr As New StreamReader(resp.GetResponseStream) strResp = sr.ReadToEnd sr.Close()
-
I have a wsdl that includes 2 .xsd files. When i attempt to add this wsdl as a web reference, i get error that says Igonoring duplicate schema document with targetNamespace "". I assume that becuase in each of these two .xsd files, there are no targetNamespace specified. So i give them each a unqiue namespace, then I get the error that failed to importing binding of a method becuase a dependant dataype is missing. Any clues on what I'm missing? Attached below are my files. Thanks in advance.FDXLMD.zip
-
Sounds like each user needs their own User ID, which you track to see if they have filled out the page or not.
-
What do you mean the record is being picked up by another user?
-
I think its OnSelectedIndexChanged="CargarTareas"
-
Do you need to load your databind in your page_load every time? Check for IsPostBack first, also, how do you know its not getting to your Updatecommand, are you doing anytype of debug message to see if it gets there?
-
This is assuming you have an EditCommandColumn in your datagrid, each link button will trigger one of these subs. In each sub you get the key field you specify in your datagrid but using the ItemIndex. Private Sub Datagrid1_CancelCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles Datagrid1.CancelCommand 'Cancel command Datagrid1.EditItemIndex = -1 End Sub Private Sub Datagrid1_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles Datagrid1.UpdateCommand 'Update command Dim ProductID As Integer = Datagrid1.DataKeys(e.Item.ItemIndex) End Sub Private Sub Datagrid1_DeleteCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles Datagrid1.DeleteCommand 'Delete command Dim ProductID As Integer = Datagrid1.DataKeys(e.Item.ItemIndex) End Sub
-
You need to wire up the UpdateCommand, CancelCommand, and DeleteCommand.
-
Dont use MsgBox, use a response.write or use javascript for a prompt box.
-
Try Response.AppendCookie
-
Ok, so I checked the Event Log for when I try to use the state service and I get this error: State server starts listening with 6 listeners. I havent found anything on msdn or google regarding this, anybody seen this before?
-
Well, I can get both to work side by side as my web app is using 1.1, however ever since I installed 1.0, I cannot use the asp.net State server service, I can only use it InProc, any clues?
-
I have a windows 2003 server, IIS 6. I had .net 1.1 installed, my apps were using asp.net state server service, everything was fine. Then I had to installed .net 1.0 for this 3rd party application that required it. When I installed it alongside .net 1.1, my web apps were unable to connect to the State Server service(Unable to connect to state server error), I checked my app mappings in IIS and it says its using .net 1.1, in any case i went ahead and uninstalled .net 1.0 and i still get that error. Has anyone else had this problem? Thanks