hi guys am new to vb.net, i am working on application that needs Shopping Basket,
can anyone help me how to add product details in basket and is will carry to the new page ?is it with the help of session ?
i have used impersonation in this application.
whenever this error occurs i required to restart the IIS..
please guide me to solve this issue.
Error:
Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\c825d188\1fae8a71\dqiitg0c.cmdline".
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.ExternalException: Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\c825d188\1fae8a71\dqiitg0c.cmdline".
Hi there,
i am not an Javascript and i need a little help.
Given this function , i want to replace the color with an Random Color generator.
document.overlay = GPolyline.fromEncoded({color: "#0000FF",
weight: 10,
points: encoded_points,
zoomFactor: 32,
levels: encoded_levels,
numLevels: 4
});
Can anyone help me ?
Hi,
I dynamically load a css stylesheet (with a little help from jQuery) like this:
var head = document.getElementsByTagName('head')[0];
$(document.createElement('link'))
.attr({ type: 'text/css', href: '../../mz/mz.css', rel: 'stylesheet' })
.appendTo(head);
This works fine in Firefox and Google Chrome, but not in IE.
Any help?
Thanks
I have a report which needs to be exported in pure word format(97-2003) using jasper report. But Jasper uses RTFExporter for exporting report in doc format, wen i read the report using POI, it throws error saying its not pure word. Can anyone help how to generate a report in word using Jasper reports. Please help!
Hi all!
I have created a toolbar with some controls on it using ReBar within a window. Can anyone please tell me,
How to get the HWND of a controller if I know (only) the Id of it ?
How to obtain the HBITMAP if I know the id of the resource ?
How to set the bitmap to the controller ?
SendDlgItemMessageW(hWnd, nId, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap);
This isn't working for toolbars, isn't it ? I couldn't find a way to do it, pleasehelp me. Thank you...
Regards
Facing one problem pleasehelp me....
We are product development company and our existing application is in ASP, I am trying to send scripting.dictionary object to c#'s com visible class. I am using the System.Collections.Generic class here is my code
ASP:
dim dictForm
set dictForm=CreateObject("scripting.dictionary")
dictForm("First") ="one"
dictForm("Second") ="two"
SET OBJMSGBOX = Server.CreateObject("DictionarySerializer.DictionarySerializer")
call OBJMSGBOX.ConvertDictionary(dictForm)
c#:
[ComVisible(true)]
public class DictionarySerializer : IXmlSerializable {
Dictionary dict = new Dictionary();
public void ConvertDictionary(Dictionary dictionary) {
this.dict = dictionary;
}
}
I am getting error Invalid procedure call or argument: 'ConvertDictionary'
Please tell me where I am going in wrong way.
Given this POCO class that was automatically generated by an EntityFramework T4 template (has not and can not be manually edited in any way):
public partial class Customer
{
[Required]
[StringLength(20, ErrorMessage = "Customer Number - Please enter no more than 20 characters.")]
[DisplayName("Customer Number")]
public virtual string CustomerNumber { get;set; }
[Required]
[StringLength(10, ErrorMessage = "ACNumber - Please enter no more than 10 characters.")]
[DisplayName("ACNumber")]
public virtual string ACNumber{ get;set; }
}
Note that "ACNumber" is a badly named database field, so the autogenerator is unable to generate the correct display name and error message which should be "Account Number".
So we manually create this buddy class to add custom attributes that could not be automatically generated:
[MetadataType(typeof(CustomerAnnotations))]
public partial class Customer { }
public class CustomerAnnotations
{
[NumberCode] // This line does not work
public virtual string CustomerNumber { get;set; }
[StringLength(10, ErrorMessage = "Account Number - Please enter no more than 10 characters.")]
[DisplayName("Account Number")]
public virtual string ACNumber { get;set; }
}
Where [NumberCode] is a simple regex based attribute that allows only digits and hyphens:
[AttributeUsage(AttributeTargets.Property)]
public class NumberCodeAttribute: RegularExpressionAttribute
{
private const string REGX = @"^[0-9-]+$";
public NumberCodeAttribute() : base(REGX) { }
}
NOW, when I load the page, the DisplayName attribute works correctly - it shows the display name from the buddy class not the generated class.
The StringLength attribute does not work correctly - it shows the error message from the generated class ("ACNumber" instead of "Account Number").
BUT the [NumberCode] attribute in the buddy class does not even get applied to the AccountNumber property:
foreach (ValidationAttribute attrib in prop.Attributes.OfType<ValidationAttribute>())
{
// This collection correctly contains all the [Required], [StringLength] attributes
// BUT does not contain the [NumberCode] attribute
ApplyValidation(generator, attrib);
}
Why does the prop.Attributes.OfType<ValidationAttribute>() collection not contain the [NumberCode] attribute? NumberCode inherits RegularExpressionAttribute which inherits ValidationAttribute so it should be there.
If I manually move the [NumberCode] attribute to the autogenerated class, then it is included in the prop.Attributes.OfType<ValidationAttribute>() collection.
So what I don't understand is why this particular attribute does not work in when in the buddy class, when other attributes in the buddy class do work. And why this attribute works in the autogenerated class, but not in the buddy. Any ideas?
Also why does DisplayName get overriden by the buddy, when StringLength does not?
Hello everyone,
I am doing my first Zend Applicaition and I am finally done with the coding side.
But the problem which I have is Client has asked to rewrite the Url's which follows the SEO and as I don't have much knowledge of the Zend Router,I am finding myself helpless this time.
Please helo me out.The current Url which I have is...
http://localhost.ZendProject.com/keywords/ball
and Client needs it like
http://localhost.ZendProject.com/keywords/ball
and another Url (the search Url)
http://localhost.ZendProject.com/search/trends?q=nishant+shrivastava&select=All&Search=Search
and the Client wants is
http://localhost.ZendProject.com/nishant-shrivastava
Pleasehelp me out of this problem,because I am totally freaked out thinking of any solution and my mind is also not helping me out.
Hi guys!
i cannot make a checkbox work in word!!! i added it as usual but when i click it....nothing happens!!!
pleasehelp me, i need help!
i have office 2007 btw
thanx in advance!
Hey Guys,
i'm not very firm with preg_replace - in other Words i do not really understand - so i hope you can help me.
I have a string in a Text like this one: [demo category=1] and want to replace with the Content of Category (id=1) e.g. "This is the Content of my first Category"
This is my startpoint Pattern - that's all i have:
'/[demo\s*.*?]/i';
Hope you can help?
Thanks,
Sascha
Hi
I'm just wondering if anybody else can manage to get the tolerance:'fit' option to work when using the 'droppable' feature in jQuery's UI?
I want to call a function only when the draggable div is dropped perfectly onto a droppable div. Both divs are the same size and I'm using snapMode:outer to help the end user.
I simply cannot get it to work with 'fit'. Works perfectly with 'intersect'.
Would really appreciate some help.
Thanks
Chris
I had done Edge detection using wavelet transform using thus steps
changing the image to Gray scale
decomposing the image using dwt2(discrete wavelet transform,Haar wavelet filter ) in to horizontal,vertical,diagonal and approximation(detail)
further decomposing the horizontal part
threshold (global threshold like canny Edge detection )
i got the edge but i got a problem while locating the edge to complete image to mean recovering original image using only the Edges so i need help concerning this either in concept ,mat lab code or references
I hope i will get your help soon
I want to change the app index page so I add help text to the models themselves, e.g. under each model I want to add help text. I know that I should override AdminSite.app_index. What is the best way to do this?
include js file "swfobject.js"
js code is as follows:
var params = { allowScriptAccess: "always" };
var atts = { id: "mydmplayer" };
swfobject.embedSWF("http://www.dailymotion.com/swf/VIDEO_ID&enablejsapi=1&
playerapiid=dmplayer",
"dmapiplayer", "425", "356", "8", null, null, params, atts);
I am newbie to javascript and SWF.
I am using this code to embed video into my html. Now I want to create custom links like "play","fast forward" etc.
Could you please guide me, how to acheive this? Please reply ASAP. It's urgent.
I would be very thankful to you.
Hi, I am new to ruby on rails.
I want to build an RSS feed aggregator.
How do I find out the trending topics from the stream of data[titles] from various RSS feeds.
Could you help me how to achieve this??
Looking forward for your help
Thanks in advance
Gautam
Hi,
Im trying to load a remote image into a pdf generated by tcpdf however I can't seem to get it to work?
The rest of the pdf loads fine and it looks like to trying to retrieve the image however it just does print to the page?
The code I am using is:
$pdf->Image("http://media.domain.com/logo.jpg", 0, 0, 100, 150, 'JPEG', '', 'T', true, 72,'','','','','','','');
Any help on this would be a massive help,
Thanks,
Hi there,
Thanks for reading my question.
Please I need your help here.
I am trying to add a column that is based on a cross-tab's grand total. The cross-tab was added by clicking on the totals option for the column. Now I want to use this total for another calculation in my cross-tab but its so difficult adding a column after the grand total column.
Secondly its difficult getting a reference to the results in the grand total column.
Please what do you advice?
Thanks
Ime
Hello All,
i like to work in php bcoz it's just amazing language.
please share basic, useful, enhanced and customize function that make things better and easy in php and must be used in our all PHP project, i m sharing some of them please share your customize function that may be useful for everyone
alternative/ enhanced print_r() and var_dump()
function watch( $what ) {
echo '<pre>';
if ( is_array( $what ) ) {
print_r ( $what );
} else {
var_dump ( $what );
}
echo '</pre>';
}
usage:
1. watch($_POST); // to see all post variable
2. watch($array); // to see any variable may b array, string or a variable
enhanced mysql_escape_string() for multidimensional array to prevent sql injection
function recursive_escape(&$value) {
if (is_array($value))
array_map('recursive_escape', $value);
else
$value = mysql_escape_string($value);
}
usage
array_map('recursive_escape', $_POST);
---------------------For encoding Get variables--------------------------------------
function nkode($k)
{
if ( is_array( $k ) ) return array_map("base64_encode",$k);
else return base64_encode($k);
}
---------------------for decoding varaibles from GET---------------------------------
function dkode($k)
{
if ( is_array( $k ) ) return array_map("base64_decode",$k);
else return base64_decode($k);
}
Usage
<a href="somelink.php?pid=<?php echo nkode($someid)?>">
and on next page(somelink.php)
$findID=dkode($_GET[pid]);
date convert to mm/dd/yyyy to yyyy-mm-dd( if we use date datatype in mysql) and also change into mm/dd/yyyy to disply on page
function dateconvert($date,$func)
{
if ($func == 1){ //insert conversion
list($month, $day, $year) = split('[/.-]', $date);
$date = "$year-$month-$day";
return $date;
}
if ($func == 2){ //output conversion
list($year, $month, $day) = split('[-.]', $date);
$date = "$month/$day/$year";
return $date;
}
}
usage
$firstDate=dateconvert($_POST['firstdate'],1); // for insertion in database
$showDate=dateconvert($fetch->date_field,2) // to display on browser
to clean(sql injection proof) data before doing some action with that variable
function cleandata($data)
{
$success=0;
$data=trim($data);
$data=strtolower($data);
$data=strip_tags($data);
return $data;
}
usage
cleandata($_POST[username]);
cleandata($_GET[pid]);
please share any basic function that must be used ,
Thanks