|
when you are adding in your control remember to use a withevents statement
If you are going to use the handle clause you will need to add in the withevents statement
|
|
|
|
|
.netman wrote: when you are adding in your control remember to use a withevents statement
If you are going to use the handle clause you will need to add in the withevents statement
so what should i do so that the handles clause in rowdatabound points to the newly generated gridview.Can u explain with a small example.
When you fail to plan, you are planning to fail.
|
|
|
|
|
I have a FormView.
the EdititemTemplate of FormView contained some controls.
such as DropDrownList,TextBox.
I want to initialize selectItem or Text of dropDownLists and TextBoxes.
but I can't get DropDownList and TextBox by "FormView.FindControls" method.
how do?
Thanks.
|
|
|
|
|
I would imagine you do it in the ASPX directly, or there is an event that fires when editing starts, you'd do it there to set the values to match the existing values from your data source. ( you may be able to write binding statements to do it that way in your ASPX also )
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
in EdititemTemplate I have a Birthday Field.
I separate Date
Date will be divided into three sections by me, corresponding to the three DropDownLists(year,month,day).
how initialize these DropDownList?
|
|
|
|
|
With the day, month and year from your data source, I suppose. I'm not sure what else I can add. what's the incoming data look like, if it's a DateTime, you can seperate it into Day Month and Year properties.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
I have a detail to which I have binded data from code behind
protected void Page_Load(object sender, EventArgs e)
{
string categoryid = Request.QueryString["catid"];
string itemid = Request.QueryString["itemid"];
string selectCommand = "SELECT informationimage, informationdescription FROM iteminformation WHERE itemid = " + itemid;
DataSet ds = DataBaseManagemet.getdataset("iteminformation", selectCommand);
DetailsView1.DataSource = ds;
DetailsView1.DataBind();
}
Now when in paging when I did
protected void DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e)
{
DetailsView1.PageIndex = e.NewPageIndex;
}
Its not working porperly I have to click twice in the page index to redirect to new page index plz help me
|
|
|
|
|
TIMESTAMP=2008-04-29T05:57:10Z&CORRELATIONID=f504bd22c2255&ACK=Failure&L_ERRORCODE0=15005&L_SHORTMESSAGE0=Processor Decline&L_LONGMESSAGE0=This transaction cannot be processed.&L_SEVERITYCODE0=Error&VERSION=3.000000&BUILD=548868
what is this this error?
|
|
|
|
|
When exactly are you getting this error message?
Please be more specific.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Looks like an error from your credit card gateway to me. They don't have documenttion ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
You should try typing the error into google, someone before you might have had this error before
|
|
|
|
|
I doubt it, that's a specific, detailed error, probably from a payment gateway. Most people would know better than to even post that on the web.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
The exact string might not elicit a search result since the transaction numbers are dynamic. You may need to break down the string into distinct patterns and then try out on the search engine.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
I am facing problem while making web request by WebClient.
I am making request to google map geocode apge to findout the longitude and latitude of particular address.
Here is my code to do that :
Dim QueryString As String
Dim responseText As String = ""
Dim WC As New Net.WebClient
Dim SR As IO.StreamReader
QueryString = "?q=" & getValidAddressString() & "&output=csv&key=" & ConfigurationManager.AppSettings("GeoCodeKey")
Dim redirectURL As String = ConfigurationManager.AppSettings("GeoCodeURL") & QueryString
SR = New IO.StreamReader(WC.OpenRead(redirectURL))
responseText = SR.ReadToEnd()
SR.Close()
processResponseText(responseText)
The strange thing is that for same address string, the code is working without any problem in one page. While the same code(have copy pasted) in another page is throwing the following error :
Illegal characters in path.
Exception Details: System.ArgumentException
at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.Path.GetFullPath(String path)
at System.Net.WebClient.GetUri(String path)
at System.Net.WebClient.DownloadData(String address)
at KG.GeoCodeHelper.Page_Load(Object sender, EventArgs e) in
|
|
|
|
|
Did you try debugging to see what the illegal characters are, and where they come from ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Offcourse i have debugged.. without that how can i post the stack trace info with my question
|
|
|
|
|
OK, so what's the path then that it says is illegal ? How does it differ to the path it accepts ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
|
Hi,
it appears Bitmap img1 = new Bitmap("yourfilename") performs some build-in checks to see if the URL is valid or not. A 'rough' workaround would be to first download the image data using a HttpWebRequest, and get a stream to the data and use that to construct the Bitmap (I know, its stupid, but at least it works).
If you don't feel like writing lots of plumbing code yourself, you could consider using NFileStorage for the required overhead lined of code (created myself, see http://nfilestorage.codeplex.com/[^] to temporarily store the information, like so:
string filestorageName = @"c:\temp\googlechart";
FileStorageFacade.Create(filestorageName, CreateFileStorageBehaviour.IgnoreWhenExists);
string complexUrl = ... (your complex Google Chart URL);
FileStorageFacade.StoreHttpRequest(filestorageName, "A".ToNFileStorageDataIdentifier(), complexUrl, null, AddFileBehaviour.OverrideWhenAlreadyExists, "");
Bitmap img1 = new Bitmap(FileStorageFacade.GetStreamData(filestorageName, "A".ToNFileStorageDataIdentifier()));
Good luck!
Gert-Jan
bla
|
|
|
|
|
Hello
In my own blog site, i wish to show writer's info (every writer has an aspx page that stored their info) by using a button-like control near the writer's name. Point is, how i can capture writer by his blog entry and open this writer's page. What's can be done, a querystring or something? What's this code? Thanks.
|
|
|
|
|
Yeah, I would expect you'd have a page which shows info for any writer, based on an id that is on the query string of the page that button redirects to, and that is the Id that is used to get that data from your DB
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
when a blogger login,Client write a cookie in Customer's computer.thought the cookie you can konw their info,for example,userid,login time,and so on...
then you can get the all info from database for userid!!!!
I love li li huang ,
ha ha ,
but you don't who is she!
|
|
|
|
|
Hi,
i am usign formview control in my user control. when i use formview.UpdateItem(true), i got this error "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control."
I have googled about it, i couldnt sort out the problem. Can anyone help me, please.
thanks,
deep.
|
|
|
|
|
It means you wrote code outside of a databound control ( such as a grid view ) that can only run inside such a control. Such as <%# Eval("columnname") %>
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|