|
Hi All,
Can anyone please guide me, I want to give an option to client to create a template for email, so he can create it in FCKEditor but I want to know how this template binds all dynamic information. for example
Suppose client create template
Hello Prefix LastName, FirstName,
How are you?
Its at customization of application stage.
Then how I will reconginize that I have to bind Prefix, Last name , and First Name?
Its when client have actual data.
Please guide me.
Its on urgent base...
Thanks in advance.....
|
|
|
|
|
I think creating template and replacing with original values is not a big deal. It depends on your logic.
You can create a combobox in your editor, which will show the template arguments, say it will replace all the elements <##FirstName##> written in this format(whatever you think) with some values which you might take from a dialog box on submit.
I have done similar kind of thing before, and I think it is not a big deal to do.
Just parse your document, and find all the elements that matches <## -- ##> and give an option to replace them with values.
|
|
|
|
|
give parameters name in FCK fix. for e.g. for Name tell client to [Name] input in this way where they want the actual name.
from your application get the file in string builder and read the entire file and replace the [name] with name (same for all the parameter they entered in [lastname] way).
here you have to fix the design (for passing parameter (i.e. [name])). if client enter {name} instead of [name] then it may not work.
Regards
Keyur Satyadev
|
|
|
|
|
Hi peoples,
i am using .net frame work 3.5, in that i am working with crystal report viewer.
the problem is that it is working fine with the IE,
but when i open from the fire fox the viewer is not displaying..
what may be the problem please help me
|
|
|
|
|
i have two aspx page and two page is showing two different sessionid.using Label1.Text = Session.SessionID.ToString(); why
it is happen when two page is in same session. why page wise sessionid will be different. please discuss this concept
because this things is not clear to me.tbhattacharjee
|
|
|
|
|
What are you talking about ?
I think your browser is not taking the SessionCookie properly. Check if it is disabled or not.
Browsers generally store the sessioncookie for every site you visit, so that on your next visit it will match the sessioncookie with the server and find appropriate session for you.
If this is not your case, Are you looking at a HttpHandler / HttpModule ?
ASP.NET Page class implements IRequresSessionState . If your own custom HttpHandler or HttpModule doesnt implement IRequiresSessionState , you will not find Session Id correctly.
|
|
|
|
|
i am assigning the value in session variable but it is getting null when i am checking.
suppose i have two link button and when i am clicking the link button then i am assigning some value in session variable
but when i am checking again when link button is clicked then found value null.
my code is
protected void LinkButtonClick (object sender, EventArgs e)
{
if (Session["Download"] == null || (int)Session["Download"] == 0)
{
Session["Download"] = 1;
processLogTask();
}
else if ((int) Session["Download"] ==1)
{
//system is busy
}
}
protected void processLogTask()
{
//when routime will be finished
Session["Download"] = 0
}
so when first time click on link then LinkButtonClick event will be fired and i put some value in session and
processLogTask()
routine will be called and it will take long time to finished.
basically i design in this way when user click on link button processlongtime will be called so if same user click again
on linkbutton then processlongtime will not be called if processlongtime routime is still running. but here i have seen
that when first time user click the session variable is assigned with 1 but when user click immediately the link button
again then session variable value found null. why session variable value is getting null whenever it is already assigned.
please help how to solved this session problem.tbhattacharjee
|
|
|
|
|
I think somehow your session value couldnt be stored properly. This is weird. Can you check this directly using
HttpContext.Current.Session ?
|
|
|
|
|
as you mention that your process will take more time then it might possible that your session is timeout and session will be clear.
check the session time out in your web.config file and increase it depends your process time. it may resolve your problem.
Regards
Keyur Satyadev
|
|
|
|
|
hai,
Am new to ASP .net and C#.
I want to create a website which will play selected songs(play list).
I have a mp3 player got from code project - psudoMP3 player.
With this player i have played one same song on each page load.
What now I want to do is to feed this player with the selected song from play list or how could I load different songs to this player.
currenly this player is working with the below code
<PseudoEngine:PseudoMP3 ID="PseudoMP31" runat="server" Src="Ethrayo.mp3">
id="PseudoMP1"
runat="server"
Src="Ethrayo.mp3"
Stream="False"
AutoStart="False"
Loop="False"
Console="True">
</PseudoEngine:PseudoMP3>
Please help me.
|
|
|
|
|
|
Hi
I am also new.
could you tell me where I have to put this code to run single song on page load
send me sample plz...
|
|
|
|
|
I have installed "aspnet_regsql" at the command prompt as follows:
aspnet_regsql -S <servername> -E -ssadd -sstype p
After that, I have made changes in the Web.Config file as follows:
<sessionstate mode="SQLServer" sqlconnectionstring="Data Source=myServerName; Integrated Security=true" cookieless="false" timeout="20">
After that, I have made one small asp.net application in which there is one default.aspx web page in which there are following tools:
And code for default.aspx.vb is:
Partial Class SessionState
Inherits System.Web.UI.Page
Sub Session_Add(ByVal sender As Object, ByVal e As EventArgs)
Session("mySession") = text1.Value
span1.InnerHtml = "Session data updated! <P> Your session contains: <font color=red>" & Session("MySession").ToString() + "</font>"
End Sub
Sub CheckSession(ByVal sender As Object, ByVal e As EventArgs)
If Session("MySession") <> Nothing Or Session("MySession") <> "" Then
Dim strSession = Session("MySession").ToString
If strSession.Equals("") Or strSession.Equals(Nothing) Then
span1.InnerHtml = "NOTHING, SESSION DATA LOST!"
Else
span1.InnerHtml = "Your session contains:<font color=red>" & Session("MySession").ToString() + "</font>"
End If
End If
End Sub
End Class
Now, When i run the applcation , sessions are stored properly in the "AspState" DataBase.
But when i restart the application, sessions are not shown on the page but are still in the database.
In other words, session state works like In-proc , even is used with SqlServer mode.
Where colud be the error..?
Plz help
|
|
|
|
|
Hi
I am newbie to ASP.NET and using ASP.NET 3.5..i want to add song to my website..to play it online...but the main problem is that i want to play song on same page...because for playing more than one song then i hv 2 embed diffrent song on different page...but i want if any user click on link of song then new pop window open and song start play..and if click on another song then that song should play on same pop up page....i hv already created databse and have field as, id,name,link...
Please help me
|
|
|
|
|
sallam 2 all;
i hav 2 grids when i select n move gv1's record to gv2 selected row is moved, bt the problem is that when i want to move another selectedrow from gv1 to gv2 the previous moved record is removed n new selected row is appeared.
i'm working in javascript.
My code is as follows
var gridview=document.getElementById("<%= gvPracticeFacility.ClientID %>");
var gridview1=document.getElementById("<%= gvPracticesAssignedFacilities.ClientID %>");
var tr = document.createElement("tr");
var cell1 = document.createElement("td");
var celln = document.createElement("td");
var cell2 = document.createElement("td");
var cell3 = document.createElement("td");
var cell4 = document.createElement("td");
var cell5 = document.createElement("td");
var cell6 = document.createElement("td");
var cell7 = document.createElement("td");
var i =parseInt(document.getElementById("<%= hdnfldSelectedRow.ClientID %>").value);
cell1.innerHTML = gridview.rows[i].childNodes[0].innerHTML;
cell2.innerHTML = gridview.rows[i].childNodes[1].innerHTML;
cell3.innerHTML = gridview.rows[i].childNodes[2].innerHTML;
cell4.innerHTML = gridview.rows[i].childNodes[3].innerHTML;
cell5.innerHTML = gridview.rows[i].childNodes[4].innerHTML;
cell6.innerHTML = gridview.rows[i].childNodes[5].innerHTML;
cell7.innerHTML = gridview.rows[i].childNodes[6].innerHTML;
tr.appendChild(cell1);
tr.appendChild(cell2);
tr.appendChild(cell3);
tr.appendChild(cell4);
tr.appendChild(cell5);
tr.appendChild(cell6);
tr.appendChild(cell7);
gridview1.firstChild.appendChild(tr);
plz tell me where i'm wrong.......!
Thanx in Advance......!
|
|
|
|
|
Will master page build in visualstudio 2008 express edition gets changed when the page is opened in visualstudio 2008 professinal edition?
I had created a sample master page in visualstudio 2008 express edition and when I opened the same website on other PC to work on it, I had observed that that alignment of <div> tags gets changed in the masterpage. Why this is happening?
Can anyone suggest something to solve this?
|
|
|
|
|
Actually Express Editions has less no of options that Professional edition have.
Just dont change the code to Professional edition, rather try to run the same html code to the professional edition. I think if the html remains same, it will render the same in both the editions.
|
|
|
|
|
Is there anyone who can assist me in SEO for blogging. I want know how google search the content of blogs which stored in SQL Server. Please give me some details. I want anyone to search blogs content thru google.com of my website bolgs.
Thanx in advance
Kundan
|
|
|
|
|
Is there anyone who can assist me in SEO for blogging. I want know how google search the content of blogs which stored in SQL Server. Please give me some details. I want anyone to search blogs content thru google.com of my website bolgs.
Thanx in advance
|
|
|
|
|
I am setting checked list box data source in the below format.
id Name Gender
1 Name 1 Male
2 Name 2 Fe Male
3 Name 3 Male
here am setting Name as DataTextField and id as DataValueField. In SelectedIndex changed i want to retrive Gender value. I can retrive id and name . If anyone know how to retriving a particular column from checked list box please help
|
|
|
|
|
You can do it in 2 ways..!
1)while retrieving the query append ID+Gender to one field wit separator and add it to DataValueField ,split the data value field you will get Id and Gender ..
2)Otherwise with the help of Id
vineesh v wrote: checked list box
start from here
http://www.w3schools.com/aspnet/control_checkboxlist.asp[^]
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
I have a .Net Application in C# which connects to an Oracle 10g R2 database, but when the application is running and it is accessing the database more and more sessions are being created and opened. This happens until the application crashes and no one can access the database.
Checking the database using a query in SQLPlus and looking at v$Session, I can see a large number of open sessions. This is despite the application opening and closing connections to the database.
Therefore, I looking for a solution which I can either pool sessions, i.e. users can use them and hand them back, or can close them after unloading a page, or something else.
Can someone help me, please
|
|
|
|
|
Right Im starting to look at web programming and need a bit of help.
And im starting at the deepend, I was looking at a tutorial on this site for an Ajax style chat program. In the code it uses javascript callbacks to log the user out. Wrapping my head around the way the client calls the server and the program responds was difficult and I want to see if I have this right.
These are the two java script functions I am using. The LogMeOut function get called on a button click.
function LogOutUser(result, context) {
alert("test")
alert(result)
}
function LogMeOut() {
LogOutUserCallBack();
}
and here is how they are registered.
string callBackReference = Page.ClientScript.GetCallbackEventReference(this, "arg", "LogOutUser", "", false);
string logoutScript = "function LogOutUserCallBack(arg, context) { " + callBackReference + "; }";
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "LogOutUserCallBack", logoutScript, true);
So let me see if I have the logic for this right.
The callback reference going to create a call to the server side ICallbackEventHandler.RaiseCallbackEvent
using the client side WebForm_DoCallback function. And the LogOutUser function is the resultHandler.
The RegisterClientScriptBlock and logoutScript just add the function which wraps the WebForm_DoCallback reference to the client page.
The format for the clientCallback function has to be func(result, context).
of which the value of result is the value passed back from the server function ICallbackEventHandler.GetCallbackResult().
I think I have that figured out correctly but I have a few question remaining, as well as a problem.
I have a problem with the "alert("test")". when I run the program no alert pops up. But If I debug through it with FireBug it does ! Im fairly it get called when not debugging but not sure why the alert doesnt get called. And my breakpoint on the same line in Firebug doesnt get called !
The next question is basically my lack of understanding of the whole system and the role that WebResource and ScriptResource axd files play. Are these just two large file that the client has to download with the aspx page to get the page to run AJAX ? or how are these managed ?
I know this is a lot but I would really appreciate a bit of guidance.
Many Thanks
|
|
|
|
|
el_scrub wrote: Im starting to look at web programming
You should start with something a little less involved. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I though these would have been fairly basic questions !
Its seemed a basic enough chat tutorial !
|
|
|
|