15,741,581 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View C++ questions
View Python questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Kurac1 (Top 200 by date)
Kurac1
1-Jun-15 9:11am
View
DataBinding: 'System.Web.UI.WebControls.RepeaterItem' does not contain a property with the name 'LoginName'.
Kurac1
1-Jun-15 9:07am
View
DataBinding: 'System.Web.UI.WebControls.RepeaterItem' does not contain a property with the name 'LoginName'.
Kurac1
1-Jun-15 8:18am
View
What have i done wrong?
Kurac1
24-Mar-15 5:37am
View
adding(8) still displays 6 days? why?
Yesterday i tried to add 8 days that it showed 7 days but today its tuesday and adding 8 days display 6 days still
Kurac1
24-Mar-15 5:18am
View
Alright because right now i add 7 days and it displays 6 days only
Kurac1
24-Mar-15 5:12am
View
yes but i want i to be from 24 to 1 april always 7 days
Kurac1
23-Mar-15 10:28am
View
What do u mean?
Kurac1
20-Mar-15 3:47am
View
For jump i mean is if adding 6 days from today, it should not add days saturday and sunday it should display friday, monday,tuesday,wednesday,tuesday,friday
Kurac1
19-Mar-15 7:36am
View
Hi i have the and endate, startdate it datetime.now and enddate is 6 days later, so for example today its thursday so plus 6 days from today will get wednesday but it should jump over saturday and sunday
Kurac1
19-Mar-15 7:14am
View
it still adds saturday and sunday?
Kurac1
18-Mar-15 4:44am
View
Hmm i want to use my code, i will update
Kurac1
18-Mar-15 4:37am
View
if (newDate.IsBusinessDay()) get error on this line System.DateTime does not contain a definition for IsBusinessDay
Kurac1
18-Mar-15 4:22am
View
Can u pls post an example of my question
Kurac1
18-Mar-15 4:12am
View
I am adding for example right not 6 days from today so it will be tuesday but it should be Thursday because i dont want to use saturday and sunday?
Kurac1
18-Mar-15 3:36am
View
my question is only how to add 6 days to my query
Kurac1
18-Mar-15 3:11am
View
Right now my query only displays current date and and week in a repeater but i want to display fromtoday date and week and 6 plus on current date and week
Kurac1
2-Mar-15 10:13am
View
yes its a block element inline , If my content in a href in short it still add empty spaces before creating the other element so there is not same margin between all elements because the content are different in the a href links
So it will not display like i want like this
Start | About Us | Contact us
Kurac1
21-Feb-15 13:47pm
View
Alright but i have some other problems now, i want the image to be centered. and the text on the right side of the of the centered image right now i am centering the hole content which dont make the image centered i dont want to write the width of the centered
Kurac1
21-Feb-15 13:18pm
View
i cant center float
Kurac1
21-Feb-15 13:12pm
View
its not geting centered.
Kurac1
21-Feb-15 12:36pm
View
yes its works but i want to my image and text to be centered right not it gets on left side all?
Kurac1
21-Feb-15 11:00am
View
Dont working it gets displayed one over the other so text in the top and image in bottom
Kurac1
10-Feb-15 6:31am
View
i get that the file already exists there?
Kurac1
10-Feb-15 6:27am
View
Alright do u have some example?
Kurac1
9-Feb-15 6:07am
View
i dont get the value in debug it gets "" (empty)
Kurac1
9-Feb-15 6:04am
View
i dont get the value in debug it gets "" (empty)
Kurac1
9-Feb-15 4:17am
View
ALright but it will add \\\\ in the end then? but i only want at index[0] \\ and not in the end at all \\?
Kurac1
9-Feb-15 4:05am
View
How could add infront my string also and in the end "\\" string rv = string.Join( "\\", arr ); this code only adds between the string but i want infront of the string also and in the the end like this \\Folder1\\Folder2\\?
Kurac1
9-Feb-15 3:49am
View
yes that was my solution thanks
Kurac1
9-Feb-15 3:38am
View
as i wrote in my question using index C:\\Folder1\\Folder2\\" so C:\\ will be [0] remove that string FOlder1\\ will be [1] remove that and so an so the first 3 indexes in the string
Kurac1
9-Feb-15 3:35am
View
I only have this string, string source = "C:\\Folder1\\Folder2\\Folder3\\Folder4"; and not the prefix i need first need to get out the prefix from my source string
Kurac1
9-Feb-15 3:31am
View
But i dont now how to get out "C:\\Folder1\\Folder2\\"; from my string first?
Kurac1
20-Jan-15 14:11pm
View
Yes but this will style all my ahref links
Kurac1
20-Jan-15 11:50am
View
why does not this work? var lbl = new Label();
lbl.Text = link;
lbl.ForeColor = Color.Blue;
Kurac1
20-Jan-15 11:43am
View
yes to style it
Kurac1
13-Jan-15 10:07am
View
Alright but my items still gets displayed at same line as it was one line
Kurac1
13-Jan-15 9:27am
View
You said that i only get display 1 item in a div, but i want to display more items then 1 but not as same value
I dont wont to display [object],[object],[object] like this because then if i click the link it 3 links there , i want to have on link per object when clicking it
Kurac1
13-Jan-15 9:08am
View
Yes but the link that i have typed to you in other question/ problem i have
Kurac1
13-Jan-15 9:04am
View
Alright thanks could u please se me update code on this link http://www.codeproject.com/Questions/864911/Best-way-to-display-data-in-javascript-jquery?arn=0
Kurac1
13-Jan-15 9:02am
View
Alright thanks.
Kurac1
13-Jan-15 8:56am
View
i will update if u mean like that
Kurac1
13-Jan-15 8:47am
View
Not clear..
Kurac1
13-Jan-15 8:40am
View
i want to use resultArr[i].value; in my second function but i cant because its outside in my other function that value.
Kurac1
13-Jan-15 8:39am
View
Yes because in my click function i cant reach my value of my url so i am woundering how i could include the value of my first function the url in my second function and set each url on click in that function
Kurac1
13-Jan-15 8:36am
View
Its in the top pls read.
Kurac1
13-Jan-15 8:30am
View
yes i know that if u read my question i have asked how could invoke that in my function
Kurac1
13-Jan-15 8:22am
View
result is a dig tag, i display title and url to the title, when click on title go to url
Kurac1
13-Jan-15 8:20am
View
Yes my values are in there will update
Kurac1
13-Jan-15 8:14am
View
i will update again
Kurac1
13-Jan-15 7:46am
View
I have updated my question and my code in the top
Kurac1
13-Jan-15 7:38am
View
Alright, it works but i have not changed my
to an a href link if i have 3 items it display all 3 items in same line as a link but i want for ex Item1 1 link, Item2 1 link, Item3 1 link, right now its Item1 Item2 Item3 1 link
Kurac1
13-Jan-15 5:50am
View
i will update again, it dont work
Kurac1
13-Jan-15 4:49am
View
Alright i will update my code i dont really know what to remove
Kurac1
13-Jan-15 4:09am
View
I have updated
Kurac1
13-Jan-15 4:06am
View
Doing like that it only displays data one time second time it wonk work
Kurac1
13-Jan-15 2:41am
View
it only displays [object Object] then and not the text value
Kurac1
13-Jan-15 2:39am
View
I doesnt display
Kurac1
12-Jan-15 6:28am
View
Alright what should i look for in my autocomplete.js?
Kurac1
12-Jan-15 6:26am
View
yes but not when using autocomplete
Kurac1
12-Jan-15 3:56am
View
Can u give me an example i dont understand
Kurac1
12-Jan-15 3:18am
View
user anchor infront the url only gets displayed its not clickable lika a href tag
Kurac1
12-Jan-15 3:00am
View
But i want the title to be a label but when clicking a href?
Kurac1
15-Dec-14 8:53am
View
Start gets NaN
And end gets Sun Nov 2 00:00:00 UTC+1 0100 2014
Kurac1
15-Dec-14 8:41am
View
I will update my question in the top nothing happend
Kurac1
15-Dec-14 2:19am
View
hi, i need first to remove the items, and to find out the items i have i need first to have an for loop that finds the items, and then delete them, and after deleting them i want to create new ones. My problem is that my new items that i create are aldready created before i am trying to delete all my items, so my new items also gets deleted, thats why it dont display the new items.
Kurac1
12-Dec-14 9:53am
View
Its not working
Kurac1
12-Dec-14 9:26am
View
None of your code is working
Kurac1
12-Dec-14 9:19am
View
Shoud i only use this code in the top of the function?
var list = document.getElementById("selectList");
for(var i in items) {
list.add(new Option(items[i].text, items[i].value));
}
were do u fint items?
Kurac1
12-Dec-14 9:14am
View
I dont understand i want to use javascript, were should i put the code my button is created in another function i only have a div inside my default aspx, that i button to a button on createlement, and then use my function in the top button.onclick = myfunction;
Kurac1
12-Dec-14 9:11am
View
It don't work, my function onclick is function addNewDateFrom() like i posted to you i have tried to add that code in the top var selectedVal = $('#myDivResultSelect').val();
$('ul').append('<li>'+selectedVal+'</li>') but doesnt work
Kurac1
12-Dec-14 7:59am
View
Do u understand my code ?
Kurac1
12-Dec-14 7:48am
View
The code updated in app.js is the code i use in my increase button to get next day in my select tag, right now if i am not using this code, var select = document.getElementById("myDivResultSelect");
var lengths = select.options.length;
if (lengths > 0) {
for (i = 0; i < length; i++) {
select.options[i] = null;
}
It adds we say if you input is,
2014-12-12 20:00 when pressing the button it adds +1 on the days so if i press the buttom 10 times it will update dates 10 times, but i want to when u press the button only display the one that are +1 and dont display the others, and so on an so on.
Kurac1
12-Dec-14 7:42am
View
Yes i i can use jquery
Kurac1
12-Dec-14 7:37am
View
I could upload my hole function if u would like, if it would be easier for you
Kurac1
12-Dec-14 7:37am
View
I am using a SharePoint-Hosted app, thats based on Javacript and a default.aspx
Kurac1
12-Dec-14 7:36am
View
Also on first click some items are in my select tag, on second klick my first items are there and my seconds items also in same array, then i am trying to delete them,
Kurac1
12-Dec-14 7:33am
View
The problem is that my array gets all items that are created, and then when trying to create items form my array there is not items there?
Kurac1
12-Dec-14 7:19am
View
i will update in the top what i have done.
Kurac1
12-Dec-14 7:14am
View
It does the same only 1 value get displayed , should be more dates
Kurac1
12-Dec-14 7:02am
View
i already have that snippet in my code.
Kurac1
12-Dec-14 6:44am
View
i will update my code, i dont now how i could break so it don't removes after deleting Items1
Kurac1
12-Dec-14 6:41am
View
The problem is that it also deleted all items, and not just the ones that i want
Kurac1
12-Dec-14 6:36am
View
The problem is that i only get 2014-12-13 20:00 on Items2 and not the other items
Kurac1
11-Dec-14 9:42am
View
Seriously?!
How do u mean?
Kurac1
11-Dec-14 9:17am
View
Good answer ;)
Kurac1
11-Dec-14 9:12am
View
How could i update 'When you add the extra days to skip Saturday / Sunday, you've forgotten to update the increase variable.'
Kurac1
11-Dec-14 9:05am
View
10 dec increase gets 1 displays 11dec
11 dec increase gets 2 displays 12dec
13 dec increase gets 3 goes in to else if(toTime.getDay() == 6) {
toTime.setDate(toTime.getDate() + 2);
}
Display 15Dec on click on dec to display 16 dec it has increase 4 and goes in to if (toTime.getDay() == 0) {
toTime.setDate(toTime.getDate() + 1);
}
on next click increase gets 5 and nothing happens,
On next klick increase gets 6 and are then displayed
Kurac1
11-Dec-14 8:33am
View
after pressing button and going to 15/12 it then goes in getSunday and there for on click 16/12 is not displayed
Kurac1
11-Dec-14 8:16am
View
Before u start talking go and look and my question before saying anything
Kurac1
11-Dec-14 8:10am
View
And if i see, but don't understand whats happening? what should i do then?
Kurac1
11-Dec-14 7:19am
View
And my var increase=0; i must use outside, i want to add 1 day all the time and then check if its saturday or sunday and then add them to increase
Kurac1
11-Dec-14 7:14am
View
From New Date object, var result = listItemCustom + "T" + listItemtoTime + ":00" + "Z"; this 2 variabels are my datepicker and timepicker
Kurac1
11-Dec-14 6:50am
View
What about the days monday to friday? will they be displayed? in my case not.
Kurac1
11-Dec-14 6:46am
View
It dont work nothing happens
Kurac1
10-Dec-14 10:09am
View
It only adds one when i am doing it.
Kurac1
10-Dec-14 10:00am
View
That will only increase one day and not on every onclick.
Kurac1
10-Dec-14 9:59am
View
I already know that u posted, but don't now how to do it else.
Kurac1
10-Dec-14 9:54am
View
It javascript, so how should i do? You did just post same code as me ?
Kurac1
10-Dec-14 9:52am
View
Calender is not supported?
Kurac1
10-Dec-14 9:40am
View
I have in my code toTime and numberToAddafter?
Kurac1
9-Dec-14 5:19am
View
I have updated.
Kurac1
9-Dec-14 4:54am
View
I doesnt work, nothing happens the function dont trigger,
i will update what i have in my select tag option code.
Kurac1
9-Dec-14 2:21am
View
It works nows
Kurac1
9-Dec-14 2:11am
View
it dont display from 8-12 dec now :S
Kurac1
9-Dec-14 2:09am
View
So it have removed 5 dec friday and 15 dec Monday
Kurac1
9-Dec-14 2:07am
View
I doesnt work like that it displaying from 6dec to 14 dec
Kurac1
9-Dec-14 2:02am
View
I have updated, do u mean like that?
Kurac1
8-Dec-14 7:24am
View
<input type="text" readonly="readonly" size="8" id="timepickerTo" /> this is were i want to display the selected value from timepicker +30 minutes? so from selectedtime from timepicker plus 30 minutes add in timepickerTo Input
Kurac1
8-Dec-14 7:20am
View
I dont use 2 datepickers i only have 1, the name of if it is just timepicker
Kurac1
5-Dec-14 15:47pm
View
I have updated
Kurac1
5-Dec-14 9:08am
View
I will update my question, i could not get it to work it still creates the same double and so on.
Kurac1
5-Dec-14 8:50am
View
alright but i use createItem(); onclick, on some other events, how could i make this code $("#creatItem").on("click", function() { so its takes createItem(); onclick
Kurac1
4-Dec-14 8:30am
View
i want to see if an user adds an item to the list see if the date and time exists if it exists in the list display busy to the user, if the item with that date and time dont exists in the list display for the users available dates and times to add to the list between the range 8:00 to 17:00 so it will check every 30 min
Kurac1
4-Dec-14 8:21am
View
Yes like that
Kurac1
4-Dec-14 8:20am
View
Its not about displaying it about that getting right value on runtime right now dt och dt2 gets same values
Kurac1
4-Dec-14 8:20am
View
2014/12/04
2014/12/05 for example
Kurac1
4-Dec-14 7:58am
View
have updated hope u understand.
Kurac1
4-Dec-14 7:47am
View
And that it will display "hello" and not Hello and Bye on the same time it will first display hello and then bye
Kurac1
4-Dec-14 7:43am
View
My second code will not work the same as the first one because i have an if statement inside it, it will never display busy
Kurac1
2-Dec-14 2:56am
View
i will update my question, i have made it work so it adds 30 minutes to current time but i want to do is so on.
Kurac1
2-Dec-14 2:36am
View
But that loop will not add 30 minutes based on current time? Should i not use a for loop?
Kurac1
20-Nov-14 4:58am
View
Yes i know how do i convert to local time?
var result = listItemCustom + "T" + listItemFromTime + ":00" + "Z";
var result2 = listItemtoDate + "T" + listItemToTime + ":00" + "Z";
Kurac1
20-Nov-14 4:53am
View
@DamithSL
I get invalid date on newDate,
var result = listItemCustom + "T" + listItemFromTime + ":00" + "Z";
var result2 = listItemtoDate + "T" + listItemToTime + ":00" + "Z";
var toTime = new Date(result).getTimezoneOffset();
var newDate = new Date(new Date(result) + toTime * 60000);
Kurac1
20-Nov-14 3:31am
View
its my variabel were the date and time are displayed
Kurac1
4-Nov-14 9:55am
View
I have already done the second link dont work..
same error
Kurac1
4-Nov-14 9:54am
View
alright but i only have this ones in the map
ASP.NET MVC 4
ASP.NET Web Pages
ASP.NEt Web stack 5
Kurac1
30-Mar-14 5:34am
View
Alright but doing like this , wont display the firstname in the label,
select p).FirstOrDefault();
if (s != null)
{
s.Firstname = LabelFirstnameDisplay.Text;
}
Kurac1
5-Mar-14 15:00pm
View
it doesnt work i dont get any data displayed look in my updated question
Kurac1
5-Mar-14 14:47pm
View
i get the data displayed from second table but the string is empty in the datagridview
Kurac1
5-Mar-14 14:47pm
View
I have 1 datatable there i display my data but want to take data from different tables that are not releated
Kurac1
5-Mar-14 14:38pm
View
Yes but i want to select * From table1,table2
Kurac1
5-Mar-14 13:38pm
View
I have updated my question in the top after the first question.
I only have 1 datatable. But when using dataset it doesnt display anything and when using datatable is displays everything but noth the 4 column. why?
Kurac1
5-Mar-14 13:03pm
View
i dont understand how to use it my situation
Kurac1
5-Mar-14 12:43pm
View
I want to display data from two different tables in the same datatable using sqlcommand and sqladapter
Kurac1
5-Mar-14 12:43pm
View
Yes but why do i need to join them when they are not related to each other.?
Kurac1
5-Mar-14 9:52am
View
Alright thanks but when i try to write it out i in the console like this Console.WriteLine(possibleWords);
i get Generic.list.collection..... and so an
Because i now i want to be able to Write the total number of generated words using the word "HELLO".
Kurac1
5-Mar-14 9:45am
View
i want to do this.
In spelling check, it is assumed that all words are wrong. By making 4 basic operations of the word can create new words that are close to the existing word. There are four basic operations: - Delete one letter - Insert a letter - Replace one letter with another test - Swap two letters that stand for each other, for example "hello" becomes "hlleo" Write an algorithm that can generate a list of new words that can be generated from the word "hello" from the above rules with the alphabet: a-z (26 letters)
Kurac1
5-Mar-14 9:43am
View
yes but i want to generate from the specifik word hello an not what the user enters
Kurac1
5-Mar-14 9:38am
View
That only adds a new char to the word Hello
i want this
In spelling check, it is assumed that all words are wrong. By making 4 basic operations of the word can create new words that are close to the existing word.
There are four basic operations:
- Delete one letter
- Insert a letter
- Replace one letter with another
test
- Swap two letters that stand for each other, for example "hello" becomes "hlleo"
Write an algorithm that can generate a list of new words that can be generated from the word "hello" from the above rules with the alphabet: a-z (26 letters)
Kurac1
5-Mar-14 9:36am
View
Yes but i want to have like a string. not 5 i want to have the letter Hello how should i add the word string word="hello"; to the place were the 5 is?
Kurac1
4-Mar-14 11:40am
View
i Solved it should be
[FakturaDB].[dbo].[dbo.FakturaDB_Faktura]
Kurac1
26-Feb-14 5:10am
View
I in the first snippet i fetch kundnr_id and in the other i fetch the firstname?
Kurac1
26-Feb-14 2:45am
View
But i am using win forms
Kurac1
26-Feb-14 0:55am
View
Hi , i doesnt work. How should i open a file that doesnt exists?
Usign this code FileStream fs = new FileStream("KundLista.Pdf", FileMode.Create);
It creates the document by it self in debug folder. but i dont want to create in i debug i want to create in memory and then open up the file from the memory
Kurac1
25-Feb-14 10:47am
View
No nothing happens.
Kurac1
25-Feb-14 7:09am
View
I think your best bet would be to save the document to a temporary file.
Kurac1
25-Feb-14 6:57am
View
Alright any examples how i do that?
Kurac1
25-Feb-14 6:55am
View
Yes i know the differences , but why does the filestream work but not the memorystream is my question?
Kurac1
25-Feb-14 6:46am
View
I want it to ope/create the document in the computers memory then open the document and not save the document to local disk
Kurac1
25-Feb-14 6:40am
View
i have updated ,the second one creates the document in debug , but i want it to opet in memorystream?
Kurac1
25-Feb-14 6:37am
View
i want it to open up the pdf document in a memorystream then the user can save it were he wants
Kurac1
25-Feb-14 6:34am
View
Nothings happens.
Kurac1
24-Feb-14 9:40am
View
Okej can u give me an example?
Kurac1
22-Feb-14 3:53am
View
Deleted
I have updated the question
Kurac1
28-May-13 9:20am
View
Hi! but I want to be able to search for both firstname and lastname not firstname or lastname ?
Kurac1
17-May-13 3:21am
View
web asp.net
Kurac1
14-May-13 16:42pm
View
I have two sharePoint webpart , when i update something in the first webpart, i want to display it in the other webpart, and it displays but because the other webpart height is large , the user must scroll to the top of the site , to se what he has updated, now i am trying to make that the second webpart is following the page all the way, so the user dont need to go to the top of the page to view his updated data,
Kurac1
13-May-13 4:32am
View
public void MyData(List<string>cvData)
{
foreach (var vItem in cvData)
{
LabelFirstName.Text = vItem;
LabelPosition.Text = vItem;
LabelLastName.Text = vItem;
}
}
protected void TextBoxFirstName_TextChanged(object sender, EventArgs e)
{
if (TextBoxFirstName.Text != string.Empty)
{
MyData.Add(TextBoxFirstName.Text);
}
}
protected void TextBoxLastName_TextChanged(object sender, EventArgs e)
{
if (TextBoxLastName.Text != string.Empty)
{
MyData.Add(TextBoxLastName.Text);
}
}
protected void TextBoxPosition_TextChanged(object sender, EventArgs e)
{
if (TextBoxPosition.Text != string.Empty)
{
MyData.Add(TextBoxPosition.Text);
}
}
private List<string> _sharedData = new List<string>();
public List<string> MyData
{
get { return _sharedData; }
set { _sharedData = value; }
}
}
}
Kurac1
13-May-13 4:31am
View
Using a List<string> i get the same value in both label the count is 1 only so it get same in all
Kurac1
13-May-13 4:14am
View
My problem is that i want to send data between two sharepoint webpart so TextBoxFirstName should be displayed in LabelFirstName and TextBoxLastName should be displayed in LabelLastName before when not using a ArrayList when i wrote something in TextBoxFirstName it got displayed in both LabelFirstName and LabelLastName, so i thoug i should use a arraylist?
Kurac1
13-May-13 4:05am
View
Doing like this i dont get any Error, but i dont get any result..
Kurac1
12-May-13 9:44am
View
its because i tryid out the code, but still get same , i hade first as u said now-
Kurac1
3-May-13 16:01pm
View
And i know that not a valid file name what i means but i dont not what means when first time it work second not.. thats why i am asking for help... and second when posting smal code everyone ask for more code, thats why i post all the code so the user dont get confused that some code is missing..
Kurac1
3-May-13 15:57pm
View
and i dont get when debbug first time the filename is ok, second time when trying to save the document not a valid file name i get...
Kurac1
3-May-13 15:53pm
View
and i have debbuged everything looks correct filename are the same everywere , but i cannot open the document only save and its not possible to debbug the filedialog that apperas if i select open or save as, so its diffecult
Kurac1
3-May-13 15:48pm
View
the filename is correct...
Kurac1
3-May-13 6:04am
View
dont get it to work on Microsoft.Office.Interop.Word.Document myDoc = wordApp.Documents.Add(ref missing, ref missing, ref missing, ref missing); here i added ref fileStream also , but then i get same error on that place ?
Kurac1
3-May-13 5:50am
View
private void SetWordDocument()
{
string strFileName =
CleanUp(LabelFirstName.Text + "_" + LabelLastName.Text + "_" + DateTime.Now.ToString("yyyy-MM-dd") +
"." + DropDownListDownloadCv0.SelectedItem.Text);
object fileStream =
new FileStream(Server.MapPath("~/Upload/") +
strFileName,FileMode.Create);
using (var db = new knowitCVdbEntities())
{
var theEmpl = (from p in db.EMPLOYEES
where p.username == strUserName
select p).FirstOrDefault();
if (theEmpl != null)
{
object missing = Missing.Value;
object start1 = 0;
var wordApp = new ApplicationClass();
Microsoft.Office.Interop.Word.Document myDoc = wordApp.Documents.Add(ref missing, ref missing,
ref missing, ref missing);
Range rng = myDoc.Range(ref start1, ref missing);
try
{
const char newLine = (char) 11;
myDoc.SaveAs(ref fileStream,
ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing,
ref missing,
ref missing, ref missing, ref missing);
here i have some textboxes
mydoc.Save();
<pre lang="cs">Response.ContentType = "Application/msword";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + strFileName);
Response.TransmitFile(Server.MapPath("~/Upload/") + strFileName);
Response.End();</pre>
Kurac1
3-May-13 3:35am
View
i have tryed like this on button click but dont get any error and string input = TextBoxLanguages.Text;
if (Regex.Match(input, @"^\P{Lu]").Success)
{
LabelErrorLang.Visible = true;
LabelErrorLang.Text = "Börja med stor bokstav!";
}
Kurac1
2-May-13 17:58pm
View
yeah i convert it yes , but even if i convert it when saving to database the first character are still lower case but in the view on the page its uppercase ?
Kurac1
2-May-13 17:38pm
View
how should i write the expression for validate? first character upercase ?
Kurac1
2-May-13 17:37pm
View
Deleted
how do i add textboxes to a group?
Kurac1
2-May-13 17:31pm
View
hmm any tips how i could solve it when i have 20 textboxes to check uppcase on ?
Kurac1
2-May-13 16:09pm
View
hmm good question
Kurac1
2-May-13 16:06pm
View
i dont get it do u maybe have som code example?
Kurac1
2-May-13 16:04pm
View
Deleted
i get it now :) hehe
Kurac1
2-May-13 16:02pm
View
Deleted
how should i now what the user select ?
Kurac1
2-May-13 16:01pm
View
so u mean that i need to do like that for every year ?
Kurac1
2-May-13 15:21pm
View
hmm i dont really understand maybe som example ?
Kurac1
2-May-13 15:20pm
View
it aint working?
Kurac1
29-Apr-13 17:40pm
View
Yes i did see the console with white text , but it stated and runned true nothing more only that
Kurac1
29-Apr-13 17:16pm
View
i have runned the program handlex.Exe it only run and nothing more what should i do '?
Kurac1
29-Apr-13 17:01pm
View
i did like on this linke http://www.4guysfromrolla.com/articles/030911-1.aspx were do u se him use dispose(); ? i got it to work before when i hade less columns but then i added more and then i got the problem , dont now why... worked before..
Kurac1
29-Apr-13 16:55pm
View
how should i now which one i should dispose?
i get the error on this line Response.TransmitFile(Server.MapPath("~/Upload/") + strFileName);
Kurac1
29-Apr-13 5:36am
View
i would also like to include - Select - in the top of the dropdownlist?
Kurac1
27-Apr-13 17:21pm
View
Asp, SharePoint
Kurac1
24-Apr-13 18:57pm
View
Done that now
Kurac1
24-Apr-13 18:14pm
View
Alright, could u maybe explaine a little more? Or maybe have à example?
Kurac1
24-Apr-13 9:26am
View
myDoc.SaveAs(ref filename, ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing,
ref missing, ref missing, ref missing);
Kurac1
24-Apr-13 6:20am
View
i get the same problem only get http://wingtipserver/Lists/Cv.Knowit-ListInstance3/attachments/1/knowit_Loggo.png and not the image
Kurac1
23-Apr-13 16:06pm
View
the problem is that it dont find the control it find the data from database count is on my control cannot find any controls
Kurac1
23-Apr-13 15:51pm
View
i wounder why my count i 0?
Kurac1
23-Apr-13 15:42pm
View
Okey
Kurac1
23-Apr-13 15:16pm
View
Alright so i should have that code only for pdf? and write another for saving to word?
Kurac1
23-Apr-13 5:07am
View
Thanks i got i to work by my one , but how to i add css style now, i dont only want to use html style i want to use css also??
Kurac1
23-Apr-13 4:41am
View
i have loaded my stylesheet here styles.LoadTagStyle("Lastname", "size", "50pt");
Kurac1
23-Apr-13 4:38am
View
i have tried it wont work
Kurac1
22-Apr-13 16:38pm
View
i solved it but al text get big i only want that label?
Kurac1
22-Apr-13 16:36pm
View
Here i my code
{
using (var db = new knowitCVdbEntities())
{
var theEmpl = (from p in db.EMPLOYEES
where p.username == strUserName
select p).FirstOrDefault();
if (theEmpl != null)
{
string sDirPath = Server.MapPath("~/PDF_WORD/Docs");
var ObjSearchDir = new DirectoryInfo(sDirPath);
if (!ObjSearchDir.Exists)
{
ObjSearchDir.Create();
}
string strFileName =
HttpContext.Current.Server.MapPath("~/PDF_WORD/Docs/Test." +
DropDownListDownloadCv0.SelectedValue.ToString() +
"");
var objfileinfo = new FileInfo(strFileName);
// step 1: creation of a document-object
var document = new Document(PageSize.A4);
if (objfileinfo.Exists)
{
File.Delete(strFileName);
PdfWriter.GetInstance(document, new FileStream(strFileName, FileMode.Create));
}
else
PdfWriter.GetInstance(document, new FileStream(strFileName, FileMode.Create));
var sb = new StringBuilder();
var sw = new StringWriter(sb);
document.Open();
var hTextWriter = new HtmlTextWriter(sw);
var styles = new iTextSharp.text.html.simpleparser.StyleSheet();
const string classValue = "Body";
hTextWriter.AddAttribute(HtmlTextWriterAttribute.Class, classValue);
hTextWriter.RenderBeginTag(HtmlTextWriterTag.Div);
styles.LoadTagStyle("Body", "size", "60pt");
LabelFirstName.RenderControl(hTextWriter);
hTextWriter.RenderEndTag();
String strHtml1 = sw.ToString();
var hw = new iTextSharp.text.html.simpleparser.HTMLWorker(document);
hw.SetStyleSheet(styles);
hw.Parse(new StringReader(strHtml1));
document.Close();
}
Kurac1
22-Apr-13 7:35am
View
And i am trying to do this , but dont get i to work
for (int i = 0; i < RepeaterStrongestSkillsMax2.Items.Count; i++)
{
var skillName = RepeaterStrongestSkillsMax2.FindControl("skill" + i);
var pieLevel = RepeaterStrongestSkillsMax2.FindControl("pie" + i);
hTextWriter.Write(skillName);
hTextWriter.Write(pieLevel);
}
Show More