SET @MaxId = SELECT MAX(id) FROM @tblName
DOESN'T work , i need to return maxid of a tablename that is a parameter
CREATE PROCEDURE dbo.sp_SubmitRequest2 (
@tblName,
@Deadline varchar(50),
@Requested varchar(50),
@RequestedBy varchar(50),
@RequestedFor varchar(50),
@CAM...
pretty sure it's simple answer but so many ajax articles and none of my searches have returned a solution.
Trying to reference my .net web service that recieves a string and returns a string.
i seem to be getting an error on this line whatsthematter.asmx/SayHello");
function call_server()
{...
There is a way to do this using HTTP header:
http://support.microsoft.com/kb/260519/EN-US/
but I don't understand the example given:
Content-disposition: attachment; filename=fname.ext
SUMMARY
When you serve a document from a Web server, you might want to immediately prompt the user to save...
if i have a datagridview that is populated with an xml file.
I have images in a resource file that i'd like to show in the datagridview based on values in one of the column say light
foreach (DataRow dr in myDataSet.Tables["tblXMLExport"].Rows)
{
switch (dr["Light"].ToString())
{
case...
i understand if i am running an Application that loads in xml, i make changes and i call dataadapter to update the sql table.
what i don't understand is if i have an app that is mostly offline. several times app is opened and closed only saving xml file to hard drive, on the rare occasion it's...
NEED TO RETURN a dataset:
this is how I would do it going directly from a windows form to sql server:
[CODE]
private void RetrieveData()
{
//MYSQLSERVERCONNECTION
DBConnStr = "Data Source=blah, blah, blah";
SqlConnection SQLCn = new SqlConnection(DBConnStr);
//MY DATAADAPTER
SqlDataAdapter...
basically i have 5 stoplights and when user changes the from red to green i clear all images of that stop light with the clearLights function but since I have 5 stoplights i created 5 ClearLights Functions, is there a way to just have one and pass the integer of through so I can change...
scenario is I am reading an xml file and i need to show how one would display links as links, i should be able to do this in c# or using xslt and javascript: here is where i am having a problem with the javascript:
\\Reading in Layer
var strTemp = document.all["kyle"].innerHTML;
var...
basically I have a matrix, when a user enters in a fact, they catergorize it by legal theories. so when someone edit's this fact the listbox should select the items already associated with this item. If user makes changes by unselecting then update button would remove from the matrix all entries...
Quick question, i want to replace the webaddress to reflect the new location in 118 sql text fields. so i am reading them in, doing regex.replace so I can do an update the text fields.
The following works:
messageReplaced = Regex.Replace(message, "intranet", "dcintranet");
However this desired...
Wasn't sure where to put his in ASP or IIS, but IIS didn't appear to be very active: here's the link to the post.
http://tek-tips.com/viewthread.cfm?qid=1145947&page=1
TIA
Please help?
Not a network person here, we migrated IIS5 to IIS6
and asp pages included a lot of includes and paths were virtual, for somereason NOT WORKING, when i spell out path, still doesn't work, but if I copy and put includes in same folder, asp pages work.
obviously this is horrible...
I can create a linklabels on the fly but can't seem to pass what I want to run when linklabel clicked as it depends on which linklabel was clicked
OBJECTIVE: create a link to a video for each video file in a folder.
CODE THAT DOESN'T WORK:
// Set the directory to the sample picture...
Below is simple html page, when user clicks "test" button should write to layer:
1,2,3,4,5,6,7,8,9
9,8,7,6,5,4,3,2,1
but instead writes
1,2,3,4,5,6,7,8,9
1,2,3,4,5,6,7,8,9
any help much appreciated!
<HTML>
<BODY>
<SCRIPT>
myArray=new Array([1,2,3,4,5,6,7,8,9]);
s = new Array();
function...
.net how do i retrieve headline or better yet a terror alert
http://www.dhs.gov/dhspublic/
the terror level is found in the image named dhsadvisory
<img name="dhsadvisory" src="/dhs/images/dhs-advisory-elevated.gif ....
so would i create a webservice that looks for what comes between the...
I guess what i am trying to figure out is how to capture items that fall between tab marks
I'm trying to capture in a text file what is in between tabs, apparently " " doesn't cut it any suggestions?
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)...
I would like to read in a text file and output a text file.
where there are dates in the text file they are always in paranthesis.
I was wondering how to do a search and replace based on a regexp
Any pointers?
Thanks
string in question happens to be "CM\WilliS"
This Code Works:
string t = User.Identity.Name;
string s = Regex.Replace(t, "CM","");
Message.InnerHtml += s+"<BR>";
But returns "\Willis"
I am having dificulty removing the \
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.