The default when creating a new WebForm in Visual Studio is WebForm1.aspx
I always change this to Default.aspx.
Is there a way to change the default to always read Default.aspx?
I have an ASP.NET page which utilizes jQuery for an autocomplete-type scenario. The jQuery tucks the actual selected values into a hidden field it creates on the fly, but for some reason I cannot get the value of that standard HTML field on postback by calling Request.Form["HiddenFieldName"]. I can see it by ordinal in the Request.Form object, but if I add/remove controls it will break. Any suggestions?
Dear community,
I hope the below task will be very easy for sed lovers. I am not sed-guru, but I need to express the following task in sed, as sed is more popular on Linux systems.
The input text stream is something which is produced by "make depends" and looks like following:
pgm2asc.o: pgm2asc.c ../include/config.h amiga.h list.h pgm2asc.h pnm.h \
output.h gocr.h unicode.h ocr1.h ocr0.h otsu.h barcode.h progress.h
box.o: box.c gocr.h pnm.h ../include/config.h unicode.h list.h pgm2asc.h \
output.h
database.o: database.c gocr.h pnm.h ../include/config.h unicode.h list.h \
pgm2asc.h output.h
detect.o: detect.c pgm2asc.h pnm.h ../include/config.h output.h gocr.h \
unicode.h list.h
I need to catch only C++ header files (i.e. ending with .h), make the list unique and print as space-separated list prepending src/ as a path-prefix. This is achieved by the following perl script:
make libs-depends | perl -e 'while (<>) { while (/ ([\w\.\/]+?\.h)/g) { $a{$1} = 1; } } print join " ", map { "src/$_" } keys %a;'
The output is:
src/unicode.h src/pnm.h src/progress.h src/amiga.h src/ocr0.h src/ocr1.h src/otsu.h src/barcode.h src/gocr.h src/../include/config.h src/list.h src/pgm2asc.h src/output.h
Please, help to express this in sed.
For example in Java for Data Transfer Object I use as:
ExampleDTO exampleDTO = new ExampleDTO();
What naming convention should I follow for similar in Python?
Is there a way to create (dinamically) a kind of subdomain that goes between my website domain and the .com?
For www.onlinevet.com, for instance, would be something like:
www.onlinevet.dog.com
www.onlinevet.cat.com
I have a script that is copying a folder that contains a couple sub folders. The original that it is copying from is part of an SVN folder, so it is copying those ".svn" folders as well.
I want to remove those from the new destination, my best guess was:
rm -Rf dir/*.svn
Which doesn't work, is there a way to do this or do I need to manually go into each folder to delete it?
I need to send an email in asp.net but I need sender appears like "MySiteName" without [email protected] need to send an email in asp.net but I need sender appears like "MySiteName" without [email protected]
Sorry about that. Basecly I want all the numbers in Col A That match with the names in Col B. I want to fill Col C with those numbers by order.
Thank you
Select a Sharepoint performance counter object, there are two instances for each of my web site. For example, for the ssp site, the two instance are named as
portnumber_ssp_admin
portnumber_ssp_admin[ACL]
What is the difference between the two instances? What is the meaning of [ACL]?
var foo1,foo2;
switch (fn)
{
case "fade" : foo1 = "fadeOut"; foo2 = "fadeIn"; break;
case "slide" : foo1 = "slideUp"; foo2 = "slideDown"; break;
}
eval("$('.cls1')." + foo1 + "();");
currentSlideIndex = currentSlideIndex + n;
eval("$('.cls1')." + foo2 + "();");
Any better way to achieve this without using eval ? Im not a very big fan of using eval unless absolutely necessary.
Hi,
I want to do something like this: (in php)
$a = "class_name1";
$b = "class_name2";
$object1 = new $a;
$object2 = new $b
is this possible?
thank you very much for your time
how to make xsd for element with same names that only identifyed by attribute value example :-
<a>
<b n="structure one">
<c n="inner element 1"/>
<c n="inner element 2"/>
<c n="inner element 3"/>
</b>
<b n="structure two">
<c n="inner element 1 for structure two"/>
<c n="inner element 2 for structure two"/>
<c n="inner element 3 for structure two"/>
</b>
</a>
notice that from the XML i have to mention specific value that belong to the inner element same for structure
How do I create a partial view that has a form with assigned id?
I got as far as:
using (Html.BeginForm(?action?,"Candidate",FormMethod.Post,new {id="blah"}))
Partial view is used for both Create and Edit so first parameter ?action? will be different. I can't figure out what value of ?action? supposed to be
i have a table with this columns--- Or
orgid ispaid validity noofthingstoTake
1 yes 2010-06-05 20
2 yes 2010-06-09 7
i have used this query(to join two more tableS):
select distinct B.RequirementID,A.OrganizationID
from
Organization A,RequirementsDetailsforOrganization B,validityorgdet F
where A.OrganizationID=B.OrganizationID and F.orgid=A.OrganizationID and
F.ispaid=1 and F.validity>=GETDATE() and
F.noofthingstoTake> ??
but i dont know how to check the (noofthingstaken) over here. it should not exceed 20. im passing this query from my code behind page to the Sql. how to get the query excute to check it should not exceed the noofthingstaken
pls help me out....????
Hi All, I'm trying to write an if/else statement in jQuery which can change an elements class by matching 'IN' or 'OUT' (in this case).
I.e, I have several Divs with class='IN-something' OR class='OUT-something'.
The below would work if I new the exact CSS class, but all I'll know is whether it contains 'IN' or 'OUT'.
So like this, but works:
if ($(jRow).hasClass('IN-*'))
{jRow.attr( "class", "OUT-foo" );}
else
{jRow.attr( "class", "IN-foo");}
Ideas?
Thanks!
I have three models, user, achievement, badge and I plan on using has_many :through instead of has_many_and_belongs_to since I will have a few extra fields in the join tables.
According to a Railscast I watched, using this method requires coming up with new model names and not user_badge or user_achievement.
For my User Achievement join what do you think of Accomplishment?
For my User Badge join what do you think of Distinction?
I have come up with a data structure that combines some of the advantages of linked lists with some of the advantages of fixed-size arrays. It seems very obvious to me, and so I'd expect someone to have thought of it and named it already. Does anyone know what this is called:
Take a small fixed-size array. If the number of elements you want to put in your array is greater than the size of the array, add a new array and whatever pointers you like between the old and the new.
Thus you have:
Static array
—————————————————————————
|1|2|3|4|5|6|7|8|9|a|b|c|
—————————————————————————
Linked list
———— ———— ———— ———— ————
|1|*->|2|*->|3|*->|4|*->|5|*->NULL
———— ———— ———— ———— ————
My thing:
———————————— ————————————
|1|2|3|4|5|*->|6|7|8|9|a|*->NULL
———————————— ————————————
I have a response message like this:
<message>
<header>
<TransactionID>1</TransactionID>
<Timestamp>2012-05-22 10:10:36</Timestamp>
<OpCode>BOSS_DELETE_USER_SME.CD</OpCode>
<MsgType>RESP</MsgType>
<ReturnCode>1016</ReturnCode>
<ErrorMessage>uif return error message!</ErrorMessage>
</header>
</message>
I need convert RetuenCode "1016" to "0" in extension class. How to get OMElement "ReturnCode" in mediate? My code is failed.
SOAPEnvelope envelope = context.getEnvelope();
SOAPBody soapBody = envelope.getBody();
QName ReturnCode = new QName(null, "ReturnCode");
OMElement response = soapBody.getFirstChildWithName(ReturnCode);
Hello,
I have the following:
Class 1 (Text, State, Level)
Class 2 (Text, State, Level, Ident)
Is there a way for me to cast an object of Class 2 into into Class 1, and not having to do the usual cast code (Text = c.Text, State = c.State etc.)? Possibly by identifying the property names of each class and copying the value over?
Hi,
Using Rails 2.3, I'm trying to configure my routes but I uncounter some difficulties.
I would like to have something like :
http:// mydomain.com/mycontroller/myaction/myid
That should respond with controllers in :front namespace
http:// mydomain.com/aname/mycontroller/myaction/mydi
That should respond with controllers in :custom namespace
I try something like this, but I'm totaly wrong :
map.namespace :front, :path_prefix => "" do |f|
f.root :controller => :home, :action => :index
f.resources :home
...
end
map.namespace :custom, :path_prefix => "" do |m|
m.root :controller => :home, :action => :index
m.resources :home
...
m.match ':sub_url/site/:controller/:action/:id'
m.match ':sub_url/site/:controller/:action/:id'
m.match ':sub_url/site/:controller/:action/:id.:format'
m.match ':sub_url/site/:controller/:action.:format'
end
I put matching instruction in custom namespace but I'm not sure it's the right place for it.
I think I really don't get the way to customize fields in url matching and I don't know how to find documentation about Rails 2.3, most of my research drove me to Rails 3 doc about the topic...
Somebody to help me ?
This should work.. I think..
string ctrlName = "btnSomeButton" + someIndexValue;
this.Controls[ctrlName].Text = "Some value";
I get 'Object reference not set to an instance of an object.', the control does exist on the form. I've tried casting it.
We have a change control environment where the developers give scripts to change control people to run. we have dev,qa, & production environments.
I want to conditionalize a couple segments to do some different things depending on what database the change control person is running my script.
If @dbname='dev'
then
begin
--do some dev stuff
end
If @dbname='QA'
then
begin
--do some qa stuff
end
If @dbname='Prod'
then
begin
--do some production stuff
end
How do I get at what the current connected database is and fill @dbname?